diff options
author | peter <peter@FreeBSD.org> | 2006-04-04 20:17:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2006-04-04 20:17:35 +0000 |
commit | bfd11ed701136af472e0fdd5e1812fbcb048768d (patch) | |
tree | 1cacfe52fcde40068cdbccbde6fe7bc1f1186576 /sys/amd64 | |
parent | da02059e81ca00b10e3d82d1fd2a32434865b67c (diff) | |
download | FreeBSD-src-bfd11ed701136af472e0fdd5e1812fbcb048768d.zip FreeBSD-src-bfd11ed701136af472e0fdd5e1812fbcb048768d.tar.gz |
Convert pv_entry_frees and pv_entry_allocs stats counters from int to long,
they wrap way too quickly.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 009898a..c5e27e9 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1474,13 +1474,14 @@ SYSCTL_INT(_vm_pmap, OID_AUTO, pc_chunk_frees, CTLFLAG_RD, &pc_chunk_frees, 0, SYSCTL_INT(_vm_pmap, OID_AUTO, pc_chunk_tryfail, CTLFLAG_RD, &pc_chunk_tryfail, 0, "Number of times tried to get a chunk page but failed."); -static int pv_entry_frees, pv_entry_allocs, pv_entry_spare; +static long pv_entry_frees, pv_entry_allocs; +static int pv_entry_spare; SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_count, CTLFLAG_RD, &pv_entry_count, 0, "Current number of pv entries"); -SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_frees, CTLFLAG_RD, &pv_entry_frees, 0, +SYSCTL_LONG(_vm_pmap, OID_AUTO, pv_entry_frees, CTLFLAG_RD, &pv_entry_frees, 0, "Current number of pv entry frees"); -SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_allocs, CTLFLAG_RD, &pv_entry_allocs, 0, +SYSCTL_LONG(_vm_pmap, OID_AUTO, pv_entry_allocs, CTLFLAG_RD, &pv_entry_allocs, 0, "Current number of pv entry allocs"); SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_spare, CTLFLAG_RD, &pv_entry_spare, 0, "Current number of spare pv entries"); |