From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a74b36cecaab02f7 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-04-24 16:42:25 PST Path: sparky!uunet!decwrl!pa.dec.com!shodha.enet.dec.com!alan From: alan@shodha.enet.dec.com ( Alan's Home for Wayward Notes File.) Newsgroups: comp.sys.dec Subject: Re: vmstat question Summary: Some fields are documented. Message-ID: <6692@shodha.enet.dec.com> Date: 24 Apr 92 23:42:25 GMT References: Organization: Digital Equipment Corp. - Colorado Springs, CO. In article , sherman@lea.csc.ncsu.edu (Chris Sherman) writes: > I have a question about vmstat which, surprising, the man page doesn't cover. See if you can find a copy of the "Reader's Comments" page and fill it out. > > When I do a 'vmstat -v 5', I get the following output: > > procs memory > r dw pw sl w vm avm rm arm fre > 1 0 1 8 0 34k 10k 5664 3196 872 > > The man page does no tell us what dw, pw, sl, w, vm, rm, nor arm > are. These are counted for processes whose status is SSLEEP or SSTOP. dw - A process with the SLOAD flag set and the priority <= PZERO. Also called Disk Wait, hence the dw. pw - A process with the SPAGE flag set. sl - Sleeping. Mostly the ones not in Disk Wait. w - In the manual page ("runnable or short sleeper, but swapped") The remaining words in your list are virtual memory related. vm - Total Virtual memory. This is the sum of text, stack and data spaces for all processes. rm - Total Real memory. The sum of text, stack and data resident set sizes for all processes. avm - Active virtual memory. The total of stack and data spaces of those process with status SRUN or SIDL. > > Is there a way to read this an ask how much virtual memory > is left for me to use? You have as much Virtual memory to use as you have page/swap space to back it up. You want to look at pstat(8) and the -s option to find that. Given the information in the -v listing of vmstat(1) one other little bit of information you can get a good guess at much real memory you can use before you start paging. This other little bit of information is "lotsfree" which is the amount of memory the kernel tries to keep free when there isn't enough. See Also: The "Performance Management Guide" in the V4.2A documentation set. The part number is AA-PKDVA-TE if you want to order one. > > Thanx! > -- Chris Sherman -- Alan Rollow alan@nabeth.cxo.dec.com