malloc: Trim unused arenas on thread exit
Florian Weimer
fweimer@redhat.com
Thu Nov 9 10:55:00 GMT 2017
I tried the attached patch to trim unused arenas on thread exit. The
trimming actually happens (the heap consolidation is visible in the
malloc_info output from tst-malloc_info), but the arena heaps aren't
deallocated.
I think trimming unused arenas as much as possible is a good heuristics
to minimize RSS, so getting this to work might be worthwhile.
Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mtrim.patch
Type: text/x-patch
Size: 1273 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171109/2a1e8101/attachment.bin>
More information about the Libc-alpha
mailing list