ASID (Address Space ID) or as Intel calls it PCID (Process Context ID).
The OS juggles these based on what processes are resident on CPU and the various active mappings then uses INVPCID[0] during a context switch.
The OS juggles these based on what processes are resident on CPU and the various active mappings then uses INVPCID[0] during a context switch.
What’s the mechanism for this? AFAIK one of the main motivations for the recent heated discussions on PostgreSQL adopting a threaded model would be eliminating TLB flushes in high-context-switch environments. Can Linux already preserve their (massive) shared mappings?