A new patch series aims to optimize Linux kernel context switching performance by forcing inline compilation of critical functions. The patches address performance degradation caused by function calls and branch jumps in hot code paths, particularly after CPU vulnerability mitigations like branch prediction hardening and L1D cache flushing. By adding inline attributes to functions like finish_task_switch(), the patches reduce overhead without changing code logic, addressing issues where functions weren't being inlined even at O2 optimization level.

1m read timeFrom phoronix.com
Post cover image

Sort: