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 05B3552927 for ; Tue, 16 Aug 2005 14:38:02 -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 48386-10 for ; Tue, 16 Aug 2005 17:37:59 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id B1FD65291A for ; Tue, 16 Aug 2005 14:37:58 -0300 (ADT) Received: from osgiliath.mathom.us ([70.108.53.154]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ILB00BMGSNB0RD4@vms044.mailsrvcs.net> for pgsql-performance@postgresql.org; Tue, 16 Aug 2005 12:30:49 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 76F896B811B for ; Tue, 16 Aug 2005 13:30:47 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07205-01-2 for ; Tue, 16 Aug 2005 13:30:47 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 5955E6B8118; Tue, 16 Aug 2005 13:30:47 -0400 (EDT) Date: Tue, 16 Aug 2005 13:30:47 -0400 From: Michael Stone Subject: Re: [SPAM?] Re: PG8 Tuning In-reply-to: <200508160912.32263.josh@agliodbs.com> To: pgsql-performance@postgresql.org Mail-Followup-To: pgsql-performance@postgresql.org Message-id: <20050816173047.GC19080@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us References: <1536.217.45.209.171.1123763001.squirrel@www.gradwell.com> <1123836428.19976.26.camel@amd64-laptop-spoe> <1123779524.6664.1.camel@toonses.gghcwest.com> <200508160912.32263.josh@agliodbs.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/178 X-Sequence-Number: 13925 On Tue, Aug 16, 2005 at 09:12:31AM -0700, Josh Berkus wrote: >However, you are absolutely correct in that it's *relative* advice, not >absolute advice. If, for example, you're using a $100,000 EMC SAN as your >storage you'll probably be better off giving it everything and letting its >controller and cache handle disk allocation etc. Well, you don't have to spend *quite* that much to get a decent storage array. :) >On the other hand, if you're dealing with the 5 drives in a single Dell >6650, I've yet to encounter a case where a separate xlog disk did not >benefit an OLTP application. IIRC, that's an older raid controller that tops out at 128MB write cache, and 5 spindles ain't a lot--so it makes sense that it would benefit from a seperate spindle for xlog. Also note that I said the write cache advice goes out the window if you have a workload that involves constant writing (or if your xlog writes come in faster than your write cache can drain) because at that point you essentially drop back to raw disk speed; I assume the OLTP apps you mention are fairly write-intensive. OTOH, in a reasonably safe configuration I suppose you'd end up with a 3 disk raid5 / 2 disk raid1 or 2 raid 1 pairs on that dell 6650; is that how you test? Once you're down to that small a data set I'd expect the system's ram cache to be a much larger percentage of the working set, which would tend to make the xlog just about the *only* latency-critical i/o. That's a different creature from a data mining app that might really benefit from having additional spindles to accelerate read performance from indices much larger than RAM. At any rate, this just underscores the need for testing a particular workload on particular hardware. Things like the disk speed, raid configuration, write cache size, transaction size, data set size, working set size, concurrent transactions, read vs write emphasis, etc., are each going to have a fairly large impact on performance. >For Solaris, the advantage of using a separate disk or partition is that the >mount options you want for the xlog (including forcedirectio) are >considerably different from what you'd use with the main database. Yeah, having a seperate partition is often good even if you do have everything on the same disks. Mike Stone