-
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 a new module function with 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 module function memcached.slab.info() was introduced. Output of memcached.slab.info() is similar to output produced by `box.slab.info()`, but without items_size, items_used, items_used_ratio and arena_used. tarantool> mc = require('memcached') creating arena with 4294967295 bytes... allocate slab cache with slab size 4194304 --- ... tarantool> mc.slab.info() --- - quota_used: 0 quota_size: 4294967296 quota_used_ratio: 0% ... 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_slab/slab_info/ Follows up #96
- Loading branch information
Showing
6 changed files
with
101 additions
and
1 deletion.
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
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