Re: BUG #2406: Not all systems support SHM_SHARE_MMU

From: Paul van der Zwan <Paul(dot)Vanderzwan(at)Sun(dot)COM>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2406: Not all systems support SHM_SHARE_MMU
Date: 2006-04-25 06:50:28
Message-ID: 4E85FC05-1D7D-4EC6-895C-FD80C3599180@Sun.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On 25-apr-2006, at 7:48, Tom Lane wrote:

> "Paul van der Zwan" <paul(dot)vanderzwan(at)sun(dot)com> writes:
>> Only systems with large pagesizes support ISM, so always defining
>> #define PG_SHMAT_FLAGS SHM_SHARE_MMU
>> in src/backend/port/sysv_shmem.c will cause all calls to shmat to
>> fail with
>> EINVAL on systems that do not support large pages.
>
> That code's been in there since PG 7.3, and no one before you has
> complained. Are you sure you've identified the problem correctly?
>
> regards, tom lane

I am 99% sure that is the cause. If I put shmsys:ism_off=1 in /etc/
system
it ignores the SHM_SHARE_MMU flag and it works.
Maybe noone ever ran Postgres on Solaris on a VIA Epia system.
I haven't rebuilt postgres with my suggested patch (yet) so that's
were the 1% doubt comes in.
I'll try to do that sometime this week.

Paul

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-04-25 07:08:53 Re: BUG #2406: Not all systems support SHM_SHARE_MMU
Previous Message Tom Lane 2006-04-25 05:48:42 Re: BUG #2406: Not all systems support SHM_SHARE_MMU