vinyl: add last level size to statistics
In order to estimate space amplification of a vinyl database, we need to know the size of data stored at the last LSM tree level. So this patch adds such a counter both per index and globablly. Per-index it is reported under disk.last_level, in rows, bytes, bytes after compression, and pages, just like any other disk counter. Globablly it is repoted in bytes only under disk.data_compacted. Note, to be consistent with disk.data, it doesn't include the last level of secondary indexes.
Showing
- src/box/vinyl.c 3 additions, 0 deletionssrc/box/vinyl.c
- src/box/vy_lsm.c 19 additions, 1 deletionsrc/box/vy_lsm.c
- src/box/vy_lsm.h 12 additions, 0 deletionssrc/box/vy_lsm.h
- src/box/vy_stat.h 2 additions, 0 deletionssrc/box/vy_stat.h
- test/vinyl/stat.result 197 additions, 51 deletionstest/vinyl/stat.result
- test/vinyl/stat.test.lua 42 additions, 0 deletionstest/vinyl/stat.test.lua
Loading
Please register or sign in to comment