txm: introduce memtx mvcc memory monitoring
This patch introduces memtx_tx_region and memtx_tx_mempool: engineers must use only these proxies to collect statistics. Also this patch introduces box.stat.memtx.mvcc - the way to get memtx mvcc memory statistics. Closes #6150 @TarantoolBot document Title: Memtx MVCC memory monitoring Introduce memtx MVCC memory monitoring. One can get it with box.stat.memtx.tx() method or use index to access a particular statistic. The statistics format: txn: statements: max: 0 avg: 0 total: 0 user: max: 0 avg: 0 total: 0 system: max: 0 avg: 0 total: 0 mvcc: trackers: max: 0 avg: 0 total: 0 conflicts: max: 0 avg: 0 total: 0 tuples: tracking: stories: count: 0 total: 0 retained: count: 0 total: 0 used: stories: count: 0 total: 0 retained: count: 0 total: 0 read_view: stories: count: 0 total: 0 retained: count: 0 total: 0
Showing
- changelogs/unreleased/gh-6150-memtx-mvcc-memory-monitoring.md 3 additions, 0 deletions...gelogs/unreleased/gh-6150-memtx-mvcc-memory-monitoring.md
- src/box/lua/stat.c 156 additions, 0 deletionssrc/box/lua/stat.c
- src/box/memtx_tx.c 449 additions, 75 deletionssrc/box/memtx_tx.c
- src/box/memtx_tx.h 89 additions, 2 deletionssrc/box/memtx_tx.h
- src/box/txn.c 5 additions, 1 deletionsrc/box/txn.c
- src/box/txn.h 4 additions, 0 deletionssrc/box/txn.h
- test/box-luatest/gh_6150_memtx_tx_memory_monitoring_test.lua 436 additions, 0 deletionstest/box-luatest/gh_6150_memtx_tx_memory_monitoring_test.lua
Loading
Please register or sign in to comment