NBUFCALCSIZE
maxbufspace = nbuf * NBUFCALCSIZE;
long factor = NBUFCALCSIZE / 1024; /* KB/nbuf */
if (maxbcache && nbuf > maxbcache / NBUFCALCSIZE)
nbuf = maxbcache / NBUFCALCSIZE;
if (nbuf > physmem * PAGE_SIZE / (NBUFCALCSIZE * 2)) {
nbuf = physmem * PAGE_SIZE / (NBUFCALCSIZE * 2);
long factor = NBUFCALCSIZE / 1024; /* KB/nbuf */
if (maxbcache && nbuf > maxbcache / NBUFCALCSIZE)
nbuf = maxbcache / NBUFCALCSIZE;