| ▲ | slashdev 5 hours ago | |||||||
That’s ignoring the other costs of syscalls like evicting your stuff from the CPU caches. But I agree with the conclusion, system calls are still pretty fast compared to a lot of other things. | ||||||||
| ▲ | vlovich123 4 hours ago | parent [-] | |||||||
Small correction on ambiguous wording - syscalls do not evict all your stuff from CPU caches. It just has to page in whatever is needed for kernel code/data accessed by the call, but that’s no different from if it was done in process as a normal function call. | ||||||||
| ||||||||