]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
More accurate accounting of compressed cache memory (#13032)
authoranand76 <anand1976@users.noreply.github.com>
Thu, 26 Sep 2024 00:47:40 +0000 (17:47 -0700)
committeranand76 <anand1976@users.noreply.github.com>
Thu, 26 Sep 2024 15:52:17 +0000 (08:52 -0700)
commitade981b5b4e55bbc7cdb745aea854b37f1f3f62c
treeb10a8c064049da070debac6084abd42b5a51ded7
parent84432c6580381be43bbc5a57ed84b1b0c94fde06
More accurate accounting of compressed cache memory (#13032)

Summary:
When an item is inserted into the compressed secondary cache, this PR calculates the charge using the malloc_usable_size of the allocated memory, as well as the unique pointer allocation.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/13032

Test Plan: New unit test

Reviewed By: pdillinger

Differential Revision: D63418493

Pulled By: anand1976

fbshipit-source-id: 1db2835af6867442bb8cf6d9bf412e120ddd3824
cache/compressed_secondary_cache.cc
cache/compressed_secondary_cache.h
cache/compressed_secondary_cache_test.cc
unreleased_history/bug_fixes/compressed_secondary_cache_account.md [new file with mode: 0644]