mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 21:47:10 +00:00
" The querier cache has a memory based eviction mechanism, which starts evicting freshly inserted queriers once their collective memory consumption goes above the configured limit. For determining the memory consumption of individual queriers, the querier cache uses `flat_mutation_reader::buffer_size()`. But we now have a much more comprehensive accounting of the memory used by queriers: the reader permit, which also happens to be available in each querier. So use this to determine the querier's memory consumption instead. Tests: unit(dev) " * 'querier-cache-use-permit-for-memory-accounting/v1' of https://github.com/denesb/scylla: flat_mutation_reader: de-virtualize buffer_size() querier_cache: use the reader permit for memory accounting querier_cache_test: use local semaphore not the test global one reader_permit: add consumed_resources() accessor