Re: Experimental dynamic memory allocation of postgresql shared memory

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Aleksey Demakov <ademakov(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Experimental dynamic memory allocation of postgresql shared memory
Date: 2016-06-20 04:27:09
Message-ID: CAB7nPqR9b3z9RWySff=zD2ouzgg=+2amsDvHpuV7GJgsoAksJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jun 20, 2016 at 12:40 PM, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
> On 18 June 2016 at 02:42, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>
>> On Fri, Jun 17, 2016 at 2:23 PM, Aleksey Demakov <ademakov(at)gmail(dot)com>
>> wrote:
>> > Essentially this is pessimizing for the lowest common denominator
>> > among OSes.
>>
>> I totally agree. That's how we make the server portable.
>>
>> > Having a contiguous address space makes things so
>> > much simpler that considering this case, IMHO, is well worth of it.
>>
>> I think that would be great if you could make it work, but it has to
>> support Linux, Windows (all supported versions), MacOS X, all the
>> various BSD flavors for which we have buildfarm animals, and other
>> platforms that we currently run on like HP-UX. If you come up with a
>> solution that works for this on all of those platforms, I will shake
>> your hand. But I think that's probably impossible, or at least
>> really, really hard.
>
>
> Indeed. In particular, ASLR on Windows or anywhere we EXEC_BACKEND will
> cause difficulties attaching to those segments.

ASLR that we currently disable in the build because Win8/2k12 and
newer versions behaves differently than past OSes in the address
mapping, making the problem even harder if we'd want to have both
working.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2016-06-20 04:28:21 Re: Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))
Previous Message Craig Ringer 2016-06-20 03:43:35 Re: Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))