-
- Downloads
obj: introduce new statistics useful for defrag
This patch introduces two new statistics: stats.heap.run_active and stats.heap.run_allocated. Combination of these two can be used to estimate the total potentially unused space in the heap, indicating that defrag should be ran.
Showing
- doc/libpmemobj/pmemobj_ctl_get.3.md 34 additions, 2 deletionsdoc/libpmemobj/pmemobj_ctl_get.3.md
- src/libpmemobj/heap.c 16 additions, 4 deletionssrc/libpmemobj/heap.c
- src/libpmemobj/palloc.c 10 additions, 3 deletionssrc/libpmemobj/palloc.c
- src/libpmemobj/stats.c 5 additions, 0 deletionssrc/libpmemobj/stats.c
- src/libpmemobj/stats.h 3 additions, 2 deletionssrc/libpmemobj/stats.h
- src/test/obj_ctl_stats/obj_ctl_stats.c 10 additions, 0 deletionssrc/test/obj_ctl_stats/obj_ctl_stats.c
- src/test/obj_fragmentation2/obj_fragmentation2.c 33 additions, 0 deletionssrc/test/obj_fragmentation2/obj_fragmentation2.c
Loading
Please register or sign in to comment