Task_Struct->mm->RSS different from ps -aux RSS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
For finding out the memory three items in the mm_struct look
interesting to me: RSS, Total_VM and vm_lock, will adding them
together give me the memory used by a process?

regards
Irfan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux