pmap->pm_stats.resident_count
Rao, Nikhil
nikhil.rao at intel.com
Mon Aug 25 06:52:55 UTC 2008
vm_daemon() looks at pmap->pm_stats.resident_count in the pmap structure
using vmspace_resident_count() which calls pmap_resident_count(),
pm_stats.resident_count is also incremented for device memory either if
the device memory has been mapped using pmap_object_init_pt or using
pmap_enter.
Since these pages do not belong to memory that is managed by the kernel,
they should not really be accounted in the if check below in
vm_pageout.c ?
if (limit >= 0 && size >= limit) {
1593 vm_pageout_map_deactivate_pages(
1594 &p->p_vmspace->vm_map, limit);
1595 }
Is my understanding correct ? What do the members of this list think ?
Thanks,
Nikhil
More information about the freebsd-hackers
mailing list