The first thing I did when I clicked on that page was Ctrl-f Bonwick and there it is. Therefore I already know that whoever wrote this at least have half a clue of what they are doing. A reference to Bonwick would prevent immediate rejection in code review. It's not a "let's make a singly linked list where we put the last freed chunk in the head" (what OpenSSL did) it's a generalized subsystem with at least some design and research behind it.
Although they are using cache coloring and as far as I know cache coloring has been pretty much abandoned in recent years because it doesn't really map to how modern caches work and can in the worst case increase the cache footprint, so that's a small warning sign. I'm pretty sure the second incarnation of the Bonwick allocator didn't use cache coloring (the first one did because it was still targeting sparcs with their direct mapped caches). I could be wrong, I haven't really followed the trends in the past few years.
btw. If you're even remotely interested in memory management read the Bonwick papers referenced from that documentation. They are quite amazing. Smart as hell and well written.
View all comments
Show parent comment
3
u/hegbork Apr 09 '14
The first thing I did when I clicked on that page was Ctrl-f Bonwick and there it is. Therefore I already know that whoever wrote this at least have half a clue of what they are doing. A reference to Bonwick would prevent immediate rejection in code review. It's not a "let's make a singly linked list where we put the last freed chunk in the head" (what OpenSSL did) it's a generalized subsystem with at least some design and research behind it.
Although they are using cache coloring and as far as I know cache coloring has been pretty much abandoned in recent years because it doesn't really map to how modern caches work and can in the worst case increase the cache footprint, so that's a small warning sign. I'm pretty sure the second incarnation of the Bonwick allocator didn't use cache coloring (the first one did because it was still targeting sparcs with their direct mapped caches). I could be wrong, I haven't really followed the trends in the past few years.
btw. If you're even remotely interested in memory management read the Bonwick papers referenced from that documentation. They are quite amazing. Smart as hell and well written.