Interesting, how do I get the page size? On 9/21/06, Rik van Riel <riel@xxxxxxxxxxx> wrote:
Irfan Habib wrote: > Hi, > > I'm developing kernel modules for educational purposes, and I was > trying to find out the amount of memory used by a process. When you go > ps -aux it shows for example that a certain process is using 1.7% of > memory and has an RSS of 16000, however when I go to the concerned > task_struct and printk the rss from mm, I get a value which is in > hundreds, compared to thousands? The RSS reported by ps is in kilobytes, right ? The kernel counts in pages, which are larger. -- What is important? What you want to be true, or what is true?
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/