Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C3C119FC25C for ; Fri, 18 May 2007 06:12:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70628-06 for ; Fri, 18 May 2007 06:12:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id A11399FC238 for ; Fri, 18 May 2007 06:12:11 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 952B5766F7; Fri, 18 May 2007 10:12:04 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 6DDC327411A; Fri, 18 May 2007 10:12:01 +0100 (BST) Message-ID: <464D6DE1.6040001@archonet.com> Date: Fri, 18 May 2007 10:12:01 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Ralph Mason Cc: pgsql-performance@postgresql.org Subject: Re: Ever Increasing IOWAIT References: <011b01c798d5$141365a0$3c3a30e0$@mason@telogis.com> In-Reply-To: <011b01c798d5$141365a0$3c3a30e0$@mason@telogis.com> Content-Type: text/plain; charset=windows-1250; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/311 X-Sequence-Number: 24701 Ralph Mason wrote: > We have a database running on a 4 processor machine. As time goes by the IO > gets worse and worse peeking at about 200% as the machine loads up. > > The weird thing is that if we restart postgres it’s fine for hours but over > time it goes bad again. > > (CPU usage graph here HYPERLINK > "http://www.flickr.com/photos/8347741@N02/502596262/"http://www.flickr.com/p > hotos/8347741@N02/502596262/ ) You can clearly see where the restart > happens in the IO area I'm assuming here we're talking about that big block of iowait at about 4-6am? I take it vmstat/iostat show a corresponding increase in disk activity at that time. The question is - what? Does the number of PG processes increase at that time? If that's not intentional then you might need to see what your applications are up to. Do you have a vacuum/backup scheduled for that time? Do you have some other process doing a lot of file I/O at that time? > This is Postgres 8.1.4 64bit. You'll want to upgrade to the latest patch release - you're missing 5 lots of bug-fixes there. -- Richard Huxton Archonet Ltd