Huge pages and druntime parameters

Martin Nowak code at dawg.eu
Tue Oct 1 15:39:47 PDT 2013


On 09/27/2013 04:01 AM, luminousone wrote:
>
> I have played around with huge pages a bit, my understanding from
> reading about them, and use(ROAM diamond tree nodes in huge page
> memory), is that they need to be used carefully, many processors only
> have a small number of entries for huge pages in their lookup tables.
>

When out of huge pages it would fallback to normal mmap.

> The best use of huge pages seems to be from code built around them, not
> sure if it entirely makes sense to put them in gc,
 >

The main benefit should come from heavily reducing the amount of TLB 
entries in the cache.
So if your program suffers from many cache misses due to TLB lookups
that would help. And the freed cache can also be used for other stuff 
instead.


More information about the Digitalmars-d mailing list