News for hackers. Stuff that matters.
Re:I tested four NVMe SSDs from four vendors – half lose FLU... by altfredd on Wednesday November 22, 2023 @01:48AM (#38375682)
The "data" setting of ext filesystems isn't replacement for fsync().
Re:I tested four NVMe SSDs from four vendors – half lose FLU... by Dylan16807 on Wednesday November 22, 2023 @02:14AM (#38375943)
It's not a replacement but it can give you some guarantees.

Also fsync is a terrible API that should be replaced, but that's mostly a different topic.

Re:I tested four NVMe SSDs from four vendors – half lose FLU... by the8472 on Wednesday November 22, 2023 @05:32AM (#38377449)
At least on linux you can use io_uring to make fsync asynchronous. And you can initiate some preparatory flushing with sync_file_range and only do the final commit with fsync to cut down the latency.