metrics: CGo memory allocations should be per-store, or clarified as aggregated #4129
Labels
A-storage
C-enhancement
New feature or request
O-testcluster
Issues found as part of DRT testing
P-2
Issues/test failures with a fix SLA of 3 months
T-storage
Currently, if the Pebble block cache is shared across multiple Pebbles, the CGo memory allocations line in
db.Metrics()
is aggregated across all the stores while the count of zombie memtables etc is for that Pebble only. This makes it pretty difficult to correlate the two numbers at first glance. Here's an example string representation from a Pebble with very high memtable memory utilization (this Cockroach node had 8 stores, each with high zombie memtable counts):At the very least, the string representation of metrics should clarify that the memory counters are aggregated across any Pebbles in the same process (as they're stored in a global var). Or better yet, we should make the counters per-store and print them out per-store.
Jira issue: PEBBLE-293
Epic CRDB-41111
The text was updated successfully, but these errors were encountered: