This is the mail archive of the glibc-bugs@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]

[Bug malloc/14581] memalign allocations are often not reused after free


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.

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