diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-07-14 16:17:21 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-07-14 16:17:21 +0000 |
commit | c24543fa5061bf3ea345882d7b2e1d4aba137b60 (patch) | |
tree | 35187bf6145198fd6ece5eecfb6230809004aaaf /sys/vm/uma_int.h | |
parent | 3f3682a4b8127f60b990369e0ebc8c393c18c4cc (diff) | |
download | FreeBSD-src-c24543fa5061bf3ea345882d7b2e1d4aba137b60.zip FreeBSD-src-c24543fa5061bf3ea345882d7b2e1d4aba137b60.tar.gz |
In addition to tracking allocs in the zone, also track frees. Add
a zone free counter, as well as a cache free counter.
MFC after: 1 week
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r-- | sys/vm/uma_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h index 2fcc15a..365aa90 100644 --- a/sys/vm/uma_int.h +++ b/sys/vm/uma_int.h @@ -177,6 +177,7 @@ struct uma_cache { uma_bucket_t uc_freebucket; /* Bucket we're freeing to */ uma_bucket_t uc_allocbucket; /* Bucket to allocate from */ u_int64_t uc_allocs; /* Count of allocations */ + u_int64_t uc_frees; /* Count of frees */ }; typedef struct uma_cache * uma_cache_t; @@ -303,6 +304,7 @@ struct uma_zone { uma_fini uz_fini; /* Discards memory */ u_int64_t uz_allocs; /* Total number of allocations */ + u_int64_t uz_frees; /* total number of frees */ uint16_t uz_fills; /* Outstanding bucket fills */ uint16_t uz_count; /* Highest value ub_ptr can have */ |