pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rangachari Anand <anand@reefedge.com>
To: pgsql-admin@postgresql.org
Subject: High CPU utilization by postmaster
Date: Wed, 20 Jun 2001 16:03:40 -0400
Message-ID: <3B31019C.8010508@reefedge.com> (raw)

(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




Message-ID: <3B31019C.8010508@reefedge.com>
Permalink:  ../3B31019C.8010508@reefedge.com/
Also on:    postgresql.org/message-id/3B31019C.8010508@reefedge.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: anand@reefedge.com
  Subject: Re: High CPU utilization by postmaster
  In-Reply-To: <3B31019C.8010508@reefedge.com>
  References: <3B31019C.8010508@reefedge.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox