Re: Providing anonymous mmap as an option of sharing memory

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Shridhar Daithankar <shridhar_daithankar(at)myrealbox(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Providing anonymous mmap as an option of sharing memory
Date: 2003-11-26 18:39:30
Message-ID: 200311261839.hAQIdUU10597@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Shridhar Daithankar <shridhar_daithankar(at)myrealbox(dot)com> writes:
> > I covered only first point in my post. IMO it is not such a unsolvable
> > problem. If a postmaster crashes hard but leaves a backend running,
> > would it clean pid file etc? I don't think so. So if a postmaster can
> > start on a 'pid-clean' state, then it is guaranteed to be no childs
> > left around.
>
> And that helps how? The problem is to detect whether there are any
> children left from the old postmaster, when what you have to work from
> is the pid-file it left behind.
>
> In any case, you're still handwaving away the very real portability
> issues around mmap. Linux is not the universe, and Linux+BSD isn't
> either.
>
> We might still have considered it, despite the negatives, if anyone had
> been able to point to any actual *advantages* of mmap. There are none.
> Yes, the SysV shmem API is old and ugly and crufty, but it does what we
> need it to do.

Plus many operating systems can lock SvssV shmem into RAM to prevent it
from being swapped out.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2003-11-26 18:41:33 Re: pg_restore and create FK without verification check
Previous Message Tom Lane 2003-11-26 17:52:39 Re: pg_restore and create FK without verification check