Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UfVzJ-0000b8-CY for pgsql-performance@arkaria.postgresql.org; Thu, 23 May 2013 13:55:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UfVzI-0000BT-SG for pgsql-performance@arkaria.postgresql.org; Thu, 23 May 2013 13:55:24 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UfVzH-0000BN-Ny for pgsql-performance@postgresql.org; Thu, 23 May 2013 13:55:23 +0000 Received: from host36.ns3.it ([80.79.54.36] helo=mail.opinioni.net) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UfVz6-0006KY-UC for pgsql-performance@postgresql.org; Thu, 23 May 2013 13:55:22 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.opinioni.net (Postfix) with ESMTP id 7AA545DE016; Thu, 23 May 2013 15:55:18 +0200 (CEST) Received: from mail.opinioni.net ([127.0.0.1]) by localhost (opinioni.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oH8I+4pOsUFp; Thu, 23 May 2013 15:55:18 +0200 (CEST) Received: from [192.168.1.50] (78-134-6-72.v4.ngi.it [78.134.6.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.opinioni.net (Postfix) with ESMTPS id 071055DE015; Thu, 23 May 2013 15:55:17 +0200 (CEST) Message-ID: <519E1FBC.9020409@opinioni.net> Date: Thu, 23 May 2013 15:55:08 +0200 From: Andrea Suisani User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Merlin Moncure CC: Greg Smith , Tomas Vondra , pgsql-performance@postgresql.org Subject: Re: Reliability with RAID 10 SSD and Streaming Replication References: <51957499.6050905@fuzzy.cz> <519991EB.8010208@2ndQuadrant.com> <519A8E29.60702@fuzzy.cz> <519C0EFD.9080002@2ndQuadrant.com> <519DBDB2.2050106@opinioni.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 05/23/2013 03:47 PM, Merlin Moncure wrote: [cut] >> >> >> [..] There are two components to the Swingbench test we're running here: >> the database itself, and the redo log. The redo log stores all changes that >> are made to the database, which allows the database to be reconstructed in >> the event of a failure. In good DB design, these two would exist on separate >> storage systems, but in order to increase IO we combined them both for this >> test. >> Accesses to the DB end up being 8KB and random in nature, a definite strong >> suit >> of the S3700 as we've already shown. The redo log however consists of a >> bunch >> of 1KB - 1.5KB, QD1, sequential accesses. The S3700, like many of the newer >> controllers we've tested, isn't optimized for low queue depth, sub-4KB, >> sequential >> workloads like this. [..] >> >> >> >> Does this kind of scenario apply to postgresql wal files repo ? > > huh -- I don't think so. wal file segments are 8kb aligned, ditto > clog, etc. In XLogWrite(): > > /* OK to write the page(s) */ > from = XLogCtl->pages + startidx * (Size) XLOG_BLCKSZ; > nbytes = npages * (Size) XLOG_BLCKSZ; <-- > errno = 0; > if (write(openLogFile, from, nbytes) != nbytes) > { > > AFICT, that's the only way you write out xlog. One thing I would > definitely advise though is to disable partial page writes if it's > enabled. s3700 is algined on 8kb blocks internally -- hm. many thanks merlin for both the explanation and the good advice :) andrea -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance