Sep 20 – 24, 2021
US/Pacific timezone

Strange kernel performance changes - analysis and mitigation

Sep 21, 2021, 10:00 AM
Refereed Track/Virtual-Room (LPC Virtual)

Refereed Track/Virtual-Room

LPC Virtual

LPC Refereed Track (Closed) LPC Refereed Track


Mr Feng Tang


0day bot has reported many strange kernel performance changes that the bisected culprit commits have nothing to do with the benchmark, which make patch authors confused or even annoyed. Debug shows these mostly are related to the random code/text alignments changes, false sharing, or adjacent cacheline prefetch, which is caused by the commit, as all components of kernel are flatly linked together.

There have been around 20 reported cases checked (all discussed on LKML, like[1][2][3][4]), and this talk will try to:
* analyze and categorize these cases
* discuss the debug methods to identify and root cause
* discuss ideas about how to mitigate them and make kernel performance more stable.

Some patches has been merged, some are to be posted, and some are under development and test. Will discuss them and get advice/feedback.


I agree to abide by the anti-harassment policy I agree

Primary author

Mr Feng Tang

Presentation materials

Diamond Sponsor

Platinum Sponsor

Gold Sponsors

Silver Sponsors

Speaker Gift Sponsor

T-Shirt Sponsor

Conference Services provided by