Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matras: introduce statistics #60

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Conversation

locker
Copy link
Member

@locker locker commented Mar 21, 2023

This commit adds the new matras_stat struct which is supposed to be passed to matras_create() for extent accounting. It's okay to pass the same struct to different matras allocators, in which case the statistics will be accumulated. Currently, matras_stat includes two counters: the total number of extents and the number of extents used by read views. We need this to implement read view statistics in Tarantool.

Needed for https://github.com/tarantool/tarantool-ee/issues/143

In Tarantool repository the submodule will be updated by tarantool/tarantool#8482.

@locker locker requested a review from alyapunov March 21, 2023 14:28
@locker locker added the do not merge Not ready to be merged label Mar 21, 2023
@locker locker removed the do not merge Not ready to be merged label Mar 22, 2023
This commit adds the new matras_stat struct which is supposed to be
passed to matras_create() for extent accounting. It's okay to pass the
same struct to different matras allocators, in which case the statistics
will be accumulated. Currently, matras_stat includes two counters: the
total number of extents and the number of extents used by read views.
We need this to implement read view statistics in Tarantool.

Needed for tarantool/tarantool-ee#143
@alyapunov alyapunov assigned locker and unassigned alyapunov Mar 22, 2023
@locker locker merged commit c31879f into tarantool:master Mar 22, 2023
@locker locker deleted the matras-stat branch March 22, 2023 15:59
locker added a commit to locker/tarantool-small that referenced this pull request Mar 23, 2023
In the small library all statistics structs are named FOO_stats, e.g.
mempool_stats, small_stats. Let's rename matras_stat to matras_stats for
consistency.

Fixes commit c31879f ("matras: introduce statistics").
Follow-up tarantool#60
locker added a commit that referenced this pull request Mar 23, 2023
In the small library all statistics structs are named FOO_stats, e.g.
mempool_stats, small_stats. Let's rename matras_stat to matras_stats for
consistency.

Fixes commit c31879f ("matras: introduce statistics").
Follow-up #60
@locker locker linked an issue Mar 27, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memtx read view statistics
2 participants