Hi Mulyadi,
We were planning a similar mechanism (possibly use LTT mm_page_alloc), once we are done I will keep you posted. This is surprising that till date no mechanism has been in place to break up kernel usage per kernel thread.
Thanks, Sudharsan.
-----Original Message-----
Hi ...
On Tue, Apr 7, 2009 at 7:47 PM, Sudharsan Vijayaraghavan (vijayas) <vijayas@xxxxxxxxx> wrote: > Hi All > > > > We work in 2.6.24. We are planning to add instrumentation by virtue of which > one can get the physical memory consumed individually per kernel thread. > > Is there a mechanism/patch already in place which gives us such a metric? We > do know that smaps does it per user process.
Interesting plan you have. Since kernel threads don't own VMA, perhaps what you need is to declare linked list or tree that contain the page frame numbers. Other than that, I don't know whether such patch/mechanism exist.
regards,
Mulyadi. |