5 ms·
My understanding is that flushing all cache and other state on every thread/process context switch has a big performance impact.
by marshray 4y ago
My understanding is that flushing all cache and other state on every thread/process context switch has a big performance impact.
- zozbot234 4y agoYou don't need to flush predictor state on every task switch, only when entering a less private context from a more private one. Systems with a feature known as multiple-level security (or "multiple levels of security") can be designed to track these privacy/information requirements automatically.
- marshray 4y agoI'm not familiar with this concept of a "less private context" in computing. Could you please link me to something I can read about it?
- rasz 4y agoNo need to flush cache if we could have all the caches tagged per process.
- marshray 4y agoBut then shared libraries would have to be duplicated in the I-cache.
- pishpash 4y agoSpace-privacy tradeoff, sounds fair.
- tedunangst 4y agoAll the cool kids statically link everything now anyways.