pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bob Lunney <bob_lunney@yahoo.com>
To: Havasvölgyi Ottó <havasvolgyi.otto@gmail.com>
To: Marti Raudsepp <marti@juffo.org>
Cc: Aidan Van Dyk <aidan@highrise.ca>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Response time increases over time
Date: Thu, 8 Dec 2011 07:58:30 -0800 (PST)
Message-ID: <1323359910.29568.YahooMailNeo@web39703.mail.mud.yahoo.com> (raw)
In-Reply-To: <CAOryeA1Q96d_=jVa+fo=NfEzvdDPF=+Hs4zwvMRUV=RAcRAxXw@mail.gmail.com>
References: <CAOryeA1Wbi3p51tsJQKd79twV0bK2D+6pKv13eHEWdJnYth+bA@mail.gmail.com>
	<4EDEE781.90801@agliodbs.com>
	<CAOryeA3LoEsCMskEFwoQzM6dttgqUWTMp=Bp=PUHFy9Rn-g_GQ@mail.gmail.com>
	<4EDF336F.9080707@megafon.hr>
	<CAOryeA02NZkK-U+ms6tnJ-WGH94+-AgH51t-BHpTmj=5LvHcDQ@mail.gmail.com>
	<CAC_2qU9ha-RVG+AHHcYs0KP7gaGeGhDTGx3G=Y0sXmHu_THGWw@mail.gmail.com>
	<CABRT9RC+iRXhvA4KCeR3+hoh179WKyc1QNicpPBD1NbzM4RYdA@mail.gmail.com>
	<CAOryeA1Q96d_=jVa+fo=NfEzvdDPF=+Hs4zwvMRUV=RAcRAxXw@mail.gmail.com>

Otto,

Separate the pg_xlog directory onto its own filesystem and retry your tests.

Bob Lunney


________________________________
 From: Havasvölgyi Ottó <havasvolgyi.otto@gmail.com>
To: Marti Raudsepp <marti@juffo.org> 
Cc: Aidan Van Dyk <aidan@highrise.ca>; pgsql-performance@postgresql.org 
Sent: Thursday, December 8, 2011 9:48 AM
Subject: Re: [PERFORM] Response time increases over time
 

I have moved the data directory (xlog, base, global, and everything) to an ext4 file system. The result hasn't changed unfortuately. With the same load test the average response time: 80ms; from 40ms to 120 ms everything occurs.
This ext4 has default settings in fstab.
Have you got any other idea what is going on here?

Thanks,
Otto





2011/12/8 Marti Raudsepp <marti@juffo.org>

On Thu, Dec 8, 2011 at 06:37, Aidan Van Dyk <aidan@highrise.ca> wrote:
>> Let me guess, debian squeeze, with data and xlog on both on a single
>> ext3 filesystem, and the fsync done by your commit (xlog) is flushing
>> all the dirty data of the entire filesystem (including PG data writes)
>> out before it can return...
>
>This is fixed with the data=writeback mount option, right?
>(If it's the root file system, you need to add
>rootfsflags=data=writeback to your kernel boot flags)
>
>While this setting is safe and recommended for PostgreSQL and other
>transactional databases, it can cause garbage to appear in recently
>written files after a crash/power loss -- for applications that don't
>correctly fsync data to disk.
>
>Regards,
>Marti
>

view thread (11+ messages)  latest in thread

Message-ID: <1323359910.29568.YahooMailNeo@web39703.mail.mud.yahoo.com>
Permalink:  ../1323359910.29568.YahooMailNeo@web39703.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/1323359910.29568.YahooMailNeo@web39703.mail.mud.yahoo.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: bob_lunney@yahoo.com, havasvolgyi.otto@gmail.com, marti@juffo.org, aidan@highrise.ca
  Subject: Re: Response time increases over time
  In-Reply-To: <1323359910.29568.YahooMailNeo@web39703.mail.mud.yahoo.com>

* 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