freebsd-nq/sys/amd64
Alan Cox 4c57d6d555 amd64/pmap: fix user page table page accounting
When a superpage mapping is destroyed and the original page table page
containing 4KB mappings that was being held in reserve is deallocated,
the recently introduced user page table page count was not being
decremented.  Consequentially, the count was wrong and would grow over
time.  For example, after multiple iterations of "buildworld", I was
seeing implausible counts, like the following:

vm.pmap.kernel_pt_page_count: 2184
vm.pmap.user_pt_page_count: 2280849
vm.pmap.pv_page_count: 106

With this change, I now see:

vm.pmap.kernel_pt_page_count: 2183
vm.pmap.user_pt_page_count: 344
vm.pmap.pv_page_count: 105

Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D33276
2021-12-05 19:13:43 -06:00
..
acpica amd64 wakeup: rework trampoline page allocation 2021-09-14 00:23:15 +03:00
amd64 amd64/pmap: fix user page table page accounting 2021-12-05 19:13:43 -06:00
conf x86 GENERIC/MINIMAL: group sc(4) devices together 2021-11-28 14:38:41 -05:00
ia32 freebsd32: remove redundant no-arg syscalls 2021-11-17 20:12:24 +00:00
include netinet: Remove in_cksum_update() 2021-11-24 13:31:15 -05:00
linux linux: remove the always curthread argument from lconvpath 2021-11-25 22:50:42 +00:00
linux32 linux: remove the always curthread argument from lconvpath 2021-11-25 22:50:42 +00:00
pci pci_cfgreg.c: Use io port config access for early boot time. 2019-04-09 18:07:17 +00:00
sgx Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
vmm vlapic: Schedule callouts on the local CPU 2021-10-19 21:22:57 -04:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00