pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Javier Somoza <jsomoza@pandasoftware.es>
Cc: Evgeny Gridasov <eugrid@fpm.kubsu.ru>
Cc: pgsql-performance@postgresql.org
Subject: Re: wal sync method
Date: Mon, 27 Feb 2006 20:14:10 -0500 (EST)
Message-ID: <200602280114.k1S1EAQ17159@candle.pha.pa.us> (raw)
In-Reply-To: <1141043359.1556.44.camel@pndsoft>


Use whichever sync method is fastest for you.  They are all reliable,
except turning fsync off.

---------------------------------------------------------------------------

Javier Somoza wrote:
> 
> 
> 
>         Hi Evgeny
> 
>         Im also testing what fsync method to use and using this program
> (http://archives.postgresql.org/pgsql-performance/2003-12/msg00191.php)
>         a bit modified and i get this results:
> 
>                 write                          0.000036
>                 write & fsync             0.006796
>                 write & fdatasync      0.001001
>                 write (O_FSYNC)        0.005761
>                 write (O_DSYNC)        0.005894
> 
>         So fdatasync faster for me? 
> 
> 
> > Hi everybody!
> > 
> > Which wal sync method is the fastest under linux 2.6.x?
> > I'm using RAID-10 (JFS filesystem), 2xXEON, 4 Gb RAM.
> > 
> > I've tried to switch to open_sync which seems to work 
> > faster than default fdatasync, but is it crash-safe?
> 
> 
> 
> 
> Javier Somoza
> Oficina de Direcci?n Estrat?gica
> mailto:jsomoza@pandasoftware.es
> 
> Panda Software
> Buenos Aires, 12
> 48001 BILBAO - ESPA?A
> Tel?fono: 902 24 365 4
> Fax:  94 424 46 97
> http://www.pandasoftware.es
> Panda Software, una de las principales compa??as desarrolladoras de
> soluciones de protecci?n contra virus e intrusos, presenta su nueva
> familia de soluciones. Todos los usuarios de ordenadores, desde las
> redes m?s grandes a los dom?sticos, disponen ahora de nuevos productos
> con excelentes tecnolog?as de seguridad. M?s informaci?n en:
> http://www.pandasoftware.es/productos
> 
>         
> 
> ?Prot?jase ahora contra virus e intrusos! Pruebe gratis nuestros
> productos en http://www.pandasoftware.es/descargas/
> 
>                 
>                 
>         
>         
>         
>         
>         
>         

-- 
  Bruce Momjian   http://candle.pha.pa.us
  SRA OSS, Inc.   http://www.sraoss.com

  + If your life is a hard drive, Christ can be your backup. +



view thread (6+ messages)  latest in thread

Message-ID: <200602280114.k1S1EAQ17159@candle.pha.pa.us>
Permalink:  ../200602280114.k1S1EAQ17159@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200602280114.k1S1EAQ17159@candle.pha.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: pgman@candle.pha.pa.us, jsomoza@pandasoftware.es, eugrid@fpm.kubsu.ru
  Subject: Re: wal sync method
  In-Reply-To: <200602280114.k1S1EAQ17159@candle.pha.pa.us>
  References: <1141043359.1556.44.camel@pndsoft> <200602280114.k1S1EAQ17159@candle.pha.pa.us>

* 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