buffer_ manager_ cached_ memory
Warning
buffer_ is read-only and cannot be modified by users.
SingleStore keeps unused Buffer Manager memory mapped instead of returning every freed buffer to the operating system so that later allocations can use it.Buffer_ tracks this cached memory.
While Total_ is at or below 90% of maximum_ or at least 10 GB of free memory remains, Buffer_ is capped at 25% of maximum_ on each node.maximum_.
When Total_ is above 90% of maximum_ and less than 10 GB of free memory remains, newly freed buffers are cached only until the cache size reaches approximately 1% of maximum_ (vs.
As cached memory stays mapped, Total_ includes Buffer_.DELETE, Alloc_ can fall while Total_ stays high because the freed memory blocks are still held as unrecycled or cached memory.
The cache is not released on a fixed schedule.TRIGGER GC FLUSH to explicitly release unused Buffer Manager cached memory.
View the size of cached memory reserved for each node in the output of the SHOW STATUS EXTENDED command.
SHOW STATUS EXTENDED LIKE 'buffer_manager_cached%';
+------------------------------+---------+
| Variable_name | Value |
+------------------------------+---------+
| Buffer_manager_cached_memory | 80.0 MB |
+------------------------------+---------+Refer to Identifying and Reducing Memory Usage for more information on Buffer_ and Total_.
Last modified: