VictoriaMetrics/lib/blockcache
Aliaksandr Valialkin 88605a7ea2
lib/blockcache: properly release memory occupied by deleted entries
Proviously the deleted entries could remain referenced via lastAccessHeap for long time.
This could lead to increased memory usage for the following caches starting from v1.73.0:

* indexdb/indexBlocks
* indexdb/dataBlocks
* storage/indexBlocks

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2242
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2007
2022-03-18 16:52:27 +02:00
..
blockcache_test.go lib/blockcache: fix TestCache by ensuring that the cache size can be divided by the number of cache shards 2022-02-16 18:47:35 +02:00
blockcache_timing_test.go lib/blockcache: use higher number of shards for higher number of CPU cores 2022-02-10 19:06:12 +02:00
blockcache.go lib/blockcache: properly release memory occupied by deleted entries 2022-03-18 16:52:27 +02:00