-
Notifications
You must be signed in to change notification settings - Fork 43
document 'memtx_allocator' and 'slab_alloc_granularity' #3355
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally OK, just a few comments from my side.
|
||
Since version :doc:`2.8.1 </release/2.8.1>`. | ||
Specifies the granularity of memory allocation in the :ref:`small allocator <cfg_storage-memtx_allocator>`. | ||
The value of ``slab_alloc_granularity`` should be a power of two and should greater than or equal to 4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value of ``slab_alloc_granularity`` should be a power of two and should greater than or equal to 4. | |
The value of ``slab_alloc_granularity`` should be a power of two and should be greater than or equal to 4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, is this value an actual memory size in some units or an abstract parameter?
In the first case, we should mention the unit in this description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, @alyapunov could you please clarify regarding this question?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is measured in bytes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Add reference docs for the
memtx_allocator
andslab_alloc_granularity
options.Resolves #2291 #1911