Re: patch: add MAP_HUGETLB to mmap() where supported (WIP) - Mailing list pgsql-hackers

From Andres Freund
Subject Re: patch: add MAP_HUGETLB to mmap() where supported (WIP)
Date
Msg-id 20130916132310.GC5249@awork2.anarazel.de
Whole thread Raw
In response to Re: patch: add MAP_HUGETLB to mmap() where supported (WIP)  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
On 2013-09-16 15:18:50 +0200, Andres Freund wrote:
> > So even a tiny allocation, much smaller than any page size, succeeds, and it
> > reserves a huge page. I tried the same with larger values; the kernel always
> > uses huge pages, and rounds up the allocation to a multiple of the huge page
> > size.
> 
> When developing the prototype I am pretty sure I had to add the rounding
> up - but I am not sure why now, because after chatting with Heikki about
> it, I've looked around and the initial MAP_HUGETLB support in the kernel
> (commit 4e52780d41a741fb4861ae1df2413dd816ec11b1) has support for
> rounding up.

Ok, the reason for that seems to have been the following bug
https://bugzilla.kernel.org/show_bug.cgi?id=56881

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: patch: add MAP_HUGETLB to mmap() where supported (WIP)
Next
From: Merlin Moncure
Date:
Subject: Re: Proposal: json_populate_record and nested json objects