From owner-freebsd-questions@FreeBSD.ORG Wed Dec 1 12:36:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE7EB16A4CE for ; Wed, 1 Dec 2004 12:36:26 +0000 (GMT) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADAD243D41 for ; Wed, 1 Dec 2004 12:36:24 +0000 (GMT) (envelope-from bbobowski@cogeco.ca) Received: from [24.150.215.98] (d150-215-98.home.cgocable.net [24.150.215.98]) by fep1.cogeco.net (Postfix) with ESMTP id 0FC5D8795; Wed, 1 Dec 2004 07:36:23 -0500 (EST) Message-ID: <41ADBA58.3090201@cogeco.ca> Date: Wed, 01 Dec 2004 07:34:32 -0500 From: Brian Bobowski User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Thunderbird/0.7.1 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <20041201032716.8FBA043D5C@mx1.FreeBSD.org> <20041201035316.GA20429@xor.obsecurity.org> In-Reply-To: <20041201035316.GA20429@xor.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: r.p.demarco@att.net Subject: Re: Can 10M Buffer Ceiling be lowere? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 12:36:27 -0000 Kris Kennaway wrote: >On Wed, Dec 01, 2004 at 03:27:11AM +0000, r.p.demarco@att.net wrote: > > >> A technical question: >> >> I have an old NEC computer (c. 1997) running 5.3-RELEASE with >>48M of RAM. Getting a new computer isn't an option right now, but >>I would like to get as much out of my memory as possible. >> My /boot/kernel/kernel file is about 3M, and from the initial >>boot: >> real memory = 50331648 (48 MB) >> avail memory = 43896832 (41 MB) >>it appears this kernel takes up about 7M of memory with one screen saver >>kld loaded. With a few unneeded services (cron, sendmail) disabled, I >>start off with about 26M free after a fresh reboot with just root logged in, >>running `top'. Looking at top, I noticed: >> >> Mem: 4320K Active, 15M Inact, 12M Wired, 10M Buf, 11M Free >> ^^^ >> >> From TOP(1): >> >> Buf: number of pages used for BIO-level disk caching >> >> Actually, the 10M is after some disk usage (it starts ~6M). >>It never gets above 10M. Is there anyway to adjust this, to >>(say) a maximum of 5M? Yes, a new 256 MB RAM system would be nice, >>but until then, I would like to avoid serious paging running xclock :) >>Thanks, >> >> > >There's no point, that memory will be used if demanded. Note that you >still have 11M free in your example, so throwing away 6MB that is used >for caching would only *reduce* performance. > >Kris > > Stated otherwise, I recall reading that FreeBSD considers unused memory to be wasted memory. If you had other stuff taking up memory, it might not use that much for caching; as it is, though, it's only taking advantage of memory which is otherwise just sucking up power to keep ready. Its activity, based on this, is causing you no harm. (I don't know if my 32MB machine, which reports 440K free from top, is suffering as a result, but I've certainly not noticed any difficulty when loading web pages that couldn't be as adequately explained by the relatively slow 166MHz CPU.) Also note that cron is responsible for such things as the routine system checks; if you really insist on disabling cron, you might need to audit your system a bit more aggressively. -BB