News for hackers. Stuff that matters.
Re:Rest in Peace, Optane by zozbot234 on Tuesday December 05, 2023 @06:37AM (#38529633)
> mmap on Optane direct-access-aware (DAX) filesystems like EXT4/XFS now, is not like mmap on block devices where the OS gets in your way and pages stuff in from disk

Yes, the real case for Optane memory is that, supposedly, you don't have to fsync(). And insisting on proper fsync() tends to tank the performance of even the fastest NVMe SSD's. So the argument for a real, transformative performance improvement is there.

Re:Rest in Peace, Optane by adastra22 on Tuesday December 05, 2023 @08:52AM (#38530659)
Why would you not have to fsync? The fsync is a memory barrier that is just as useful with octane to ensure integrity.

Do you mean the latency of ensuring fsync safety is lower?

Re:Rest in Peace, Optane by RyanHamilton on Tuesday December 05, 2023 @09:20AM (#38531041)
No you don't have to fsync. Think of it like RAM. You don't fsync RAM.
Re:Rest in Peace, Optane by adastra22 on Tuesday December 05, 2023 @11:20AM (#38532852)
You do, in fact. It’s called a memory write barrier. Ensures consistency of data structures as needed. And it call stall the cpu pipeline, so there’s a nontrivial cost involved.
Re:Rest in Peace, Optane by pbalcer on Tuesday December 05, 2023 @12:21PM (#38533859)
The point is that on PMem that is simply "sfence", and not a potentially super-expensive "fsync" syscall... Fsync is an fsync, not a memory barrier...
Re:Rest in Peace, Optane by adastra22 on Tuesday December 05, 2023 @12:58PM (#38534508)
They both involve flushing cache to backing stores, and waiting for confirmation of the write. It’s literally the same thing. It’s just writing a cache line to RAM is orders of magnitude faster than writing a disk sector to storage, even with NVME SSDs. Octane is/was somewhere in the middle.
Re:Rest in Peace, Optane by Dylan16807 on Tuesday December 05, 2023 @03:14PM (#38536356)
> They both involve flushing cache to backing stores, and waiting for confirmation of the write.

No they don't. A fence only imposes ordering. It's instant. It can increase the chance of a stall when it forbids certain optimizations, but it won't cause a stall by itself.

CLWB is a small flush, but as tanelpoder explained the more recent CPUs did not need CLWB.