pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Neil Conway <neilc@samurai.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-hackers@postgresql.org, Mija Lee <mija@scharp.org>
Subject: Re: PG on NFS may be just a bad idea
Date: Mon, 08 Oct 2007 14:22:17 -0700
Message-ID: <1191878537.26227.4.camel@dell.linuxdev.us.dell.com> (raw)
In-Reply-To: <20071008205035.GF6000@alvh.no-ip.org>
References: <20071001234651.GD9430@alvh.no-ip.org>
	<200710082046.l98KkQj28574@momjian.us>
	<20071008205035.GF6000@alvh.no-ip.org>

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





view thread (13+ messages)  latest in thread

Message-ID: <1191878537.26227.4.camel@dell.linuxdev.us.dell.com>
Permalink:  ../1191878537.26227.4.camel@dell.linuxdev.us.dell.com/
Also on:    postgresql.org/message-id/1191878537.26227.4.camel@dell.linuxdev.us.dell.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: neilc@samurai.com, alvherre@commandprompt.com, bruce@momjian.us, tgl@sss.pgh.pa.us, simon@2ndquadrant.com, josh@agliodbs.com, mija@scharp.org
  Subject: Re: PG on NFS may be just a bad idea
  In-Reply-To: <1191878537.26227.4.camel@dell.linuxdev.us.dell.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox