svn commit: r213549 -
stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Fri Oct 8 07:33:22 UTC 2010
Author: avg
Date: Fri Oct 8 07:33:22 2010
New Revision: 213549
URL: http://svn.freebsd.org/changeset/base/213549
Log:
MFC r212780: zfs arc_reclaim_needed: more reasonable threshold for
available pages
Modified:
stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Fri Oct 8 07:31:32 2010 (r213548)
+++ stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Fri Oct 8 07:33:22 2010 (r213549)
@@ -2161,10 +2161,10 @@ arc_reclaim_needed(void)
return (0);
/*
- * If pages are needed or we're within 2048 pages
- * of needing to page need to reclaim
+ * Cooperate with pagedaemon when it's time for it to scan
+ * and reclaim some pages.
*/
- if (vm_pages_needed || (vm_paging_target() > -2048))
+ if (vm_paging_need())
return (1);
#if 0
More information about the svn-src-all
mailing list