diff options
author | kmacy <kmacy@FreeBSD.org> | 2009-05-16 20:09:07 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2009-05-16 20:09:07 +0000 |
commit | 0165e636bf11d3fc51eccb9d7d6d67d024207872 (patch) | |
tree | a771d897efab84c1ef17f3d943ef673c55af542e /sys/cddl/contrib/opensolaris/uts/common/fs/zfs | |
parent | 66456a72cd3815c7dd02df81fd210135612fba49 (diff) | |
download | FreeBSD-src-0165e636bf11d3fc51eccb9d7d6d67d024207872.zip FreeBSD-src-0165e636bf11d3fc51eccb9d7d6d67d024207872.tar.gz |
only use direct map if system has more than 2GB
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c index d1433da..8711355 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c @@ -3432,7 +3432,7 @@ arc_init(void) /* Start out with 1/8 of all memory */ #if defined(_KERNEL) && (__amd64__) arc_c = physmem*PAGE_SIZE / 8; - if (physmem*PAGE_SIZE > kmem_size()) + if (physmem*PAGE_SIZE > kmem_size() && (physmem > (1UL<<31))) arc_large_memory_enabled = 1; #else arc_c = kmem_size() / 8; |