Re: PostgreSQL and HugePage

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PostgreSQL and HugePage
Date: 2010-10-20 03:05:37
Message-ID: 4CBE5C81.10300@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 20/10/10 15:10, Robert Haas wrote:
> On Tue, Oct 19, 2010 at 8:39 PM, Hsien-Wen Chu<chu(dot)hsien(dot)wen(at)gmail(dot)com> wrote:
>
>> I want to use hugepage function on Linux platform, my question is if
>> PostgreSQL supports hugepage in default, if not, what's the code need to be
>> modified?
>>
> Unfortunately, I don't think this is too simple. PostgreSQL uses sysv
> shared memory, not POSIX shared memory. I don't know of a way to use
> sysv shared memory with hugetlb.
>
>

According to:

http://devresources.linuxfoundation.org/dev/robustmutexes/src/fusyn.hg/Documentation/vm/hugetlbpage.txt

shmget and friends are hugetlbpage aware, so it seems it should 'just
work'. However, I have not checked...

Cheers

Mark

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2010-10-20 03:08:37 Re: PostgreSQL and HugePage
Previous Message Robert Haas 2010-10-20 02:49:10 Re: ISN patch that applies cleanly with git apply