Re: WAL fsync scheduling - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: WAL fsync scheduling
Date
Msg-id 200011181743.MAA23960@candle.pha.pa.us
Whole thread Raw
In response to Re: WAL fsync scheduling  (Larry Rosenman <ler@lerctr.org>)
Responses Re: WAL fsync scheduling  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> * Tom Lane <tgl@sss.pgh.pa.us> [001117 23:21]:
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > Other backend will see they are not the lowest
> > > WAIT_ON_FSYNC and will wait for their byte to be set to NOT_IN_COMMIT
> > > so they can then continue, knowing their data was synced.
> > 
> > How will they wait?  Without a semaphore involved, your answer must
> > be either "timed sleep" or "busy-wait loop", neither of which is
> > attractive ...
> how about sigpause, and using SIGUSR1/SIGUSR2 to wake them up ? 

Looks like a winner.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: WAL fsync scheduling
Next
From: Tom Lane
Date:
Subject: Re: WAL fsync scheduling