Date: Wed, 15 Mar 2006 00:12:16 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93323 for review Message-ID: <200603150012.k2F0CGJW096579@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93323 Change 93323 by peter@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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603150012.k2F0CGJW096579>