how can I get the meminfo of each kernel process?

Giorgos Keramidas keramida at freebsd.org
Mon May 30 05:11:00 PDT 2005


On 2005-05-30 11:26, littlegege at 263.net wrote:
> I want to get the meminfo of each kernel process,such as how much
> memory size is allocated to a process.How can i do? I will do this
> in kernel space,so which data structure can i used to achieve this.

AFAIK, the kernel threads run in the same address space as the kernel.
It doesn't make sense to ask for their "resident size", because they
share the same address space that all the other kernel threads use.



More information about the freebsd-hackers mailing list