News for hackers. Stuff that matters.
Re:Memory Allocators 101 by bcantrill on Thursday May 16, 2013 @11:03PM (#5722483)
It continues to amaze me how many workloads can be dominated by malloc() performance. In particular, last summer we at Joyent found that a production node.js load was surprisingly dominated by small object malloc()/free() performance -- and achieving maximum performance ultimately required not just adding a per-thread cache, but cycle bumming the hell out of it.[1] Point is: malloc() still very much matters, despite (or maybe because of) modern interpreted environments.

[1] http://dtrace.org/blogs/rm/2012/07/16/per-thread-caching-in-...

Re:Memory Allocators 101 by seanmcdirmid on Thursday May 16, 2013 @11:31PM (#5722551)
I am sort of horrified by a garbage collected VM that uses small malloc/free calls to manage memory. I also can't believe the linked article doesn't mention what VM the node.js code was running on.

Edit: reading more of the linked articles, these benchmarks seem to be running on V8? Which seems to be the only platform that node.js runs on...facepalm. Still confused why V8 would be using standard malloc/free calls.

Re:Memory Allocators 101 by akkartik on Friday May 17, 2013 @02:46AM (#5723025)
Re:Memory Allocators 101 by JoachimSchipper on Saturday May 18, 2013 @01:33PM (#5729637)
If you mean "lea malloc is pretty fast", ok; but going to regions, while an enormous win in some cases, is moving the goalpoints.

(Still, thanks for posting the paper - the reaps concept is very nice. I did expect regions to win by more than they did, though. Oh well.)