2 ms·
Right. Architecture is Sandy Bridge, use case is sending messages from one core to another. The theory is straightforward: After I populate a message slot (s
by dllthomas 12y ago
Right. Architecture is Sandy Bridge, use case is sending messages from one core to another.
The theory is straightforward: After I populate a message slot (sized at 1 cache line) in the ring buffer I know I'm not going to need to do anything with that memory on that core anytime soon. Pre-emptively evicting it from cache in favor of something that has a greater chance of being used soon has a chance of avoiding a cache miss. There remains the question of whether the CPU can figure out enough of this on its own. Empirically, the answer was "no" in my case.