vinyl: add global disk stats
This patch adds some essential disk statistics that are already collected and reported on per index basis to box.stat.vinyl(). The new statistics are shown under the 'disk' section and currently include the following fields: - data: size of data stored on disk. - index: size of index stored on disk. - dump.in: size of dump input. - dump.out: size of dump output. - compact.in: size of compaction input. - compact.out: size of compaction output. - compact.queue: size of compaction queue. All the counters are given in bytes without taking into account disk compression. Dump/compaction in/out counters can be reset with box.stat.reset().
Showing
- src/box/vinyl.c 32 additions, 1 deletionsrc/box/vinyl.c
- src/box/vy_lsm.c 42 additions, 8 deletionssrc/box/vy_lsm.c
- src/box/vy_lsm.h 2 additions, 0 deletionssrc/box/vy_lsm.h
- src/box/vy_stat.h 20 additions, 0 deletionssrc/box/vy_stat.h
- test/vinyl/errinj.result 20 additions, 0 deletionstest/vinyl/errinj.result
- test/vinyl/errinj.test.lua 5 additions, 0 deletionstest/vinyl/errinj.test.lua
- test/vinyl/info.result 71 additions, 2 deletionstest/vinyl/info.result
- test/vinyl/info.test.lua 14 additions, 0 deletionstest/vinyl/info.test.lua
Loading
Please register or sign in to comment