Details
-
New Feature
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
MariaDB already supports atomic writes in rare cases.
https://mariadb.com/kb/en/atomic-write-support/
With the upcoming Linux kernel 6.13 update, atomic writes will be enabled for EXT4 and XFS file systems.
https://www.phoronix.com/news/Linux-6.13-VFS-Untorn-Writes
Could MariaDB leverage these changes?
Attachments
Issue Links
- is blocked by
-
MDBF-854 Linux 6.13+ kernel to support Atomic Write development/testing
-
- Open
-
- links to
danblack has been working on setting up an environment for testing this. I’m looking forward to that.
On a related note, already Linux 6.11 introduced some sysfs files queue/atomic_write_unit_max_bytes, but those would only be 512 on my system. I did not yet check a HDD that would report queue/physical_block_size as 4096 bytes.
As far as I understand, on a copy-on-write or a journaled-data file system, it should be technically possible to support arbitrary-size atomic writes even when the hardware was limited to smaller page sizes.