diff options
| author | Kent Overstreet <[email protected]> | 2023-03-15 11:02:00 -0400 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-10-22 17:09:57 -0400 |
| commit | 26559553e47c9f2a14b5254cb307fc755ac316c8 (patch) | |
| tree | 1335ce4efafbd822e300e8db3dca26908c7cc6d0 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
| parent | 2f0815840c80075bc35f210a7acfa8b48717be5a (diff) | |
bcachefs: Add a fallback when journal_keys doesn't fit in ram
We may end up in a situation where allocating the buffer for the sorted
journal_keys fails - but it would likely succeed, post compaction where
we drop duplicates.
We've had reports of this allocation failing, so this adds a slowpath to
do the compaction incrementally.
This is only a band-aid fix; we need to look at limiting the number of
keys in the journal based on the amount of system RAM.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions