X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BD931D6E40 for ; Tue, 30 Aug 2005 20:02:45 -0300 (ADT) 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 94332-03 for ; Tue, 30 Aug 2005 23:02:30 +0000 (GMT) Received: from smtpauth09.mail.atl.earthlink.net (smtpauth09.mail.atl.earthlink.net [209.86.89.69]) by svr1.postgresql.org (Postfix) with ESMTP id 56989D8668 for ; Tue, 30 Aug 2005 20:02:29 -0300 (ADT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=FuHj2/mPj6faXiIrgDUtUtwA/RQ4TAL4KmNXJJRYugP0fkNNRFdk+W9JR0pdkcAI; 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 [24.41.3.216] (helo=RJP-01.earthlink.net) by smtpauth09.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EAF7f-0004sd-Kq; Tue, 30 Aug 2005 19:02:31 -0400 Message-Id: <6.2.3.4.0.20050830154823.05ac9308@pop.earthlink.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Tue, 30 Aug 2005 19:02:28 -0400 To: "Joshua D. Drake" , pgsql-performance@postgresql.org From: Ron Subject: Re: RAID Configuration Sugestion In-Reply-To: <4314B329.20009@commandprompt.com> References: <431452FD.3090402@atua.com.br> <6.2.3.4.0.20050830103240.0219b640@pop.earthlink.net> <43148FC4.4000407@commandprompt.com> <6.2.3.4.0.20050830132902.021a5308@pop.earthlink.net> <4314B329.20009@commandprompt.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bc5c1988b3457bd03d90ce542a24f176e2350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.3.216 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.406 required=5 tests=[AWL=0.032, DNS_FROM_RFC_ABUSE=0.374] X-Spam-Level: X-Archive-Number: 200508/547 X-Sequence-Number: 14294 At 03:27 PM 8/30/2005, Joshua D. Drake wrote: >>>If you still have the budget, I would suggest considering either >>>what Ron suggested or possibly using a 4 drive RAID 10 instead. >> >> >>IME, with only 4 HDs, it's usually better to split them them into >>two RAID 1's (one for the db, one for everything else including the >>logs) than it is to put everything on one RAID 10. YMMV. > >Really? That's interesting. My experience is different, I assume >SCSI? Software/Hardware Raid? The issue exists regardless of technologies used, although the technology used does affect when things become an irritation or serious problem. The issue with "everything on the same HD set" seems to be that under light loads anything works reasonably well, but as load increases contention between DB table access, OS access, and xlog writes can cause performance problems. In particular, _everything_ else hangs while logs are being written with "everything on the same HD set". Thus leaving you with the nasty choices of small log writes that cause more seeking behavior, and the resultant poor overall HD IO performance, or large log writes that basically freeze the server until they are done. Having the logs on a different HD, and if possible different IO bus, reduces this effect to a minimum and seems to be a better choice than the "shared everything" approach. Although this effect seems largest when there are fewest HDs, the general pattern is that one should use as many spindles as one can make use of and that they should be as dedicated as possible in their purpose(s). That's why the TPC bench marked systems tend to have literally 100's of HD's and they tend to be split into very focused purposes. Ron Peacetree