What you see here in those benchmarks, my fellow commenters, is a reason why we should try to reduce context switches as much as possible. A(ny) syscall is a context switch. This ties back into that readfile post from a couple days ago. It reduces one specific area by 2/3rd of the context switches you would've had (this is only for reading a file).
io_uring is another such thing that really helps here.
But there much more context switches during the app lifetime.
AMD might be less affected but still, just reducing context switches would be a good new common practice in applications imho. Getting there is hard though. This stuff is super fundamental and requires a lot of time (and skill) to even detect it, make use of it and improve it.
io_uring is another such thing that really helps here.
But there much more context switches during the app lifetime.
AMD might be less affected but still, just reducing context switches would be a good new common practice in applications imho. Getting there is hard though. This stuff is super fundamental and requires a lot of time (and skill) to even detect it, make use of it and improve it.
Comment