GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anyone know about FreeBSD file system tuning? (https://gfy.com/showthread.php?t=788485)

rowan 11-29-2007 10:37 PM

Anyone know about FreeBSD file system tuning?
 
Basically I'm trying to figure out how to increase this:

Mem: 39M Active, 509M Inact, 234M Wired, 28K Cache, 112M Buf, 1221M Free

I've checked 5 different servers and they all have a value of around 112MB used for buffering, even though the physical RAM varies from 1GB - 4GB

Tried increasing maxusers but that hasn't changed anything, buf still tops out at 112MB

How do I get FreeBSD to use more memory for disk caching?

GrouchyAdmin 11-29-2007 11:17 PM

Do a make lint in the source tree and look; I'm pretty damn sure that there is still an FFS/UFS cache as well as directory hashing SOFTUPDATES. I haven't done bare-wire tuning with any of the recent 5.x tree, though. You're probably going to want to increase your stack as well.

Look here for more updated information.

rvn 11-30-2007 12:14 AM

freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-disk.html

wanted 11-30-2007 12:15 AM

docs + manual (man) is always the way to go

V_RocKs 11-30-2007 12:42 AM

Bump for answers.

rowan 11-30-2007 02:09 AM

Thanks for the replies but so far none actually address how to increase the maximum size allocated for buffering (which is vfs.maxbufspace)

I've tried changing the BKVASIZE value (in sys/param.h) from 16384 to 32768, but I'm not sure whether that actually allocates more buffers or just larger ones.

rowan 11-30-2007 07:23 AM

"options NBUF=16384" in the kernel config seems to have done the trick, memory used now floats up to 255MB.

I tried to go further but ended up with a kernel panic. This will do for now.


All times are GMT -7. The time now is 11:03 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123