Skip site navigation (1) Skip section navigation (2)

Re: wal sync method

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Javier Somoza <jsomoza(at)pandasoftware(dot)es>
Cc: Evgeny Gridasov <eugrid(at)fpm(dot)kubsu(dot)ru>, pgsql-performance(at)postgresql(dot)org
Subject: Re: wal sync method
Date: 2006-02-28 01:14:10
Message-ID: 200602280114.k1S1EAQ17159@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-performance
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(at)pandasoftware(dot)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. +

In response to

Responses

pgsql-performance by date

Next:From: Jeevanandam, Kathirvel (IE10)Date: 2006-02-28 03:44:59
Subject: Re: rotate records
Previous:From: Bruce MomjianDate: 2006-02-28 01:06:13
Subject: Re: fsync and battery-backed caches

pgsql-hackers by date

Next:From: Tatsuo IshiiDate: 2006-02-28 01:14:33
Subject: Re: possible design bug with PQescapeString()
Previous:From: Josh BerkusDate: 2006-02-28 00:59:45
Subject: Re: pg_config, pg_service.conf, postgresql.conf ....

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group