X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 89227562E9 for ; Thu, 10 Mar 2005 14:14:38 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35094-04 for ; Thu, 10 Mar 2005 14:14:32 +0000 (GMT) Received: from gizmo10ps.bigpond.com (gizmo10ps.bigpond.com [144.140.71.20]) by svr1.postgresql.org (Postfix) with SMTP id D896D55CF0 for ; Thu, 10 Mar 2005 14:14:30 +0000 (GMT) Received: (qmail 11003 invoked from network); 10 Mar 2005 14:14:32 -0000 Received: from unknown (HELO psmam05.bigpond.com) (144.135.25.81) by gizmo10ps.bigpond.com with SMTP; 10 Mar 2005 14:14:32 -0000 Received: from cpe-203-45-203-73.qld.bigpond.net.au ([203.45.203.73]) by psmam05.bigpond.com(MAM REL_3_4_2a 107/6629491) with SMTP id 6629491; Fri, 11 Mar 2005 00:14:32 +1000 Message-ID: <4230564C.3090906@bigpond.net.au> Date: Fri, 11 Mar 2005 00:14:36 +1000 From: David Brown User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Karim Nassar Cc: pgsql-performance@postgresql.org Subject: Re: What's better: Raid 0 or disk for seperate pg_xlog References: <1110440684.6368.163.camel@k2.cet.nau.edu> In-Reply-To: <1110440684.6368.163.camel@k2.cet.nau.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.743 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200503/179 X-Sequence-Number: 10884 Karim Nassar wrote: >Context: I have a two disk server that is about to become dedicated to >postgresql (it's a sun v40z running gentoo linux). > >What's "theoretically better"? > >1) OS and pg_xlog on one disk, rest of postgresql on the other? (if I > understand the above correctly) >2) Everything striped Raid 0? > How lucky are you feeling? If you don't mind doubling your chances of data loss (a bit worse than that because recovery is nearly impossible), go ahead and use RAID 0 (which of course is not RAID by definition). The WAL on a separate disk is your best bet if the problem is slow updates. If prevention of data loss is a consideration, RAID 1 (mirroring) is the answer.