System calls are expensive operations that go beyond their kernel code execution cost. When transitioning between user and kernel space on Linux x86-64, the CPU must drain instruction pipelines, switch page tables and stacks, clear branch predictor buffers, and apply security mitigations against speculative execution attacks
•23m read time• From blog.codingconfessions.com
Table of contents
Background on System CallsInside the Linux Syscall HandlerDirect Overhead of System CallsIndirect Overhead of System CallsEffect on Branch PredictionPractical Ways to Reduce System CallsWrapping Up1 Comment
Sort: