From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
Cc: | Richard Poole <richard(at)2ndQuadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com> |
Subject: | Re: patch: add MAP_HUGETLB to mmap() where supported (WIP) |
Date: | 2013-09-16 13:23:10 |
Message-ID: | 20130916132310.GC5249@awork2.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2013-09-16 13:43:19 | Re: Proposal: json_populate_record and nested json objects |
Previous Message | Andres Freund | 2013-09-16 13:18:50 | Re: patch: add MAP_HUGETLB to mmap() where supported (WIP) |