Messages in this thread | | | Date | Thu, 07 Jul 2005 09:26:31 +0100 | From | P@draigBra ... | Subject | Re: How do you accurately determine a process' RAM usage? |
| |
Andrew Morton wrote: > Calculating this stuff accurately is very expensive. You'll get a better > answer using proc-pid-smaps.patch from -mm, but even that won't tell you > things about sharing levels of the pages.
Great, thanks! I'll play around with this: http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13-rc1/2.6.13-rc1-mm1/broken-out/proc-pid-smaps.patch Looks like it's been stable for 4 months?
Given that it's an independent /proc/$pid/smaps file, it only needs to be queried when required and so I wouldn't worry too much about cost. `top` wouldn't use it for e.g., but specialised tools like mine would.
-- Pádraig Brady - http://www.pixelbeat.org -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |