Subject: Re: small memory box, NFS-mounted swapfile panic
To: None <thorpej@nas.nasa.gov>
From: Sean Doran <smd@ebone.net>
List: port-alpha
Date: 10/29/1998 09:15:00
Jason Thorpe wrote:

| So, I guess what's happening is that you're STILL losing.  I.e. you REALLY
| are running out of pages, period.  Since pmap routines have no way to fail,
| they simply panic when they can't perform their function.

Hm, that would be lots of pages taken up by *something*, then:

AlphaStation 200 4/233, 233MHz
8192 byte page size, 1 processor.
real mem = 16777216 (1294336 reserved for PROM, 15482880 used by NetBSD)
avail mem = 11616256
using 189 buffers containing 1548288 bytes of memory

| Make is a memory pig.  Sigh.  Actually, I really would like to know where
| all the memory is going, and which pmaps have been pmap_collect'd as part
| of the "oh foo, let's free up some memory fast!" process.

Send instrumentation.  --:)

The strange thing is that I've done incredibly memory-piggy things
on this box already, notably making and running /usr/pkgsrc/games/lincity.
Eats lots and lots of memory, runs really slowly as a result, but doesn't
panic.

I have even done simultaneous makes of things, just for fun.

It could be that "make build" is just much bigger than that.

It does get quite large during the make cleandir in lib/libc...

  PID STAT      TIME  SL  RE PAGEIN   VSZ  RSS   LIM TSIZ %CPU %MEM COMMAND
  597 R      0:04.66   0  23     31  7608  120     -  144 17.1  0.9 make _THISDI
R_
  570 IW     0:00.32  23   2      0  1264    0     -  144  0.0  0.0 make _THISDI
R_
    4 Ss     0:00.52   2  21    164  1040  232     -  456  0.0  1.6 -sh 
  596 IW     0:00.02  23   2      0  1008    0     -  456  0.0  0.0 /bin/sh -ec 
cd
  569 IW     0:00.02  25   5      0  1008    0     -  456  0.0  0.0 /bin/sh -ec 
cd
  564 IW     0:00.19  25   5      0   896    0     -  144  0.0  0.0 make cleandi
r 
  515 IW     0:00.25  26   6     46   888    0     -  144  0.0  0.0 make build 
  602 R+     0:00.03   0   3     23   664  304     -  256  0.4  2.1 ps -v 

Un(?)fortunately it didn't go kapow this time (for the first time).  
I have no idea why.

	Sean.