-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memcached: add an API method that shows slab info
Before switching to our own slab arena user can control usage and information about slab arena using Tarantool Lua API (specifically box.slab.{check,info,stat}() functions), see [1]. Example of output box.slab.info() is below: tarantool> box.slab.info() --- - items_size: 146896 items_used_ratio: 26.05% quota_size: 268435456 quota_used_ratio: 12.50% arena_used_ratio: 3.7% items_used: 38264 quota_used: 33554432 arena_size: 33554432 arena_used: 1234296 ... With our own slab arena we need a way to obtain information about arena. It's a reason why new method slab() was introduced. Output of slab() is similar to output from `box.slab.info()`, but without items_size, items_used, items_used_ratio and arena_used is not implemented. tarantool> require('memcached'):slab() --- - info: quota_used: 4194304 arena_used_ratio: 0 quota_used_ratio: 0.097656249999998 arena_size: 4194304 quota_size: 4294967296 arena_used: 0 ... 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_slab/slab_info/ Follows up #96
- Loading branch information
Showing
5 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters