vm_object resident_page_count and vmspace.vm_pmap.pm_stats.resident_count

kapil jain kapiltj at yahoo.com
Wed Apr 26 17:28:35 UTC 2006

 What is the different between the 2 values:
 vmspace.vm_pmap.pm_stats.resident_count and
 the sum of 
 vm_object resident_page_count 
 of all objecsts in that vmspace?
  I thought they might be the same, but looks like they are not. For eg. for 1 process I get from vmspace 168 pages, and 192 pages from objects sum. The resident size is taken from vmspace.
 Is it that one includes shared pages and the other doesn't?

More information about the freebsd-questions mailing list