3 ms·
> contradicts shared-nothing architecture Sort of? The stealing happens very rarely, only when the thread doesn’t have a page. It’s done using relaxed atomics,
by sakras 3y ago
> contradicts shared-nothing architecture
Sort of? The stealing happens very rarely, only when the thread doesn’t have a page. It’s done using relaxed atomics, so synchronization is pretty mild in this case.
> bad data locality
This will be relevant when I make it NUMA-aware, but generally speaking this shouldn’t matter as each page is much bigger than a core’s L2 cache anyway. And also memory living in the deque is freed, I don’t think there’s generally expectations on locality of memory returned to you from the allocator.