From: | "Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at> |
---|---|
To: | "Takayuki Tsunakawa" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, "ITAGAKI Takahiro" <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
Cc: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Load distributed checkpoint |
Date: | 2006-12-22 12:51:31 |
Message-ID: | E1539E0ED7043848906A8FF995BDA57901A35030@m0143.s-mxs.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
> > If you use linux, try the following settings:
> > 1. Decrease /proc/sys/vm/dirty_ratio and dirty_background_ratio.
You will need to pair this with bgwriter_* settings, else too few
pages are written to the os inbetween checkpoints.
> > 2. Increase wal_buffers to redule WAL flushing.
You will want the possibility of single group writes to be able to reach
256kb. The default is thus not enough when you have enough RAM.
You also want enough, so that new txns don't need to wait for an empty
buffer (that is only freed by a write).
> > 3. Set wal_sync_method to open_sync; O_SYNC is faster then fsync().
O_SYNC's only advantage over fdatasync is that it saves a system call,
since it still passes through OS cache, but the disadvantage is that it
does not let the OS group writes. Thus it is more susceptible to too
few WAL_buffers. What you want is O_DIRECT + enough wal_buffers to allow
256k writes.
> > 4. Separate data and WAL files into different partitions or disks.
While this is generally suggested, I somehow doubt the validity when you
only have few disk spindles. If e.g. you only have 2-3 (mirrored) disks
I
wouldn't do it (at least on the average 70/30 read write systems).
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2006-12-22 14:03:49 | Re: configure problem --with-libxml |
Previous Message | Simon Riggs | 2006-12-22 12:05:33 | Re: Load distributed checkpoint |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-12-22 18:53:13 | Re: Load distributed checkpoint |
Previous Message | Simon Riggs | 2006-12-22 12:05:33 | Re: Load distributed checkpoint |