Re: PITR and warm standby setup questions

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Mason Hale" <masonhale(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PITR and warm standby setup questions
Date: 2007-11-13 05:38:05
Message-ID: b42b73150711122138u242766f3o3cbf85376a374551@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Nov 12, 2007 11:03 PM, Mason Hale <masonhale(at)gmail(dot)com> wrote:
> > your i/o must be really random to be seeing numbers that lousy (10
> > seconds to replay a file is 1.6 megabytes/sec), or there is some other
> > unexplained problem with your server. is your raid controller
> > properly caching wites? have you benchmarked the volume with bonnie++
> > or similar tool (pay close attention to seeks).

> Here's the bonnie++ output (two runs):
> Version 1.03 ------Sequential Output------ --Sequential Input-
> --Random-
> -Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
> --Seeks--
> Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec
> %CP
> dev-db-2 32G 43174 99 87421 24 45614 12 48302 97 164574 23 205.3

your seeks are low, especially if these are 15k drives. The
sequential numbers are ok but not very important in the scheme of
things. Interestingly, your 'sdd' device is not doing any writing in
the iostat samples you sent...is that a typical sample? how long are
your iostat intervals? your iowait numbers are also remarkably
stable. did you iostat the device when doing bonnie? (an iostat
during wal replay is much more interesting)

here are some random suggestions:

* play with partial wal writes setting and see if that helps
* double check raid controller is configured for writeback (it should,
with a bbu)
* experiment with xfs on data volume which may help compensate for
lousy seeking hardware
* try and describe with a little more detail your workload on the primary

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2007-11-13 05:49:41 Re: PITR and warm standby setup questions
Previous Message hubert depesz lubaczewski 2007-11-13 05:27:36 Re: Regression in 8.3?