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 7009052D18 for ; Fri, 19 Aug 2005 03:55:33 -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 87395-08 for ; Fri, 19 Aug 2005 06:55:21 +0000 (GMT) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by svr1.postgresql.org (Postfix) with ESMTP id 15F8352DE8 for ; Fri, 19 Aug 2005 03:55:18 -0300 (ADT) Received: (qmail 5497 invoked from network); 19 Aug 2005 06:55:18 -0000 Received: from dsl081-060-184.sfo1.dsl.speakeasy.net (HELO noodles) ([64.81.60.184]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with RC4-MD5 encrypted SMTP for ; 19 Aug 2005 06:55:18 -0000 Subject: Re: Query plan looks OK, but slow I/O - settings advice? From: "Jeffrey W. Baker" To: Roger Hand Cc: pgsql-performance@postgresql.org In-Reply-To: References: Content-Type: text/plain Date: Thu, 18 Aug 2005 23:55:35 -0700 Message-Id: <1124434535.3257.7.camel@noodles> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200508/247 X-Sequence-Number: 13994 On Tue, 2005-08-16 at 10:46 -0700, Roger Hand wrote: > The disks are ext3 with journalling type of ordered, but this was later changed to writeback with no apparent change in speed. > > They're on a Dell poweredge 6650 with LSI raid card, setup as follows: > 4 disks raid 10 for indexes (145GB) - sdc1 > 6 disks raid 10 for data (220GB) - sdd1 > 2 mirrored disks for logs - sdb1 > > stripe size is 32k > cache policy: cached io (am told the controller has bbu) > write policy: write-back > read policy: readahead I assume you are using Linux 2.6. Have you considered booting your machine with elevator=deadline? You can also change this at runtime using sysfs. These read speeds are not too impressive. Perhaps this is a slow controller. Alternately you might need bigger CPUs. There's a lot of possibilities, obviously :) I'd start with the elevator, since that's easily tested. -jwb