svn commit: r210410 - head/sys/kern
Ivan Voras
ivoras at FreeBSD.org
Fri Jul 23 12:30:29 UTC 2010
Author: ivoras
Date: Fri Jul 23 12:30:29 2010
New Revision: 210410
URL: http://svn.freebsd.org/changeset/base/210410
Log:
Make lorunningspace catch up with hirunningspace.
While there, add comment about the magic numbers.
Prodded by: alc
Modified:
head/sys/kern/vfs_bio.c
Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c Fri Jul 23 11:00:46 2010 (r210409)
+++ head/sys/kern/vfs_bio.c Fri Jul 23 12:30:29 2010 (r210410)
@@ -620,9 +620,14 @@ bufinit(void)
hibufspace = lmax(3 * maxbufspace / 4, maxbufspace - MAXBSIZE * 10);
lobufspace = hibufspace - MAXBSIZE;
- lorunningspace = 512 * 1024;
+ /*
+ * Note: The 16 MB upper limit for hirunningspace was chosen
+ * arbitrarily and may need further tuning. The lower 1 MB
+ * limit is the historical upper limit for hirunningspace.
+ */
hirunningspace = lmax(lmin(roundup(hibufspace / 64, MAXBSIZE),
16 * 1024 * 1024), 1024 * 1024);
+ lorunningspace = roundup(hirunningspace / 2, MAXBSIZE);
/*
* Limit the amount of malloc memory since it is wired permanently into
More information about the svn-src-head
mailing list