Skip to content

New box.runtime.info().tuple metric #2829

Open
@TarantoolBot

Description

@TarantoolBot

Related dev. issue(s): tarantool/tarantool@b56e012.

Product: Tarantool
Since: 2.10.0-rc1
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_slab/runtime_info/
SME: @ Totktonada

Details

It allows to track memory allocated for tuples on runtime arena. It does
not count tuples owned by memtx and vinyl, but tracks so called runtime
tuples. The most common example is a tuple created by the
box.tuple.new(<...>) function.

Example:

tarantool> box.runtime.info().tuple -- 0
tarantool> box.tuple.new({})
tarantool> box.runtime.info().tuple -- 160
tarantool> box.tuple.new({})
tarantool> box.runtime.info().tuple -- 320
tarantool> collectgarbage()
tarantool> box.runtime.info().tuple -- 160

Definition of done

  • You have agreed with @Totktonada on the best way to describe the parameter.
  • The parameter is added in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.10featureA new functionalityreference[location] Tarantool manual, Reference part

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions