Date: Fri, 23 Jul 2010 12:30:29 +0000 (UTC) From: Ivan Voras <ivoras@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210410 - head/sys/kern Message-ID: <201007231230.o6NCUTdm089988@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007231230.o6NCUTdm089988>