←back to thread

lsr: ls with io_uring

(rockorager.dev)
335 points mpweiher | 1 comments | | HN request time: 0s | source
Show context
maplant ◴[] No.44605037[source]
This seems more interesting as demonstration of the amortized performance increase you'd expect from using io_uring, or as a tutorial for using it. I don't understand why I'd switch from using something like eza. If I'm listing 10,000 files the difference is between 40ms and 20ms. I absolutely would not notice that for a single invocation of the command.
replies(2): >>44605508 #>>44606229 #
0x000xca0xfe ◴[] No.44605508[source]
Well I have a directory with a couple million JSON files and ls/du take minutes.

Most of the coreutils are not fast enough to actually utilize modern SSDs.

replies(1): >>44605839 #
otterley ◴[] No.44605839[source]
What’s the filesystem type? Ext4 suffers terrible lookup performance with large directories, while xfs absolutely flies.
replies(1): >>44606046 #
1. 0x000xca0xfe ◴[] No.44606046{3}[source]
Yup, default ext4 and most files are <4KB, so it's extra bad.

Thanks for the comment, didn't know that!