Date: Fri, 16 Nov 2007 17:11:57 +0100 From: Laszlo Nagy <gandalf@shopzeus.com> To: Ivan Voras <ivoras@freebsd.org>, freebsd-questions@freebsd.org Subject: Re: How to set maximum disk cache size? Message-ID: <473DC14D.1060601@shopzeus.com> In-Reply-To: <fhk6pp$6fm$1@ger.gmane.org> References: <473C7C0A.4060708@shopzeus.com> <20071115182220.E60452@wojtek.tensor.gdynia.pl> <473CAF70.1090006@cran.org.uk> <fhk6pp$6fm$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ivan Voras wrote: > Bruce Cran wrote: > >> Wojciech Puchar wrote: >> >>> Laszlo wrote: >>> >>>> Hi All, >>>> >>>> Is there a way (sysctl?) to tell FreeBSD (6.2 RELEASE) how many >>>> memory can it use for caching file data from disk? >>>> >>>> It might be that FreeBSD will use all available RAM, and reduce the >>>> cache >>>> >>> it already does >>> >> It may seem strange since it's generally accepted that you can never >> have enough disk cache, but FreeBSD apparently doesn't actually use all >> the free memory for caching. By default it uses up to 256MB for >> > > This is wrong. See > http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/vm-fileio.html > I read this too but I don't understand. Too difficult for me. So what is the answer? Do I need to set a sysctl or will FreeBSD use all available free memory for caching file data from disk? Thanks, Laszlo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?473DC14D.1060601>