2 ms·
Probably the context switch logic (save registers, switch to ring 0 mode, etc.) in the kernel might be. That's called for every syscall, up to thousands of time
by sph 4y ago
Probably the context switch logic (save registers, switch to ring 0 mode, etc.) in the kernel might be. That's called for every syscall, up to thousands of times per second per active core.
It would be cool to know which is the most frequently called piece of code in the world. Maybe something that hasn't been changed in decades.
- artursapek 4y agoI'm not qualified to do it, but someone should write a blog post figuring this out