This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/14581] memalign allocations are often not reused after free
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 29 Jul 2018 16:59:17 +0000
- Subject: [Bug malloc/14581] memalign allocations are often not reused after free
- Auto-submitted: auto-generated
- References: <bug-14581-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14581
--- Comment #12 from Rich Felker <bugdal at aerifal dot cx> ---
Since last looking at this issue, I've been thinking about allocator designs to
avoid fragmentation, and Florian's latest idea in comment 11 matches my current
view on what's likely to be best. However it does seem to waste up to half of
the memory consumed (i.e. up to 100% overhead) for the duration that it's
allocated. This is probably the right tradeoff still when the alternative is
permanent-ish fragmentation for the process lifetime, but maybe there are ways
to make it better/less-costly.
--
You are receiving this mail because:
You are on the CC list for the bug.