3 ms·
I didn’t see a mention of kernel version. On Linux 4.14 and newer, if you context switch between different processes, PCID gets used to try to avoid a TLB flush
by amluto 8y ago
I didn’t see a mention of kernel version. On Linux 4.14 and newer, if you context switch between different processes, PCID gets used to try to avoid a TLB flush, which makes your code run faster after the switch. It shows up more if you do something a bit more involved than just switching right back to the process you came from.
And yes, damnit, this is why I made Linux start using PCID. It had nothing to do with the Meltdown mess, and it was in a released version of Linux before I learned about Meltdown.