Re: WAL in RAM

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Marcus Engene" <mengpg2(at)engene(dot)se>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: WAL in RAM
Date: 2011-10-28 15:45:44
Message-ID: 4EAA87D80200002500042818@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Marcus Engene <mengpg2(at)engene(dot)se> wrote:

> Every now and then I have write peaks which causes annoying delay
> on my website

> Does anyone here have any recommendations here?

For our largest machines we put WAL on a RAID1 drive pair dedicated
to that task, on its own controller with battery-backed cache
configured for write-back. It does make a big difference, because
when a DBA accidentally got this wrong once, we saw the problem you
describe, and moving WAL to the dedicated drives/controller caused
the problem to go away.

If problems remain, look for posts by Greg Smith on how to tune
this. You may want to extend your checkpoint completion target,
make the background writer more aggressive, reduce shared buffers,
or tune the OS. But if you can afford to put WAL on a dedicated
file system something like the above, that would be a better place
to start, IMO.

-Kevin

In response to

  • WAL in RAM at 2011-10-28 15:28:23 from Marcus Engene

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2011-10-28 16:11:41 Re: WAL in RAM
Previous Message Marcus Engene 2011-10-28 15:28:23 WAL in RAM