From owner-freebsd-questions@FreeBSD.ORG Fri Nov 16 13:43:52 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40FC516A41B for ; Fri, 16 Nov 2007 13:43:52 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E463613C478 for ; Fri, 16 Nov 2007 13:43:51 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1It1To-0002sR-Qm for freebsd-questions@freebsd.org; Fri, 16 Nov 2007 13:43:32 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Nov 2007 13:43:32 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Nov 2007 13:43:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Fri, 16 Nov 2007 14:47:03 +0100 Lines: 23 Message-ID: References: <473C7C0A.4060708@shopzeus.com> <20071115182220.E60452@wojtek.tensor.gdynia.pl> <473CAF70.1090006@cran.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.6 (X11/20070801) In-Reply-To: <473CAF70.1090006@cran.org.uk> Sender: news Subject: Re: How to set maximum disk cache size? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2007 13:43:52 -0000 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 """FreeBSD reserves a limited amount of KVM to hold mappings from struct bufs, but it should be made clear that this KVM is used solely to hold mappings and does not limit the ability to cache data. """