Received: from reefedge.reefedge.com (reefedge.com [216.10.14.212]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5KJwia23220 for ; Wed, 20 Jun 2001 15:58:44 -0400 (EDT) (envelope-from anand@reefedge.com) Received: from manta (40321DB5.ptr.dia.nextlink.net [64.50.29.181]) by reefedge.reefedge.com (8.10.1/8.10.1) with SMTP id f5KJwg229051 for ; Wed, 20 Jun 2001 15:58:42 -0400 From: "Rangachari Anand" To: Subject: Gradual increase in CPU utilization by postmaster Date: Wed, 20 Jun 2001 15:59:05 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200106/134 X-Sequence-Number: 1701 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. We have been able to reproduce it with the following shell script which we use to feed a continuous stream of updates to the DB: ----------------- #!/bin/sh while ( true ) ; do echo "update ruser set cname='xyz' where userid='abcdef'; " done ----------------- We connect it to psql to send the updates to the DB as follows: ./psql_perf2.sh | psql -U AAA DBNAME -q When we start the script, the "top" command shows about 75% CPU utilization but this gradually increases to 97% in a few minutes. Could anyone suggest a reason for this behavior? Thanks R. Anand