gh-968: box.slab.info.arena_used_ratio is incorrect
Reflect in slab stats the quota size and index memory statistics. arena_used_ratio - how much of arena is used items_used_ratio - how much memory is actualy used for items, given that there is some fragmentation. Doesn't reflect index pages arena_used - how much of the quota is used (i.e. how much memory is used for index and tuple data) arena_size - this is the same as box.cfg.slab_alloc_arena. quota_size - how much of the quota is defined (box.cfg.slab_alloc_arena) quota_used - how much of the quota is used (reflects the memory taken by all slabs, including slabs in caches) Incompatible change: Extract detailed slab statistics to a separate call, box.slab.stats()
Showing
- src/box/lua/slab.cc 86 additions, 22 deletionssrc/box/lua/slab.cc
- src/box/memtx_engine.cc 10 additions, 5 deletionssrc/box/memtx_engine.cc
- src/box/memtx_engine.h 3 additions, 0 deletionssrc/box/memtx_engine.h
- src/lib/small/quota.h 1 addition, 1 deletionsrc/lib/small/quota.h
- src/lib/small/slab_arena.c 1 addition, 1 deletionsrc/lib/small/slab_arena.c
- test/box/admin.result 9 additions, 8 deletionstest/box/admin.result
- test/box/admin.test.lua 9 additions, 8 deletionstest/box/admin.test.lua
- test/box/misc.result 5 additions, 4 deletionstest/box/misc.result
- test/box/misc.test.lua 1 addition, 1 deletiontest/box/misc.test.lua
- test/unit/quota.cc 1 addition, 1 deletiontest/unit/quota.cc
- test/unit/slab_arena.c 1 addition, 1 deletiontest/unit/slab_arena.c
Loading
Please register or sign in to comment