From owner-freebsd-current Tue Nov 3 01:05:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA11704 for freebsd-current-outgoing; Tue, 3 Nov 1998 01:05:26 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA11687 for ; Tue, 3 Nov 1998 01:05:24 -0800 (PST) (envelope-from xroot@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id BAA13428; Tue, 3 Nov 1998 01:05:58 -0800 (PST) Message-Id: <199811030905.BAA13428@implode.root.com> To: "William S. Duncanson" cc: freebsd-current@FreeBSD.ORG Subject: Re: Err...something fishy going on in top. In-reply-to: Your message of "Tue, 03 Nov 1998 00:05:40 CST." <4.1.19981102235947.052f0100@fire.starkreality.com> From: David Greenman Reply-To: dg@root.com Date: Tue, 03 Nov 1998 01:05:58 -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I rebuilt world a couple of hours ago, from a cvsup at around 8:30 CST >tonight. When I rebooted, the box seemed slower than it should have been. >To make a long story short, in the process of doing stuff, I noticed that >whenever there's heavy disk i/o, instead of the amount of memory dedicated >to cache increasing, the amount of memory being listed as inactive was >increasing. Huh? I'm confused. Right now, it looks like none of my >memory is being used for file cacheing, even though I have > 32 MB free. >What am I missing? You're missing what it all actually means. "cache" is a queue, not an indication of caching. The same is also true for "active", "inactive", and "free" - they are just various page queues that the system moves pages between depending on their priority. A change was made recently so that cached file pages are always put onto the inactive queue rather than just some of the time (they previously would also be put onto the cache queue). This actually improves performance because it keeps the pages better LRU sorted. When memory becomes short, the pagedaemon will move the pages to the cache queue (and then to the free queue) as needed. This will not significantly increase CPU usage and will increase overall system performance by a measurable amount. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message