Received: from hotmail.com (oe75.law8.hotmail.com [216.33.240.210]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5L6Oga51056 for ; Thu, 21 Jun 2001 02:24:42 -0400 (EDT) (envelope-from yasuo_ohgaki@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Jun 2001 23:24:40 -0700 X-Originating-IP: [210.154.73.126] From: "Yasuo Ohgaki" To: "Tom Lane" , "Rangachari Anand" Cc: References: <11939.993095491@sss.pgh.pa.us> Subject: Re: Gradual increase in CPU utilization by postmaster Date: Thu, 21 Jun 2001 15:22:56 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 21 Jun 2001 06:24:40.0912 (UTC) FILETIME=[DA8CAD00:01C0FA1A] X-Archive-Number: 200106/147 X-Sequence-Number: 1714 > "Rangachari Anand" writes: > > We are running Postgres 7.0.3 on a Linux machine with a 2.4.0 kernel. > > We have noticed that as we run our application which does > > a lot of updates that CPU utilization (by postmaster) gradually > > increases as time passes. > > Try 7.1.2 --- if it still does it in current sources, it'd be worth > investigating further. I recall a couple of bugs fixed that might > explain this. > > regards, tom lane FYI: It happened on my test system also - RedHat Linux 7.0.1 (kernel-2.2.19, glibc-2.2, gcc-2.96, Intel Celeron466Mhz) - PostgreSQL 7.1.2 (build from src) Postmaster size and CPU time increases gradually as time passes. After 25 minutes elapsed, postmaster size became about 7000. CPU time increased to about 90% from 70%. Terminating script and executing again will result in the same higher CPU and memory usage. Vacuuming table seems to reset this behavior. I've used the same script as Anand, but I think this situation is common in HTTP session management. (Updating the same record again and again.) Session record would not be updated as this test case, though. It seems I'm better off vacuuming my session table more often. Hope this helps, -- Yasuo Ohgaki