ubicloud/rhizome/host
Hadi Moshayedi a57ee5df6c Use write-through mode if the backing disk is write-through.
When the backing disk is already write-through, configuring ubiblk in
write-through mode adds minimal overhead, while having some performance
advantages: In this mode, the guest stops issuing flush requests because
the device reports no volatile cache. This can improve workloads such as
Postgres transactions.

On standard-8 VMs hosted on an AX-162 no-RAID and with a single IO
thread, pgbench with 32 clients ran significantly faster when ubiblk was
set to write-through. Statistics for reported TPS (based on 200 VMs per
mode):

| write_through |  p25  | median |  p75  |
|---------------|-------|--------|-------|
| true          | 12495 | 12858  | 13335 |
| false         |  9543 |  9908  | 10235 |

Note that this config will be effective on Ubiblk 0.2, and will be
ignored by Ubiblk 0.1.
2025-08-29 15:33:05 -07:00
..
bin Use htcat to download image from presigned URL 2025-08-27 12:43:23 +03:00
e2e Verify the purge logic in E2E tests. 2025-02-21 14:20:13 -08:00
lib Use write-through mode if the backing disk is write-through. 2025-08-29 15:33:05 -07:00
spec Use write-through mode if the backing disk is write-through. 2025-08-29 15:33:05 -07:00
Gemfile Add base64 to rhizome/host Gemfile 2025-04-29 16:45:24 -07:00