Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Oct 2009 03:12:35 -0400
From:      grarpamp <grarpamp@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Adding up kernel mem usage
Message-ID:  <d2e731a10910150012t36e5f94dy809c31e9d6654c98@mail.gmail.com>
In-Reply-To: <d2e731a10910142355i4b71a4ebl908b87a8e5d40403@mail.gmail.com>
References:  <d2e731a10910142355i4b71a4ebl908b87a8e5d40403@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 for in one of the two vmstat's?

systat -vm 1
Mem:KB    REAL            VIRTUAL
        Tot   Share      Tot    Share    Free
Act  191564   39548   461348    48380  566632
All  423996   42600  2619680    53448

I'm not sure what Share means in this context?

Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d2e731a10910150012t36e5f94dy809c31e9d6654c98>