[j-nsp] Memory questions.

Kevin Oberman oberman at es.net
Mon Jul 7 11:38:51 EDT 2003


> From: "Magdy Albatooty (EG/EEL)" <magdy.albatooty at ericsson.com>
> Date: Sun, 6 Jul 2003 10:42:53 +0200 
> Sender: juniper-nsp-bounces at puck.nether.net
> 
> Hi,
> 
> 	The command "show system virtual-memory" displays the following:
> 
> Memory Totals:  In Use    Free    Requests
>                          5497K     80K    15304448
> 
> Why is free space too low? Is this normal?
> 
> Also, command "show system storage" shows several 100% capacity. Is this normal?

Under the hood, JunOS is FreeBSD and (like several other flavors of
UNIX), it creates "special" file systems to allow access to kernel
stuff like devices and the like. These (/dev and /proc) are always at
100%, by definition.

JunOS also uses FreeBSD "vn" (vnode) devices to mount several odds and
ends. These are actually complete file systems written to a single
disk file. While they may be created as read-write file systems and
have free space, in the case of JunOS they are read-only and the file
systems are created exactly big enough to hold the desired information,
so they are always at 100%.

"ad" devices are "real" disk partitions. "mfs" is also "real", but it
exists in memory (Memory File System) rather than on a physical
drive.

As to the memory situation, what you are seeing is not unusual for
FreeBSD. It typically keeps a lot of memory that is "free" in the used
category so that it can be paged back in if needed. If memory is
needed, it is available, but if it needs to be paged in, it's already
there.

I will admit that 80K does look a bit tight, but it is probably not.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634


More information about the juniper-nsp mailing list