PERFORCE change 93323 for review
Peter Wemm
peter at FreeBSD.org
Wed Mar 15 00:12:34 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=93323
Change 93323 by peter at peter_melody on 2006/03/15 00:11:28
Add corresponding stats entries in pmap_remove_pages(), because it
directly manipulates and frees pv entries and pv entry chunks.
Affected files ...
.. //depot/projects/hammer/sys/amd64/amd64/pmap.c#139 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/amd64/pmap.c#139 (text+ko) ====
@@ -2760,6 +2760,9 @@
vm_page_dirty(m);
/* Mark free */
+ pv_entry_frees++;
+ pv_entry_spare++;
+ pv_entry_count--;
didfree = 1;
pc->pc_map[field] |= 1ul << bit;
m->md.pv_list_count--;
@@ -2771,6 +2774,9 @@
}
}
if (allfree) {
+ pv_entry_spare -= _NPCPV;
+ pc_chunk_count--;
+ pc_chunk_frees++;
TAILQ_REMOVE(&pmap->pm_pvchunk, pc, pc_list);
m = PHYS_TO_VM_PAGE(DMAP_TO_PHYS((vm_offset_t)pc));
vm_page_lock_queues();
More information about the p4-projects
mailing list