This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: improving malloc
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.