pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yasuo Ohgaki <yasuo_ohgaki@hotmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Rangachari Anand <anand@reefedge.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Gradual increase in CPU utilization by postmaster
Date: Thu, 21 Jun 2001 15:22:56 +0900
Message-ID: <OE756Ei5InVMoyjIfzZ0000baae@hotmail.com> (raw)
References: <NHEMKEOEIKGALJPGOPLEMEOGCKAA.anand@reefedge.com>
	<11939.993095491@sss.pgh.pa.us>

> "Rangachari Anand" <anand@reefedge.com> 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






view thread (6+ messages)  latest in thread

Message-ID: <OE756Ei5InVMoyjIfzZ0000baae@hotmail.com>
Permalink:  ../OE756Ei5InVMoyjIfzZ0000baae@hotmail.com/
Also on:    postgresql.org/message-id/OE756Ei5InVMoyjIfzZ0000baae@hotmail.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: yasuo_ohgaki@hotmail.com, tgl@sss.pgh.pa.us, anand@reefedge.com
  Subject: Re: Gradual increase in CPU utilization by postmaster
  In-Reply-To: <OE756Ei5InVMoyjIfzZ0000baae@hotmail.com>
  References: <NHEMKEOEIKGALJPGOPLEMEOGCKAA.anand@reefedge.com> <11939.993095491@sss.pgh.pa.us> <OE756Ei5InVMoyjIfzZ0000baae@hotmail.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