Re: [PATCH] PostgreSQL 9.4 mmap(2) performance regression on FreeBSD...

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Sean Chittenden <sean(at)chittenden(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] PostgreSQL 9.4 mmap(2) performance regression on FreeBSD...
Date: 2015-03-19 18:06:14
Message-ID: CA+TgmoZpgn6g6n3KD8mcG5qpwQVSh5odqUWgbmWb4YHHygyRLw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 19, 2015 at 12:16 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Mon, Oct 13, 2014 at 11:35:18AM -0400, Bruce Momjian wrote:
>> On Mon, Oct 13, 2014 at 05:21:32PM +0200, Andres Freund wrote:
>> > > If we have it, we should improve it, or remove it. We might want to use
>> > > this code for something else in the future, so it should be improved
>> > > where feasible.
>> >
>> > Meh. We don't put in effort into code that doesn't matter just because
>> > it might get used elsewhere some day. By that argument we'd need to
>> > performance optimize a lot of code. And actually, using that code
>> > somewhere else is more of a counter indication than a pro
>> > argument. MAP_NOSYNC isn't a general purpose flag.
>>
>> The key is that this is platform-specific behavior, so if we should use
>> a flag to use it right, we should. You are right that optimizing
>> rarely used code with generic calls isn't a good use of time.
>
> I have adjusted Sean's mmap() options patch to match our C layout and
> plan to apply this to head, as it is from August.

Looks great, thanks for taking care of that.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-03-19 18:08:26 Re: Using 128-bit integers for sum, avg and statistics aggregates
Previous Message Sergey Shchukin 2015-03-19 17:30:44 Re: [GENERAL] Re: [pgadmin-support] Issue with a hanging apply process on the replica db after vacuum works on primary