pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tv@fuzzy.cz>
To: Claudio Freire <klaussfreire@gmail.com>
Cc: Stefan Keller <sfkeller@gmail.com>
Cc: Wales Wang <wormwang@yahoo.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: Stephen Frost <sfrost@snowman.net>
Subject:  Re: [PERFORM] Re: [PERFORM] Re: 回复: [PERFORM] PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?
Date: Tue, 28 Feb 2012 14:38:57 +0100
Message-ID: <8da9b15646d973a5ee23ba49faeee8fd.squirrel@sq.gransy.com> (raw)
In-Reply-To: <CAGTBQpbUvONS+TjKBpdsctgsgL6VZENRWOjWuJHLZmoamKwgDg@mail.gmail.com>
References: <CAFcOn28A3dkmCEGsu-7Chi0gH1qAPYcfbSp8op9gswFawS6ECA@mail.gmail.com>
	<CAMkU=1y2ea=ZLT-zqyQpNDuuDiNVuWw7xMgpt6R7oVTrHwHVVQ@mail.gmail.com>
	<CAFcOn28k5=B=EY3WOHF0HYOkcAZqzpS+FvTAXzgfj85PM08Msw@mail.gmail.com>
	<CAMkU=1wG13Ysmy=7_BNZPnaRBX6k7GF94ERyA_6amDXu_7y8dg@mail.gmail.com>
	<1330346798.90731.YahooMailNeo@web30808.mail.mud.yahoo.com>
	<CAFcOn2-cdt2=ikUHs-o0aH9tYkVhLD-DnXfo_EmZpFzVrQXEog@mail.gmail.com>
	<CAGTBQpbUvONS+TjKBpdsctgsgL6VZENRWOjWuJHLZmoamKwgDg@mail.gmail.com>

On 28 Únor 2012, 14:08, Claudio Freire wrote:
> On Tue, Feb 28, 2012 at 5:30 AM, Stefan Keller <sfkeller@gmail.com> wrote:
>>
>> But what I'm finally after is a solution, where records don't get
>> pushed back to disk a.s.a.p. but rather got hold in memory as long as
>> possible assuming that there is enough memory.
>
> fsync = off ?

I don't think this is a viable idea, unless you don't care about the data.

Moreover, "fsyn=off" does not mean "not writing" and writing does not mean
"removing from shared buffers". A page written/fsynced during a checkpoint
may stay in shared buffers.

AFAIK the pages are not removed from shared buffers without a reason. So a
dirty buffer is written to a disk (because it needs to, to keep ACID) but
stays in shared buffers as "clean" (unless it was written by a backend,
which means there's not enough memory).

Tomas




view thread (13+ messages)  latest in thread

Message-ID: <8da9b15646d973a5ee23ba49faeee8fd.squirrel@sq.gransy.com>
Permalink:  ../8da9b15646d973a5ee23ba49faeee8fd.squirrel@sq.gransy.com/
Also on:    postgresql.org/message-id/8da9b15646d973a5ee23ba49faeee8fd.squirrel@sq.gransy.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-performance@postgresql.org
  Cc: tv@fuzzy.cz, klaussfreire@gmail.com, sfkeller@gmail.com, wormwang@yahoo.com, jeff.janes@gmail.com, sfrost@snowman.net
  Subject: Re:  Re: [PERFORM] Re: [PERFORM] Re: 回复: [PERFORM] PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?
  In-Reply-To: <8da9b15646d973a5ee23ba49faeee8fd.squirrel@sq.gransy.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