Cache affinity

Previous: Operating system

Cache affinity, also called processor affinity or CPU pinning, is the concept that a process when run on a particular CPU, builds up a fair bit of state in the caches (and TLBs) of the CPU. When the process is switched out and back in, it would be adventageous for it to run on the same CPU.