Re: Adding up kernel mem usage

2009-10-15 Thread grarpamp
Is multiplying out the size and used columns from vmstat -z completely in addition to the amount used in vmstat -m, or do some of them overlap? vmstat -z | sed 's,^.*:,,' | sed -E 's,^ +,,' | sed -E 's/^([0-9]+),[^,]+, +/\1*/;s/,.*$//' | egrep '^[0-9]' | bc | add 58483416 Is netstat -m accounted

Adding up kernel mem usage

2009-10-15 Thread grarpamp
If I subtract vmstat and kldstat from wired, I'm missing approx 100M. What am I doing wrong or what should I be adding up to find the total mem in use by the kernel and a breakdown of that usage? Thanks. top -SH -d 1 1000 | egrep '^Mem:' Mem: 114M Active, 65M Inact, 258M Wired, 468K Cache, 46M