3 ms·
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.
by hsn915 1y ago
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.
- jared_hulbert 1y agoLol. Thanks.
- MaxikCZ 1y agoIts 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.
- jared_hulbert 1y agoI 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"
- robertlagrant 1y ago> 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_Butter https://en.wikipedia.org/wiki/I_Can't_Believe_It's_Not_Butte...!
- MaxikCZ 1y agoOh god..
- dang 1y agoLet'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.
- nine_k 1y agoNo. "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.
- wmf 1y agoreading 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.
- nine_k 1y agoNo, 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-technology.html https://www.intel.com/content/www/us/en/io/data-direct-i-o-t...