Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

What Makes System Calls Expensive: A Linux Internals Deep Dive

⁨66⁩ ⁨likes⁩

Submitted ⁨⁨2⁩ ⁨weeks⁩ ago⁩ by ⁨abhi9u@lemmy.world⁩ to ⁨technology@lemmy.world⁩

https://blog.codingconfessions.com/p/what-makes-system-calls-expensive

source

Comments

Sort:hotnewtop
  • fubarx@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

    The next three steps in the code are:

    • Enabling IBRS (indirect branch restricted speculation)

    • Untraining the return stack buffer

    • Clearing the branch history buffer

    These are there to mitigate against speculative execution attacks, such as spectre (v1 and v2), and retbleed. Speculative execution is an optimization in modern processors where they predict the outcome of branches in the code and speculatively execute instructions at the predicted path. When done accurately, this significantly improves the performance of the code.

    It’s like one time someone came through your house and stole all the valuables from every room. Now you have to lock/unlock every single interior door as you walk from room to room.

    This is why we can’t have nice things.

    source