News for hackers. Stuff that matters.
Re:Snmalloc: A Message Passing Allocator by sakras on Thursday October 12, 2023 @12:03PM (#37859060)
> 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.

There are no comments on this comment yet.