Re: patch: add MAP_HUGETLB to mmap() where supported (WIP)

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: patch: add MAP_HUGETLB to mmap() where supported (WIP)
Дата
Msg-id 20130916132310.GC5249@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: patch: add MAP_HUGETLB to mmap() where supported (WIP)  (Andres Freund <andres@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: patch: add MAP_HUGETLB to mmap() where supported (WIP)
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Proposal: json_populate_record and nested json objects