Date: Tue, 5 Jun 2007 20:14:14 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 121010 for review Message-ID: <200706052014.l55KEEQD069712@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=121010 Change 121010 by peter@peter_daintree on 2007/06/05 20:13:37 Track uma direct map pages as "wired" for visibility to top. There should really be a "kernel" counter, not 'wired'. Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/uma_machdep.c#4 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/uma_machdep.c#4 (text+ko) ==== @@ -67,6 +67,7 @@ } pa = m->phys_addr; dump_add_page(pa); + kernel_pmap->pm_stats.wired_count++; va = (void *)PHYS_TO_DMAP(pa); if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) pagezero(va); @@ -80,6 +81,7 @@ vm_paddr_t pa; pa = DMAP_TO_PHYS((vm_offset_t)mem); + kernel_pmap->pm_stats.wired_count--; dump_drop_page(pa); m = PHYS_TO_VM_PAGE(pa); vm_page_free(m);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706052014.l55KEEQD069712>