Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5KKVaa40687 for ; Wed, 20 Jun 2001 16:31:36 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f5KK3Kf05559 for pgsql-admin@postgresql.org; Wed, 20 Jun 2001 16:03:20 -0400 (EDT) (envelope-from news) From: Rangachari Anand X-Newsgroups: comp.databases.postgresql.admin Subject: High CPU utilization by postmaster Date: Wed, 20 Jun 2001 16:03:40 -0400 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 35 Message-ID: <3B31019C.8010508@reefedge.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: scrappy@hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us To: pgsql-admin@postgresql.org X-Archive-Number: 200106/138 X-Sequence-Number: 1705 (Sorry if this goes out twice) 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