mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
When memory footprint test is over it prints total size taken by row
cache, memtable and sstables as well as individual objects' sizes. It's
also nice to know the details on the row-cache's individual objects.
This patch extends the printing with total size of allocated object
types according to migrator_fn types.
Sample output:
mutation footprint:
- in cache: 11040928
- in memtable: 9142424
- in sstable:
mc: 2160000
md: 2160000
me: 2160000
- frozen: 540
- canonical: 827
- query result: 342
sizeof(cache_entry) = 64
sizeof(memtable_entry) = 64
sizeof(bptree::node) = 288
sizeof(bptree::data) = 72
-- sizeof(decorated_key) = 32
-- sizeof(mutation_partition) = 96
-- -- sizeof(_static_row) = 8
-- -- sizeof(_rows) = 24
-- -- sizeof(_row_tombstones) = 40
sizeof(rows_entry) = 144
sizeof(evictable) = 24
sizeof(deletable_row) = 72
sizeof(row) = 16
radix_tree::inner_node::node_sizes = 48 80 144 272 528 1040
radix_tree::leaf_node::node_sizes = 120 216 416 816 3104
sizeof(atomic_cell_or_collection) = 16
btree::linear_node_size(1) = 24
btree::inner_node_size = 216
btree::leaf_node_size = 120
LSA stats:
N18compact_radix_tree4treeI13cell_and_hashjE9leaf_nodeE: 360
N5bplus4dataIl15intrusive_arrayI11cache_entryEN3dht25raw_token_less_comparatorELm16ELNS_10key_searchE0ELNS_10with_debugE0EEE: 5040
N5bplus4nodeIl15intrusive_arrayI11cache_entryEN3dht25raw_token_less_comparatorELm16ELNS_10key_searchE0ELNS_10with_debugE0EEE: 19296
17partition_version: 952416
N11intrusive_b4nodeI10rows_entryXadL_ZNS1_5_linkEEENS1_11tri_compareELm12ELm20ELNS_10key_searchE0ELNS_10with_debugE0EEE: 317472
10rows_entry: 1429056
12blob_storage: 254
Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
Closes scylladb/scylladb#15434