From owner-freebsd-hackers Mon Mar 5 18: 8:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 7722F37B71A for ; Mon, 5 Mar 2001 18:08:25 -0800 (PST) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.2/8.9.3) id f2628PT49635; Mon, 5 Mar 2001 18:08:25 -0800 (PST) (envelope-from dillon) Date: Mon, 5 Mar 2001 18:08:25 -0800 (PST) From: Matt Dillon Message-Id: <200103060208.f2628PT49635@earth.backplane.com> To: Dan Phoenix Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: systat -vmstat or iostat IO help References: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :I am trying to figure out corelation between Inactive and Free then. :Inact would be unused ram right? :Free would be what how much of Active is being used? So what you are :saying is if there is to much free then alot of active pages are being :killed for some reason...as seen in error logs etc? ....just trying to get :a quick overview of what a good accessment that was...never thought of :that. 'free' (from systat -vm or top) is all that matters in your case. Active/Inactive/Cache are best simply added together. Their individual values will depend heavily on the load on the machine because the VM system doesn't bother to keep things in their proper queues if the memory load is low. Normally when a machine is operating you see the 'free' value drop steadily until it hits vm.v_free_min, which is typically 2-4 MB. The VM system then frees up inactive & cache memory up to vm.v_free_target, which is typically around 10MB. Thus the 'free' value will recover to around 10MB, then drop and recover again, add nauseum. Once free memory drops you should never see it get big again unless you run a program which allocates a whole bunch of memory (e.g. 40MB) and then exits. The allocated memory is freed on program exit and may temporarily bump the 'free' value up, but it should steadily drop again and restabilize at 4-10MB or so. Alternatively it is possible that a whole bunch of programs may be started at once and then all exit at around the same time, resulting in the same effect. If you regularly see a large free value (aka 40MB) plus lots of disk activity, something weird may be going on that you need to track down and figure out. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message