Peter Schuller <peter.schuller_at_infidyne.com> writes: > Dag-Erling Smørgrav <des_at_des.no> writes: > > Actually, malloc(3) can use madvise(2) to notify the kernel that > > arbitrary pages in the arena are unused and can be discarded. The > > current implementation will do so if the H option is specified. > However, in this context it will likely only help partially since you still > need a full page to be free (and with a lot of programs many allocations will > be significantly smaller than that, and I have to assume no real-life malloc > will align all allocations to pages, or the overhead would be extreme). Page-aligning every allocation would be supremely stupid, and jemalloc does so only for allocations larger than a page. DES -- Dag-Erling Smørgrav - des_at_des.noReceived on Thu Jan 10 2008 - 09:04:13 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC