This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]