Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2009 20:09:07 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192209 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <200905162009.n4GK972k001056@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Sat May 16 20:09:07 2009
New Revision: 192209
URL: http://svn.freebsd.org/changeset/base/192209

Log:
  only use direct map if system has more than 2GB

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Sat May 16 19:18:13 2009	(r192208)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Sat May 16 20:09:07 2009	(r192209)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905162009.n4GK972k001056>