vinyl: add global memory stats
box.info.memory() gives you some insight on what memory is used for, but it's very coarse. For vinyl we need finer grained global memory statistics. This patch adds such: they are reported under box.stat.vinyl().memory and consist of the following entries: - level0: sum size of level-0 of all LSM trees. - tx: size of memory used by tx write and read sets. - tuple_cache: size of memory occupied by tuple cache. - page_index: size of memory used for storing page indexes. - bloom_filter: size of memory used for storing bloom filters. It also removes box.stat.vinyl().cache, as the size of cache is now reported under memory.tuple_cache.
Showing
- src/box/vinyl.c 14 additions, 28 deletionssrc/box/vinyl.c
- src/box/vy_tx.c 19 additions, 0 deletionssrc/box/vy_tx.c
- src/box/vy_tx.h 4 additions, 0 deletionssrc/box/vy_tx.h
- test/vinyl/cache.result 5 additions, 5 deletionstest/vinyl/cache.result
- test/vinyl/cache.test.lua 5 additions, 5 deletionstest/vinyl/cache.test.lua
- test/vinyl/info.result 66 additions, 19 deletionstest/vinyl/info.result
- test/vinyl/info.test.lua 16 additions, 3 deletionstest/vinyl/info.test.lua
Loading
Please register or sign in to comment