[j-nsp] (M7i RE5.0) memory usage

Richard A Steenbergen ras at e-gerbil.net
Sat Mar 27 23:28:23 EDT 2010


On Sun, Mar 28, 2010 at 04:07:54AM +0200, Alfred Schweder wrote:
> Hello
> 
> /kernel: CPU: Intel Celeron (397.95-MHz 686-class CPU)
> /kernel:   Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
> /kernel:   Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
> /kernel: real memory  = 805306368 (768 MB)
> /kernel: avail memory = 775344128 (739 MB)
> 
> If I look in the system summary, all memory seems to be in use:
> 
> alf at M7i.ffm> show system processes summary 
> last pid: 37152;  load averages:  0.15,  0.09,  0.08  up 67+03:19:19    03:56:10
> 125 processes: 4 running, 105 sleeping, 16 waiting
> Mem: 486M Active, 70M Inact, 147M Wired, 24M Cache, 69M Buf, 14M Free
> Swap: 1536M Total, 79M Used, 1457M Free, 5% Inuse
> 
> and the system seems to swap, cause less memory. The reaction of the
> cli has often a slow start which is likely for swapping ...
> 
> If I look deeper:
> alf at M7i.ls> show task memory detail
> ...
>     Dynamically allocated memory:  335396864      Maximum: 366436352
>          Program data+BSS memory:    4349952      Maximum:   4349952
>               Page data overhead:    2154496      Maximum:   2154496
>              Page directory size:     360448      Maximum:    360448
>                                   ----------
>               Total bytes in use:  342261760 (55% of available memory)
> 
> all seems to be fine and much memory is waiting for more ...
> Can someone give my some light in the darkness ?

The first command is accurate for the entire system, the second is only 
showing stats on some specific junos processes. You're definitely 
(almost) out of memory, the 70M inactive + 14M free is available for 
use, but you're clearly facing pressure since you've already swapped on 
79M of inactive pages.

Run top from shell, hit o, and sort by "res" to see what else is 
consuming memory on the box.

-- 
Richard A Steenbergen <ras at e-gerbil.net>       http://www.e-gerbil.net/ras
GPG Key ID: 0xF8B12CBC (7535 7F59 8204 ED1F CC1C 53AF 4C41 5ECA F8B1 2CBC)


More information about the juniper-nsp mailing list