Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A1BF09FA4F0 for ; Wed, 1 Nov 2006 14:22:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 68462-02-3 for ; Wed, 1 Nov 2006 18:20:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from newmail.silentmedia.com (earth.silentmedia.com [216.254.19.12]) by postgresql.org (Postfix) with ESMTP id 5994C9FB3CA for ; Wed, 1 Nov 2006 11:49:19 -0400 (AST) Received: by newmail.silentmedia.com (Postfix, from userid 99) id 3E56B72AE8E; Wed, 1 Nov 2006 07:49:17 -0800 (PST) Received: from [10.2.3.2] (candyman [10.2.3.2]) by newmail.silentmedia.com (Postfix) with ESMTP id 8ABB272AE4E; Wed, 1 Nov 2006 07:49:16 -0800 (PST) In-Reply-To: <1162372861.18283.34.camel@andi-lap> References: <1162372861.18283.34.camel@andi-lap> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5D3F6FE2-740B-4D87-A4FF-47378B1969ED@silentmedia.com> Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: 7bit From: Ben Subject: Re: big transaction slows down over time - but disk seems almost unused Date: Wed, 1 Nov 2006 07:49:15 -0800 To: Andreas Kostyrka X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/8 X-Sequence-Number: 21778 Memory usage remains consistent, which is to say that postgres is using most available system memory all the time, as I configured it to. There is no swapping going on. It's not clear to me why forcing a WAL checkpoint would help anything.... but it doesn't matter, as only superusers can do it, so it's not an option for me. Unless there's a whole other meaning you were implying....? On Nov 1, 2006, at 1:21 AM, Andreas Kostyrka wrote: > Am Dienstag, den 31.10.2006, 21:58 -0800 schrieb Ben: >> I've got a long-running, update-heavy transaction that >> increasingly slows >> down the longer it runs. I would expect that behavior, if there >> was some >> temp file creation going on. But monitoring vmstat over the life >> of the >> transaction shows virtually zero disk activity. Instead, the >> system has >> its CPU pegged the whole time. >> >> So.... why the slowdown? Is it a MVCC thing? A side effect of calling >> stored proceedures a couple hundred thousand times in a single > > Memory usage? Have you tried to checkpoint your transaction from > time to > time? > > Andreas > >> transaction? Or am I just doing something wrong? >> >> ---------------------------(end of >> broadcast)--------------------------- >> TIP 5: don't forget to increase your free space map settings