Re: pgsql-server/src backend/storage/buffer/bufmgr ... - Mailing list pgsql-committers

From Bruce Momjian
Subject Re: pgsql-server/src backend/storage/buffer/bufmgr ...
Date
Msg-id 200401301042.i0UAgX602991@candle.pha.pa.us
Whole thread Raw
In response to Re: pgsql-server/src backend/storage/buffer/bufmgr ...  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-committers
Jan Wieck wrote:
> Tom Lane wrote:
>
> > wieck@svr1.postgresql.org (Jan Wieck) writes:
> >>     Added GUC variable bgwriter_flush_method controlling the action
> >>     done by the background writer between writing dirty blocks and
> >>     napping.
> >
> >>     none (default)   no action
> >>     sync             bgwriter calls smgrsync() causing a sync(2)
> >
> > Why would that be useful at all?  I thought the purpose of the bgwriter
> > was to avoid I/O storms, not provoke them.
>
> Calling sync(2) every time the background writer naps means calling it
> every couple hundred milliseconds. That can hardly be called an IO
> storm, it's more like a constant breeze.

I talked to Jan about the idea of sync on every background writer sleep.
He is going to study the issue and report back.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pgsql-server/src backend/storage/buffer/bufmgr ...
Next
From: momjian@svr1.postgresql.org (Bruce Momjian)
Date:
Subject: pgsql-server/doc TODO