summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-01-10 19:46:39 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:22 -0400
commit0678cbe2cbc586c0055de2c04602bf8136bcc3fc (patch)
treef58be61fb7a365ca74b2cba9e55317275862732c /tools/perf/scripts/python/export-to-postgresql.py
parent3763cb9566a65966cd404cf3e0c5f218e5cf5d16 (diff)
downloadlinux-0678cbe2cbc586c0055de2c04602bf8136bcc3fc.tar.gz
linux-0678cbe2cbc586c0055de2c04602bf8136bcc3fc.zip
bcachefs: Ignore cached data when calculating fragmentation
Previously, bucket fragmentation was considered to be bucket size - total amount of live data, both dirty and cached. This meant that if a bucket was full but only a small amount of data in it was dirty - the rest cached, we'd get stuck: copygc wouldn't move the dirty data out of the bucket and the allocator wouldn't be able to invalidate and drop the cached data. This changes fragmentation to exclude cached data, so that copygc will evacuate these buckets and copygc/the allocator will always be able to make forward progress. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions