Re: Moving pg_xlog - Mailing list pgsql-performance

From Tom Lane
Subject Re: Moving pg_xlog
Date
Msg-id 13548.1117722203@sss.pgh.pa.us
Whole thread Raw
In response to Re: Moving pg_xlog  (Himanshu Baweja <himanshubaweja@yahoo.com>)
Responses Re: Moving pg_xlog
List pgsql-performance
Himanshu Baweja <himanshubaweja@yahoo.com> writes:
> My database has two scsi disks....
> my current configuration has pg_xlog on disk1 and data on disk2....
> the machine is used for database only....
> now did some logging and came to a conclusion that my disk2(data disk) is getting used around 3 times more than
disk1(pg_xlog)....

> so wht is recommended... move some of the data to disk1 so that both disks are equally used... by creating
tablespacesor let my configuration be whts its currently... iowait is one of the bottlenecks in my application
performance.....

It seems highly unlikely that putting more stuff on the xlog disk will
improve performance --- at least not if your bottleneck is update speed.
If it's a read-mostly workload then optimizing xlog writes may not be
the most important thing to you.  In that case you might want to ignore
xlog and try something along the lines of tables on one disk, indexes
on the other.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to avoid database bloat
Next
From: "Mindaugas Riauba"
Date:
Subject: Re: How to avoid database bloat