News for hackers. Stuff that matters.
Re:Wait-free queueing and ultra-low latency logging by dllthomas on Thursday May 29, 2014 @01:57PM (#7817602)
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.

There are no comments on this comment yet.