Re:A tale of an impossible bug: big.LITTLE and caching
by pm215 on Monday September 12, 2016 @04:10PM
(#12483224)
No, in general Linux migrating processes between cores won't nuke the caches. The hardware's cache coherency protocols between CPUs in the cluster ensures that they are all in sync sufficiently that it's not needed.
[ Parent
| on HN ]
Re:A tale of an impossible bug: big.LITTLE and caching
by hrydgard on Monday September 12, 2016 @04:23PM
(#12483308)
I understood that the configurations currently in use usually only power up either the big or little cores at the same time, and that kind of migration has to wipe the caches, right? But that might be inaccurate, and you are of course right in the general case.
Re:A tale of an impossible bug: big.LITTLE and caching
by pm215 on Monday September 12, 2016 @04:46PM
(#12483498)
The state of the art in Linux scheduler handling of big.LITTLE hardware has moved through several different models, getting steadily better at getting best performance from the hardware (wikipedia has a good brief rundown: https://en.wikipedia.org/wiki/ARM_big.LITTLE). You're thinking about the in-kernel-scheduler approach, but global task scheduling (where you just tell the scheduler about all the cores and let it move processes around to suit) has been the recommended approach for a few years now I think.