←back to thread

lsr: ls with io_uring

(rockorager.dev)
335 points mpweiher | 5 comments | | HN request time: 0.833s | source
1. swiftcoder ◴[] No.44606976[source]
Kind of fascinating that slashing syscalls by ~35x (versus the `ls -la` benchmark) is "only" worth a 2x speedup
replies(3): >>44607779 #>>44608313 #>>44613022 #
2. bogwog ◴[] No.44607779[source]
I vaguely remember some benchmark I read a while back for some other io_uring project, and it suggested that io_uring syscalls are more expensive than whatever the other syscalls were that it was being used to replace. It's still a big improvement, even if not as big as you'd hope.

I wish I could remember the post, but I've had that impression in the back of my mind ever since.

3. Galanwe ◴[] No.44608313[source]
These syscalls are mostly through VDSO, so not very costly
replies(1): >>44609560 #
4. wahern ◴[] No.44609560[source]
The only VDSO-capable calls are clock_gettime, getcpu, getrandom, gettimeofday, and time. (Other architectures have some more, mostly related to signals and CPU cache flushing.)
5. Too ◴[] No.44613022[source]
Can someone try this in a virtual machine? I’d imagine syscalls there to be more expensive.