TLB Flushes & Cache Pollution: The Indirect Performance Drain

Kernel calls frequently involve changes to memory mappings, necessitating Translation Lookaside Buffer (TLB) flushes. These flushes, especially 'TLB shootdowns' that invalidate entries across multiple CPU cores, are costly, with each inter-processor interrupt (IPI) potentially adding 1-5 microseconds. Furthermore, switching contexts can pollute CPU caches, forcing subsequent user-space operations to suffer from cache misses.

Sources

Open the full topic