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 EDD9C52A76 for ; Fri, 15 Jul 2005 18:01:38 -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 42725-02 for ; Fri, 15 Jul 2005 21:01:30 +0000 (GMT) Received: from gghcwest.com (adsl-71-128-90-172.dsl.pltn13.pacbell.net [71.128.90.172]) by svr1.postgresql.org (Postfix) with ESMTP id C5F2452971 for ; Fri, 15 Jul 2005 18:01:28 -0300 (ADT) Received: from toonses.gghcwest.com (toonses.gghcwest.com [192.168.168.115]) by gghcwest.com (8.12.10/8.12.9) with ESMTP id j6FL1Qmd013303; Fri, 15 Jul 2005 14:01:27 -0700 Received: from jwb by toonses.gghcwest.com with local (Exim 4.50) id 1DtXHz-0007dA-VK; Fri, 15 Jul 2005 14:00:07 -0700 Subject: Re: Really bad diskio From: "Jeffrey W. Baker" To: Ron Wills Cc: pgsql-performance@postgresql.org In-Reply-To: <8764vbby7r.wl%ron@rwsoft.ca> References: <8764vbby7r.wl%ron@rwsoft.ca> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 15 Jul 2005 14:00:07 -0700 Message-Id: <1121461207.28449.8.camel@toonses.gghcwest.com> Mime-Version: 1.0 X-Mailer: Evolution 2.3.4 X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200507/223 X-Sequence-Number: 13464 On Fri, 2005-07-15 at 14:39 -0600, Ron Wills wrote: > Hello all > > I'm running a postgres 7.4.5, on a dual 2.4Ghz Athlon, 1Gig RAM and > an 3Ware SATA raid. Currently the database is only 16G with about 2 > tables with 500000+ row, one table 200000+ row and a few small > tables. The larger tables get updated about every two hours. The > problem I having with this server (which is in production) is the disk > IO. On the larger tables I'm getting disk IO wait averages of > ~70-90%. I've been tweaking the linux kernel as specified in the > PostgreSQL documentations and switched to the deadline > scheduler. Nothing seems to be fixing this. The queries are as > optimized as I can get them. fsync is off in an attempt to help > preformance still nothing. Are there any setting I should be look at > the could improve on this??? Can you please characterize this a bit better? Send the output of vmstat or iostat over several minutes, or similar diagnostic information. Also please describe your hardware more. Regards, Jeff Baker