improving malloc
Ondřej Bílka
neleai@seznam.cz
Wed Jan 9 13:33:00 GMT 2013
On Sat, Jan 05, 2013 at 10:02:42AM +0100, OndÅej BÃlka wrote:
>
> As malloc is concerned I have several ideas how to improve it. For
> simplicity I will consider only 64bit system here.
I moved suggestions into from main into separate page as it looks
it will be long list.
http://sourceware.org/glibc/wiki/Development_Todo/Enhancing_malloc
As paging is concerned there is another possible improvement.
When fork done then pages in malloc cache are copy-on-write which is
unnecessary. A possible solution is to call malloc_trim(0) in atfork
handler.
Separate question is how it is profitable as fork is typically followed
by exec.
More information about the Libc-alpha
mailing list