Subject: Stupid, ignorant unix-newbie's Q
To: None <current-users@NetBSD.ORG>
From: Julian Bean <jules@mailbox.co.uk>
List: current-users
Date: 09/20/1996 12:16:54
Sorry to bother you guys, but I have never really got a hang of how vmunix
handles memory.

If I do a vmstat -w 5, I see something like:

jelibean@elsie:~% vmstat -w 5                                          12:23:52
 procs   memory     page                    disks         faults      cpu
 r b w   avm   fre  flt  re  pi  po  fr  sr ?0 ?1 ?2 ?3   in   sy  cs us sy id
 0 0 0  5516   336    6   1   0   0   0   0  0  0  0  0  185    8   2  1  1 97
 0 0 0  5612   328    2   0   1   0   0   0  0  0  0  0  183    6   1  0  0 100
 0 0 0  4708   328    0   0   0   0   0   0  0  0  0  0  183    4   1  0  0 100

pstat gives:

jelibean@elsie:~% pstat -s                                             12:24:07
Device      512-blocks     Used    Avail Capacity  Type
/dev/sd1b       204800     2536   202264     1%    Interleaved

How does this all tie in?  I have 12M of real memory, 100M swap.  Am I to
assume that I am only using around 6M, and thus have yet to even start
using disk-based swap?  In that case, why is 1.2M (ish) used up on disk?

What is the free list?  Why isn't the other 6M of real memory on the free list?

Does anyone know of a decent work (preferably online, but I could go buy a
book) on unix VM (preferably one applicable to NetBSD ;-) ?

FWIW:

jelibean@elsie:~% uname -a                                             12:24:10
NetBSD elsie 1.1B NetBSD 1.1B (ELSIE) #45: Thu Apr  4 10:44:24 BST 1996     root
@elsie:/home/src/sys/arch/mac68k/compile/ELSIE mac68k


(Yes, I really should compile myself a -current kernel again soon - mine
keeps crashing, but thats a problem for port-mac68k ;-)

Jules


/----------------+-------------------------------+---------------------\
|  Jelibean aka  | jules@mailbox.co.uk           |  6 Evelyn Road      |
|  Jules aka     |                               |  Richmond, Surrey   |
|  Julian Bean   |                               |  TW9 2TF    *UK*    |
+----------------+-------------------------------+---------------------+
|  The 'net interprets censorship as damage, and routes around it.     |
\----------------------------------------------------------------------/