1
0
mirror of https://github.com/facebook/rocksdb.git synced 2025-06-02 10:25:45 +08:00
Levi Tamasi 23376aa576 Improve the accounting of memory used by cached blobs ()
Summary:
The patch improves the bookkeeping around the memory usage of
cached blobs in two ways: 1) it uses `malloc_usable_size`, which accounts
for allocator bin sizes etc., and 2) it also considers the memory usage
of the `BlobContents` object in addition to the blob itself. Note: some unit
tests had been relying on the cache charge being equal to the size of the
cached blob; these were updated.

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

Test Plan: `make check`

Reviewed By: riversand963

Differential Revision: D39060680

Pulled By: ltamasi

fbshipit-source-id: 3583adce2b4ce6e84861f3fadccbfd2e5a3cc482
2022-08-26 15:53:08 -07:00
..
2022-07-14 21:49:34 -07:00
2022-05-06 13:03:58 -07:00
2022-07-14 21:49:34 -07:00
2022-05-06 13:03:58 -07:00
2022-05-06 13:03:58 -07:00