fsync on ext4 does not work

From: Havasvölgyi Ottó <havasvolgyi(dot)otto(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: fsync on ext4 does not work
Date: 2011-12-19 15:52:15
Message-ID: CAOryeA1EoiFpmG6HmQakWYWtH6vqxLPxw3JeUocnjpnBuySf9A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

Somewhy fsync does not work for me.

PgSql 9.1.2

Debian, 2.6.32 kernel

WAL filesystem: ext4 with defaults

config:
fsync=on
sync_commit=on
wal_sync_method=fsync

Even though the TPS in pgbench about 700 with 1 client.
I have tried other sync methods (fdatasync, open_sync), but all are similar.
Should I disable write cache on HDD to make it work?

Have you any idea why?

Thanks,
Otto

Responses

Browse pgsql-general by date

  From Date Subject
Next Message MURAT KOÇ 2011-12-19 15:52:50 Re: Changing Passwords as Encrypted not Clear-Text
Previous Message Adrian Klaver 2011-12-19 15:45:50 Re: Changing Passwords as Encrypted not Clear-Text