vinyl: add statistic for total size of memory occupied by tuples
Vinyl tuples returned to the user are allocated with malloc. They may be pinned by Lua indefinitely. Currently, there's no way to figure out how much memory is occupied by these tuples. This commit adds a statistic to box.stat.vinyl() that accounts them. Closes #8485 @TarantoolBot document Title: Document `memory.tuple` statistic of `box.stat.vinyl()` The new statistic shows the total size of memory in bytes occupied by Vinyl tuples. It includes cached tuples and tuples pinned by the Lua world.
Showing
- changelogs/unreleased/gh-8485-vy-tuple-stat.md 5 additions, 0 deletionschangelogs/unreleased/gh-8485-vy-tuple-stat.md
- src/box/vinyl.c 1 addition, 0 deletionssrc/box/vinyl.c
- src/box/vy_stmt.c 14 additions, 3 deletionssrc/box/vy_stmt.c
- src/box/vy_stmt.h 7 additions, 0 deletionssrc/box/vy_stmt.h
- test/vinyl-luatest/gh_8485_tuple_stat_test.lua 61 additions, 0 deletionstest/vinyl-luatest/gh_8485_tuple_stat_test.lua
- test/vinyl/stat.result 11 additions, 2 deletionstest/vinyl/stat.result
- test/vinyl/stat.test.lua 4 additions, 0 deletionstest/vinyl/stat.test.lua
Loading
Please register or sign in to comment