4 ms·
What in the world do actors & map/reduce have to do with memory locality?
by kasey_junk 13y ago
What in the world do actors & map/reduce have to do with memory locality?
- seanmcdirmid 13y agoThey involve alternative communication mechanisms that are not shared memory.
- kasey_junk 13y agoNo they are abstractions around shared memory. Actors are a good example of where having an understanding of NUMA can have serious performance implications. If you architect your actor system so that all of your actors are on the same socket, all message passing (assuming messages are small enough) can happen in socket local cache. This will be much faster than having to cross socket memory or even worse going to main memory. Conversely, if you aren't paying attention to memory locality you could see unexpected performance degradation as you add actors, because even though your system is more parallel there is more overhead in memory access.