From jsomoza@pandasoftware.es Tue Feb 28 09:45:13 2006 X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3B9B89DC941 for ; Tue, 28 Feb 2006 05:45:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66481-03 for ; Tue, 28 Feb 2006 05:45:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from bilbao.pandasoftware.es (unknown [62.14.249.71]) by postgresql.org (Postfix) with ESMTP id E9EF69DC93C for ; Tue, 28 Feb 2006 05:45:10 -0400 (AST) Received: from escorpexh05.pandasoftware.local (escorpext02 [192.168.100.182]) by bilbao.pandasoftware.es (Postfix) with ESMTP id AE9F81B3642 for ; Tue, 28 Feb 2006 10:44:41 +0100 (CET) Received: from ESCORPEXH03.pandasoftware.local ([172.16.0.70]) by escorpexh05.pandasoftware.local with Microsoft SMTPSVC(6.0.3790.211); Tue, 28 Feb 2006 10:45:01 +0100 Received: escorpexh03.pandasoftware.local 172.16.0.73 from 172.16.3.16 172.16.3.16 via HTTP with MS-WebStorage 6.5.6944 Received: from pndsoft by escorpexh03.pandasoftware.local; 28 Feb 2006 10:45:45 +0100 Subject: Different disks for xlogs and data From: Javier Somoza To: pgsql-performance@postgresql.org In-Reply-To: <4402D475.9020505@wildenhain.de> References: <1141034594.1556.15.camel@pndsoft> <4402D0A9.7080705@wildenhain.de> <1141035368.1556.22.camel@pndsoft> <4402D475.9020505@wildenhain.de> Content-Type: multipart/alternative; boundary="=-8k5uspHUYOrOsiH3wgSS" Message-Id: <1141119945.1555.16.camel@pndsoft> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 28 Feb 2006 10:45:45 +0100 X-OriginalArrivalTime: 28 Feb 2006 09:45:02.0038 (UTC) FILETIME=[A550AF60:01C63C4B] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.358 required=5 tests=[AWL=1.356, HTML_MESSAGE=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 1.358 X-Spam-Level: * X-Archive-Number: 200602/428 X-Sequence-Number: 17414 --=-8k5uspHUYOrOsiH3wgSS Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, is interesting to do it when using RAID 1+0? Thx --=-8k5uspHUYOrOsiH3wgSS Content-Type: text/html; charset=utf-8

	Hi,

	is interesting to do it when using RAID 1+0?

	Thx

--=-8k5uspHUYOrOsiH3wgSS-- From rjpeace@earthlink.net Tue Feb 28 13:41:02 2006 X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 56EAA9DCA45 for ; Tue, 28 Feb 2006 09:41:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03882-07 for ; Tue, 28 Feb 2006 09:41:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtpauth02.mail.atl.earthlink.net (smtpauth02.mail.atl.earthlink.net [209.86.89.62]) by postgresql.org (Postfix) with ESMTP id E31CA9DCA3B for ; Tue, 28 Feb 2006 09:40:59 -0400 (AST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=l/wevGclsI6ZyqOoKIiEv6nEWT9pwUwxfoKrNN7zR8Vu4A0R+Aj4fvHqYZEjOtFh; h=Received:Message-Id:X-Mailer:Date:To:From:Subject:In-Reply-To:References:Mime-Version:Content-Type:X-ELNK-Trace:X-Originating-IP; Received: from [71.243.43.186] (helo=ron-6d52adff2a6.earthlink.net) by smtpauth02.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1FE565-00010A-9U; Tue, 28 Feb 2006 08:41:01 -0500 Message-Id: <7.0.1.0.2.20060228072910.038dacc0@earthlink.net> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 28 Feb 2006 08:40:56 -0500 To: Javier Somoza , pgsql-performance@postgresql.org From: Ron Subject: Re: Different disks for xlogs and data In-Reply-To: <1141119945.1555.16.camel@pndsoft> References: <1141034594.1556.15.camel@pndsoft> <4402D0A9.7080705@wildenhain.de> <1141035368.1556.22.camel@pndsoft> <4402D475.9020505@wildenhain.de> <1141119945.1555.16.camel@pndsoft> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bc75f67d460039329ef6317ba634b61c91350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 71.243.43.186 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.473 required=5 tests=[AWL=-0.006, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.473 X-Spam-Level: X-Archive-Number: 200602/431 X-Sequence-Number: 17417 At 04:45 AM 2/28/2006, Javier Somoza wrote: >Hi, >is interesting to do it (use different HD sets AKA "LUNs" for xlogs >than for data) when using RAID 1+0? If "interesting" means "this increases performance", this is not a simple question. Regardless of what RAID level you use, under the proper circumstances it can boost performance to put xlog on a dedicated set of spindles. If you have a large enough pool of HDs so that you can maximize the performance of any LUN you create, then it is always good to put xlog on its own LUN. In the "perfect" world, each table or set of tables that tends to be accessed for the same query, which obviously includes xlog, would be on its own LUN; and each LUN would contain enough HDs to maximize performance. Most people can't afford and/or fit that many HDs into their set up. If you have a small number of HDs, and "small" depends on the specifics of your DB and the HDs you are using, you may get better performance by leaving everything together on one set of HDs. Once you have more than whatever is a "small" number of HDs for your DB and set of disks, _usually_, but not always, one of the best first tables to move to different HD's is xlog. The best way to find out what will get the most performance from your specific HW and DB is to test, test, test. Start by putting everything on 1 RAID 5 set. Test. Then (if you have enough HDs) put everything on 1 RAID 1+0 set. Test again. If performance is "good enough", and only you know what that is for your DB, then STOP and just use whichever works best for you. It's possible to spend far more money in man hours of effort than it is worth trying to get a few extra percents of performance. If you have the need and the budget to tweak things further, then start worrying about the more complicated stuff. As a rule of thumb, figure each 7200rpm HD does ~50MBps and each 15Krpm (or 10Krpm WD Raptor) does ~75MBps. So a 8 HD RAID 5 set of 7200rpm HDs does ~(8-1= 7)*50= ~350MBps. A RAID 10 set made of the same 8 HDs should do ~4*50= 200MBps. (=If and only if= the rest of your HW let's the RAID set push data at that speed.). Also, note that RAID 5 writes are often 2/3 - 4/5 the speed of RAID 5 reads. If we pull 1 HD from the 8 HD RAID 5 set above and dedicate it to xlog, then xlog will always get ~50MBps bandwidth. OTOH, in the original RAID 5 configuration xlog was probably sharing between 2/3 and 4/5 of ~350MBps bandwidth. Say ~233-280MBps. Which results in higher overall performance for you DB? Only testing by you on your DB can tell. Hope this helps, Ron