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 21A8A9DC880 for ; Fri, 16 Dec 2005 18:49:58 -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 66152-01 for ; Fri, 16 Dec 2005 18:49:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from linda-1.paradise.net.nz (bm-1a.paradise.net.nz [203.96.152.180]) by postgresql.org (Postfix) with ESMTP id 21FE39DC84E for ; Fri, 16 Dec 2005 18:49:55 -0400 (AST) Received: from smtp-1.paradise.net.nz (tclsnelb1-src-1.paradise.net.nz [203.96.152.172]) by linda-1.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IRM00CW84R941@linda-1.paradise.net.nz> for pgsql-performance@postgresql.org; Sat, 17 Dec 2005 11:49:57 +1300 (NZDT) Received: from [192.168.1.11] (218-101-28-173.dsl.clear.net.nz [218.101.28.173]) by smtp-1.paradise.net.nz (Postfix) with ESMTP id 0078116BC7A4; Sat, 17 Dec 2005 11:49:56 +1300 (NZDT) Date: Sat, 17 Dec 2005 11:49:55 +1300 From: Mark Kirkwood Subject: Re: SAN/NAS options In-reply-to: <20051216221801.GT53809@pervasive.com> To: "Jim C. Nasby" Cc: Charles Sprickman , pgsql-performance@postgresql.org Message-id: <43A34493.4020204@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051106) References: <439FC9B8.8020709@paradise.net.nz> <20051216221801.GT53809@pervasive.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.873 required=5 tests=[AWL=-0.459, RCVD_IN_BL_SPAMCOP_NET=1.332] X-Spam-Score: 0.873 X-Spam-Level: X-Archive-Number: 200512/413 X-Sequence-Number: 16234 Jim C. Nasby wrote: > On Wed, Dec 14, 2005 at 08:28:56PM +1300, Mark Kirkwood wrote: > >>Another interesting thing to try is rebuilding the database ufs >>filesystem(s) with 32K blocks and 4K frags (as opposed to 8K/1K or >>16K/2K - can't recall the default on 4.x). I found this to give a factor >>of 2 speedup on random disk access (specifically queries doing indexed >>joins). > > > Even if you're doing a lot of random IO? I would think that random IO > would perform better if you use smaller (8K) blocks, since there's less > data being read in and then just thrown away that way. > > Yeah, that's what I would have expected too! but the particular queries I tested do a ton of random IO (correlation of 0.013 on the join column for the big table). I did wonder if the gain has something to do with the underlying RAID stripe size (64K or 256K in my case), as I have only tested the 32K vs 8K/16K on RAIDed systems. I guess for a system where the number of concurrent users give rise to memory pressure, it will cause more thrashing of the file buffer cache, much could be a net loss. Still worth trying out I think, you will know soon enough if it is a win or lose! Note that I did *not* alter Postgres page/block size (BLCKSZ) from 8K, so no dump/reload is required to test this out. cheers Mark