News for hackers. Stuff that matters.
Re:Memory is slow, Disk is fast – Part 2 by hsn915 on Thursday September 04, 2025 @07:56PM (#45133595)
Shouldn't this be "io_uring is faster than mmap"?

I guess that would not get much engagement though!

That said, cool write up and experiment.

Re:Memory is slow, Disk is fast – Part 2 by jared_hulbert on Thursday September 04, 2025 @08:00PM (#45133612)
Lol. Thanks.
Re:Memory is slow, Disk is fast – Part 2 by MaxikCZ on Friday September 05, 2025 @01:48AM (#45135343)
Its not even about clickbait for me, but I really dont want to go parse an article to figure out what is meant by "Memory is slow, Disk is fast". You want "clickbait" to make people click and think, we want descriptive tittles to know what the article is about before we read it. That used to be original purpose of tittles, we like it that way.

Its like as if youd label your food product "you wont believe this", and forced customers to figure what it is from ingredients list.

Re:Memory is slow, Disk is fast – Part 2 by robertlagrant on Friday September 05, 2025 @04:26AM (#45136268)
> Its like as if youd label your food product "you wont believe this", and forced customers to figure what it is from ingredients list.

Indeed[0].

[0] https://en.wikipedia.org/wiki/I_Can't_Believe_It's_Not_Butte...!

Re:Memory is slow, Disk is fast – Part 2 by MaxikCZ on Friday September 05, 2025 @05:06PM (#45143616)
Oh god..
Re:Memory is slow, Disk is fast – Part 2 by jared_hulbert on Friday September 05, 2025 @02:14PM (#45141749)
I get that. But I do actually show a scenario where accessing data from memory using a very standard mechanism IS slower than a newer but equally standard way of accessing data from an NVMe drive.

"Accessing memory is slower in some circumstances than direct disk access"

Re:Memory is slow, Disk is fast – Part 2 by dang on Thursday September 04, 2025 @10:58PM (#45134589)
Let's use that. Since HN's guidelines say ""Please use the original title, unless it is misleading or linkbait", that "unless" clause seems to kick in here, so I've changed the title above. Thanks!

If anyone can suggest a better title (i.e. more accurate and neutral) we can change it again.

Re:Memory is slow, Disk is fast – Part 2 by nine_k on Friday September 05, 2025 @04:29AM (#45136289)
No. "io_uring faster than mmap" is sort of a truism: sequential page faults are slower than carefully orchestrated async I/O. The point of the article is that reading directly from a PCIe device, such as an NVMe flash, can actually be faster than caching things in RAM first.
Re:Memory is slow, Disk is fast – Part 2 by wmf on Friday September 05, 2025 @01:11PM (#45140950)
reading directly from a PCIe device, such as an NVMe flash, can actually be faster than caching things in RAM first.

That's not true though, because the PCIe device DMAs into RAM anyway.

Re:Memory is slow, Disk is fast – Part 2 by nine_k on Friday September 05, 2025 @09:02PM (#45145587)
No, it can DMA straight into L3 cache, as mentioned in the article.

See https://www.intel.com/content/www/us/en/io/data-direct-i-o-t...

Re:Memory is slow, Disk is fast – Part 2 by wmf on Friday September 05, 2025 @11:01PM (#45146256)
Your server doesn't have DDIO turned on though.
Re:Memory is slow, Disk is fast – Part 2 by nine_k on Saturday September 06, 2025 @12:19AM (#45146577)
Not mine, but fair!