On 28 Říjen 2011, 18:11, Merlin Moncure wrote:
> On Fri, Oct 28, 2011 at 10:28 AM, Marcus Engene <mengpg2(at)engene(dot)se> wrote:
>> Hi list,
>> Every now and then I have write peaks which causes annoying delay on my
>> website. No particular reason it seems, just that laws of probability
>> dictates that there will be peaks every now and then.
>> Anyway, thinking of ways to make the peaks more bareable, I saw the new
>> feature to bypass WAL. Problems is mainly that some statistics tables
>> users clicked this link this month") clog the write cache, not more
>> important writes. I could live with restoring a nightly dump of these
>> and loose a days worth of logs.
>> Though not keen on jumping over to early major versions an old idea of
>> putting WAL in RAM came back. Not RAM in main memory but some thingie
>> pretending to be a drive with proper battery backup.
>> a) It seems to exist odd hardware with RAM modules and if lucky also
>> b) Some drive manufactureres have done hybird ram-spindle drives
>> with possibly more common ssd-spindle hybrides).
>> b) sounds slightly more appealing since it basically means I put
>> on those drives and it magically is faster. The a) alternatives also
>> to be non ECC which is a no-no and disturbing.
>> Does anyone here have any recommendations here?
>> Pricing is not very important but reliability is.
> Have you ruled out SSD? They are a little new, but I'd be looking at
> the Intel 710. In every case I've seen SSD permanently ends I/O
> issues. DRAM storage solutions I find to be pricey and complicated
> when there are so many workable flash options out now.
Are you sure SSDs are a reasonable option for WAL? I personally don't
think it's a good option, because WAL is written in a sequential manner,
and that's not an area where SSDs beat spinners really badly.
For example the Intel 710 SSD has a sequential write speed of 210MB/s,
while a simple SATA 7.2k drive can write about 50-100 MB/s for less than
1/10 of the 710 price.
I'm not saying SSDs are a bad thing, but I think it's a waste of money to
use them for WAL.
In response to
pgsql-performance by date
|Next:||From: Merlin Moncure||Date: 2011-10-28 18:40:17|
|Subject: Re: WAL in RAM|
|Previous:||From: Tomas Vondra||Date: 2011-10-28 18:10:03|
|Subject: Re: Strange query plan|