This discussion is archived
0 Replies Latest reply: Sep 13, 2012 2:35 PM by 941184 RSS

System anonymous memory usage

941184 Newbie
Currently Being Moderated
Hello,
you can know memory anon usage of your system with:

root@sista # echo ::memstat |mdb -k
Page Summary Pages MB %Tot
==== ========== ==========
Kernel 639360 4995 31%
ZFS File Data 1040450 8128 51%
Anon 40807 318 2%
Exec and libs 15192 118 1%
Page cache 22057 172 1%
Free (cachelist) 7857 61 0%
Free (freelist) 292191 2282 14%

Total 2057914 16077
Physical 2036298 15908


318MB for anon memory.

In theory, doing "pmap -x /proc/*" and making the sum of all totals of the anon colum and adding all the shared memory (ipcs -ma) you will have the same value.
But i did it and I have very differents values (lower for pmap sum). What's wrong in my suppose or who command is lying me? I hav tested it in several machines with the same result: big differences in values.

Thank you very much.

Edited by: rar on Sep 13, 2012 2:35 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points