system.jemalloc_bins
Querying in ClickHouse Cloud
The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the clusterAllReplicas
function. See here for further details.
Contains information about memory allocations done via jemalloc allocator in different size classes (bins) aggregated from all arenas. These statistics might not be absolutely accurate because of thread local caching in jemalloc.
Columns:
index
(UInt16) — Index of the bin ordered by size.large
(UInt8) — True for large allocations and False for small.size
(UInt64) — Size of allocations in this bin.allocations
(Int64) — Number of allocations.deallocations
(Int64) — Number of deallocations.
Example
Find the sizes of allocations that contributed the most to the current overall memory usage.