Prioritize EC (non-instantly-stable) operations under journal pressure

This reduces the probability of hitting OSD stalls with EC due to "deadlocks"
where two parallel write operations wait for each other to complete
This commit is contained in:
Vitaliy Filippov
2023-01-03 00:05:45 +03:00
parent e950c024d3
commit 73940adf07
2 changed files with 17 additions and 10 deletions
+1
View File
@@ -16,6 +16,7 @@
// FIXME: This value should be dynamic i.e. Blockstore ideally shouldn't allow
// writing more than can be stabilized afterwards
#define JOURNAL_STABILIZE_RESERVATION 65536
#define JOURNAL_INSTANT_RESERVATION 131072
// Journal entries
// Journal entries are linked to each other by their crc32 value