Quote:
Originally Posted by knasbas
But what is using the ram? If you check my second post it just doesnt add up? 1.5gb installed ram but those applications uses around 40mb but its still only 250mb free.
|
The kernel also uses memory, for example by the ffs filesystem
Code:
$ sysctl vfs | grep dirhash
vfs.ffs.dirhash_dirsize=2560
vfs.ffs.dirhash_maxmem=2097152
vfs.ffs.dirhash_mem=165590
Or receive/send buffer for TCP/UDP connections. From the output of
sysctl net.inet
Code:
net.inet.tcp.recvspace=65536
net.inet.tcp.sendspace=16384
net.inet.udp.recvspace=41600
net.inet.udp.sendspace=9216
The actual usage can be queried
Code:
$ netstat -m
88 mbufs in use:
65 mbufs allocated to data
23 mbufs allocated to socket names and addresses
64/126/6144 mbuf 2048 byte clusters in use (current/peak/max)
0/8/6144 mbuf 4096 byte clusters in use (current/peak/max)
0/8/6144 mbuf 8192 byte clusters in use (current/peak/max)
0/8/6144 mbuf 9216 byte clusters in use (current/peak/max)
0/8/6144 mbuf 12288 byte clusters in use (current/peak/max)
0/8/6144 mbuf 16384 byte clusters in use (current/peak/max)
0/8/6144 mbuf 65536 byte clusters in use (current/peak/max)
488 Kbytes allocated to network (30% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routine