Read kernel usage of physical memory

Submitted by Anupama Chandwani
on July 31, 2009 - 10:45am

I wanted to know the kernel's usage of physical memory at any point of time. This would include the physical pages it used for maintaining its data structures, code, etc.

min_low_pfn gives me the lowest usable pfn, after kernel image. This however does not include data structures like mem_map[], etc. Is there a way to retrieve all pfns used by the kernel.

Cheers,
Anupama Chandwani