pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: S.F. Lee <sflee_tw@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Postmaster is getting bigger
Date: Wed, 24 May 2000 18:56:29 -0400
Message-ID: <12897.959208989@sss.pgh.pa.us> (raw)
In-Reply-To: <20000518080747.1512.qmail@web205.mail.yahoo.com>
References: <20000518080747.1512.qmail@web205.mail.yahoo.com>

"S.F. Lee" <sflee_tw@yahoo.com> writes:
>   I am revamping a computer system by Red Hat 6.0 +
> PostgreSQL 6.5.3 + ecpg 2.7 + C. The user interface is
> perl Pg + Apache. Everything seems fine, but when I
> use "top" to display long term CPU processes, I find
> the postmaster is getting bigger in step of 4 kb and
> performance is getting worse GRADUALLY (It seems that
> perl + Pg would make the size expansion more quickly
> than ECPG). Here are some data display in "top": 

Are your clients connecting via TCP/IP, or via Unix sockets?

We recently discovered that the getprotobyname() library function
leaks memory in RH6.0 (at least with libc.so.6).  Since the postmaster
was calling that for each connection accepted via TCP, you'd see
steady growth of the postmaster over time on platforms with this bug.
Tim Brookes reported the leakage rate to be about 300 bytes per
connection cycle.

While this problem doesn't directly affect performance, it could slow
things down indirectly --- for example by making fork() take longer to
launch a new backend.

This is fixed for 7.0.1 by not calling getprotobyname().  If you are
in a hurry see the nightly snapshot tarballs...

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <12897.959208989@sss.pgh.pa.us>
Permalink:  ../12897.959208989@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12897.959208989@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sflee_tw@yahoo.com
  Subject: Re: Postmaster is getting bigger
  In-Reply-To: <12897.959208989@sss.pgh.pa.us>

* 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