Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2010 14:05:25 +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: r214342 - head/sys/kern
Message-ID:  <201010251405.o9PE5PRm067536@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ivoras
Date: Mon Oct 25 14:05:25 2010
New Revision: 214342
URL: http://svn.freebsd.org/changeset/base/214342

Log:
  Reduce the difference between hirunningspace and lorunningspace,
  it should help interactivity in edge cases.

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Mon Oct 25 14:04:21 2010	(r214341)
+++ head/sys/kern/vfs_bio.c	Mon Oct 25 14:05:25 2010	(r214342)
@@ -623,16 +623,16 @@ bufinit(void)
 	lobufspace = hibufspace - MAXBSIZE;
 
 	/*
-	 * Note: The 16 MB upper limit for hirunningspace was chosen
+	 * Note: The 16 MiB upper limit for hirunningspace was chosen
 	 * arbitrarily and may need further tuning. It corresponds to
 	 * 128 outstanding write IO requests (if IO size is 128 KiB),
 	 * which fits with many RAID controllers' tagged queuing limits.
-	 * The lower 1 MB limit is the historical upper limit for
+	 * The lower 1 MiB 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);
+	lorunningspace = roundup((hirunningspace * 2) / 3, 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?201010251405.o9PE5PRm067536>