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: [PATCH][RFC] Allow explicit shrinking of arena heaps using anenvironment variable


>> Based on this, I propose making the heap shrinking unconditionally use
>> mmap(PROT_NONE, MAP_FIXED). I have been using the attached patch to do
>> this since about 24 hours now on my Fedora 16 x86_64 without any
>> problems. I have also verified that the patch does not cause any
>> regressions in the testsuite.
> 
> This looks like a very reasonable solution.
> 
> Machines don't have infinite memory and we all want to get more out of
> our systems, and this patch is a step towards that goal.

Hmmm..

If I understand correctly, this patch revert following commit. So, I suggest
to confirm the reason why Jakub introduced it. I'm afraid he intended to 
improve multi threaded performance instead of single. (Again, MADV_DONTNEED 
has good multi thread performance than PROT_NONE.)

commit c7fd336280f2d88be4a22303199323718c8c3a28
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon May 7 15:30:57 2007 +0000


Thanks.


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