What I'd like to know is about the down-sides. If I allocate something in one thread and deallocate it in another, is it going into the malloc cache of the second thread? This could be an issue if the threads in question have affinities for cores in different NUMA groups.
Announcement
Collapse
No announcement yet.
Glibc Enables A Per-Thread Cache For Malloc - Big Performance Win
Collapse
X
-
Originally posted by Hi-Angel View PostI imagine Firefox might benefit. AFAIK it still have disabled GPU acceleration by default, and so is pretty CPU-heavy.
- Likes 2
Comment
-
Originally posted by smitty3268 View Post
Firefox long ago added their own internal memory allocator (forked from jemalloc) so this won't get hit at all. Mesa might actually be 1 app that improves - the compiler has shown speedups in the past based on memory allocation optimizations.
- Likes 1
Comment
-
Originally posted by coder View PostWhat I'd like to know is about the down-sides. If I allocate something in one thread and deallocate it in another, is it going into the malloc cache of the second thread? This could be an issue if the threads in question have affinities for cores in different NUMA groups.
- Likes 3
Comment
-
Glibc was always quite slow. It's still faster than Windows NT when comes to thread creation, but ways slower than Linux kernel which is the fastest kernel in the world in this case.
This change should have significant impact on scalability. Sysbench could be interesting.Last edited by Guest; 08 July 2017, 04:13 AM.
Comment
-
Originally posted by Uqbar View PostUsual opensource fragmentation.
There used to be tcmalloc by Google and jemalloc later on, with the latter being actively developed.
Why not incorporating a mature and proven solution in libc instead of creating a third one?
Fragmentation!
- Likes 1
Comment
-
Originally posted by Uqbar View PostUsual opensource fragmentation.
There used to be tcmalloc by Google and jemalloc later on, with the latter being actively developed.
Why not incorporating a mature and proven solution in libc instead of creating a third one?
Fragmentation!
- Likes 3
Comment
-
Originally posted by Pawlerson View Post
Usual stupidity. If you take a look those allocators are different and none of them is best for every purpose. There are at least three mallocs in Arma III to choose from. Proprietary fragmentation?
- Likes 1
Comment
-
Originally posted by Uqbar View PostUsual opensource fragmentation.
There used to be tcmalloc by Google and jemalloc later on, with the latter being actively developed.
Why not incorporating a mature and proven solution in libc instead of creating a third one?
Fragmentation!
Also, unless you really understand how everything works, it is usually better to use the default... many apps tried to switch mallocs to solve some problem and then found other kind of problems. Mozilla took years to switch and fine-tune their malloc
botton line, glibc malloc is not perfect, but works well in most cases
- Likes 3
Comment
Comment