holmes
holmes

Reputation: 981

Want to make /proc/*/smaps output anonymous region sum and /proc/meminfo AnonPages to match to trace actual memory usage precisely

I want to see the precise amount of memory each processes use as anonymous page, because anonymous memory cannot be paged out, thus tracking this usage precisely is important.

One way to get the whole sum of anonymous page is to read /proc/meminfo AnonPages.

The other way is to add up all the entries in smaps file which matches follows:

So I would like to know how to differentiate the above relocated section, and to precisely track the anonymous memory usage for each processes.

Maybe we should add new entry in /proc/*/smaps to show the amount of Anonymous memory for each section.

Upvotes: 1

Views: 2455

Answers (1)

Related Questions