Elaborate on how hirunningspace was chosen.

This commit is contained in:
Ivan Voras 2010-08-09 22:22:46 +00:00
parent f2c73cefa0
commit dd8c13d589

View File

@ -622,8 +622,11 @@ bufinit(void)
/*
* 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.
* 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 queing limits.
* The lower 1 MB limit is the historical upper limit for
* hirunningspace.
*/
hirunningspace = lmax(lmin(roundup(hibufspace / 64, MAXBSIZE),
16 * 1024 * 1024), 1024 * 1024);