Re: Need to tune for Heavy Write

From: Dusan Misic <promisic(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, Adarsh Sharma <adarsh(dot)sharma(at)orkash(dot)com>, Willy-Bas Loos <willybas(at)gmail(dot)com>
Subject: Re: Need to tune for Heavy Write
Date: 2011-08-04 09:03:13
Message-ID: CAGdZ+NAtXEa25iWOd_2G=A+JH4pz_tYtLNhU_tPkv=7ddAtk4Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Scott is right. His answer solves the problem in the long run. Even if your
write load increases, it will perform fast enough.

For now try increasing checkpoint_segments size, restart Postgres for new
settings to take effect and try again with your write load.

If you are not satisfied with write speed, then it is time to upgrade your
storage system / aka to increase I/O performance.
On Aug 4, 2011 10:46 AM, "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> wrote:
> On Thu, Aug 4, 2011 at 2:34 AM, Willy-Bas Loos <willybas(at)gmail(dot)com> wrote:
>> On Thu, Aug 4, 2011 at 6:56 AM, Adarsh Sharma <adarsh(dot)sharma(at)orkash(dot)com>
wrote:
>>> After this I change my pg_xlog directory to a separate directory other
than
>>> data directory by symlinking.
>>>(...)
>>> Please let me know if I missing any other important configuration.
>>
>> Moving the pg_xlog to a different directory only helps when that
>> directory is on a different harddisk (or whatever I/O device).
>
> Not entirely true. By simply being on a different mounted file
> system this moves the fsync calls on the pg_xlog directories off of
> the same file system as the main data store. Previous testing has
> shown improvements in performance from just using a different file
> system.
>
> That said, the only real solution to a heavy write load is a heavy
> duty IO subsystem, with lots of drives and battery backed cache.
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Nicholson, Brad (Toronto, ON, CA) 2011-08-04 12:41:47 Re: Need to tune for Heavy Write
Previous Message Scott Marlowe 2011-08-04 08:46:02 Re: Need to tune for Heavy Write