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: malloc - cache locality - TLB


On Fri, Dec 20, 2013 at 05:09:15PM +0100, OndÅej BÃlka wrote:
> As linux supported since 2003 huge pages we could try to use these.

Transparentt huge pages are the only sane way to use them, and they're
already supported for huge malloc calls serviced by mmap. The kernel
could also opt to use huge pages for heap ranges consisting of many
independent allocations, but this would probably be a pessimization in
the general case because it precludes fine-grained swapping of unused
data and like you mentioned has ridiculous overhead.

Rich


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