From owner-freebsd-questions Thu Oct 25 10: 5:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 55B4337B401 for ; Thu, 25 Oct 2001 10:05:08 -0700 (PDT) Received: (qmail 29176 invoked by uid 100); 25 Oct 2001 17:05:07 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15320.17987.604643.140502@guru.mired.org> Date: Thu, 25 Oct 2001 12:05:07 -0500 To: "Moshe Ashkenazi" Cc: Subject: RE: "Netstat -s" and pstat -T In-Reply-To: <00ba01c15d75$daedaa10$97025a3e@SHAGWELL> References: <15320.16241.228684.9854@guru.mired.org> <00ba01c15d75$daedaa10$97025a3e@SHAGWELL> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Context lost through top posting.] Moshe Ashkenazi types: > I'm sorry I did notice I wrote "pstat" ;-) > > About "vmstat" - > "avm" is active virtual pages and "fre" is size of the free list > > 1. what is free list ? The list of free pages in memory. > 2. I know avm include swap file, but if the machine using swap > how it still have free memory ? A number of different ways. If pages are swapped out and then a process exits, there's no need to swap them in until they're requested. FreeBSD will swap out pages that it decides are inactive and put them on the free list. If the process that owns them needs them before they get used, they get recovered from the free list. If not, then they're already swapped out and can be given to the next process that wants memory. Such pages appear on both the free list and on swap. Read Matt's paper on the VM system on the FreeBSD web site for more details. Read Kirk's book on FreeBSD internals for in depth information. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message