2 ms·
I should have specified I was talking about a process context switch not a thread. >"The biggest cache trashing on a thread switch are possibly the lines conta
by bogomipz 10y ago
I should have specified I was talking about a process context switch not a thread.
>"The biggest cache trashing on a thread switch are possibly the lines containing the thread stack which are very unlikely to be shared between threads. Also thread are likely to be working on distinct data."
Sure, I don't think they are every shared are they?
>"BTW, TLB doesn't need to be flushed on a thread switch, only on a process switch, and even then more modern systems can tag TLB entries by process id,"
Indeed and this often gets left out of the discussion, its not mentioned in the blog post certainly. I believe on x86-64 this is called ASID and on ARM chips its TPID.