Re: PG on NFS may be just a bad idea

From: Neil Conway <neilc(at)samurai(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org, Mija Lee <mija(at)scharp(dot)org>
Subject: Re: PG on NFS may be just a bad idea
Date: 2007-10-08 21:22:17
Message-ID: 1191878537.26227.4.camel@dell.linuxdev.us.dell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers pgsql-novice

On Mon, 2007-10-08 at 16:50 -0400, Alvaro Herrera wrote:
> palloc uses malloc underneath. My thought is to replace that with
> sbrk, mmap or something like that. Not very portable though, a lot of
> work, and most likely not nearly enough benefits.

Yeah, I agree this isn't likely to be a win in the general case.
However, it would be interesting to explore a specialized allocator for
short-lived memory contexts, where we don't care about having an
effective pfree(). If the context is going to be reset or deleted
shortly anyway, we could probably optimize and simplify palloc() by
skipping free space accounting and then make pfree() a no-op. I recall
Tom mentioning something to this effect a few months back...

-Neil

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2007-10-09 01:28:48 Re: [HACKERS] Use of "postmaster"
Previous Message Alvaro Herrera 2007-10-08 20:50:35 Re: PG on NFS may be just a bad idea

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2007-10-08 21:38:48 Re: [COMMITTERS] pgsql: Added the Skytools extended transaction ID module to contrib as
Previous Message Gregory Stark 2007-10-08 21:11:15 Re: [COMMITTERS] pgsql: Added the Skytools extended transaction ID module to contrib as

Browse pgsql-novice by date

  From Date Subject
Next Message Simon Riggs 2007-10-09 07:44:21 Re: PG on NFS may be just a bad idea
Previous Message Alvaro Herrera 2007-10-08 20:50:35 Re: PG on NFS may be just a bad idea