Re: How to cripple a postgres server

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Robert Norris <srn(at)commsecure(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to cripple a postgres server
Date: 2002-05-28 04:24:44
Message-ID: 295.1022559884@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Robert Norris <srn(at)commsecure(dot)com(dot)au> writes:
> One big difference, though, is that with the vacuum problem, the CPU
> used is almost all (99%) system time; loading up the db with lots of
> queries increases user time mostly, with little system time...

Hmm, that's a curious point; leaves one wondering about possible kernel
bugs.

> In any event, it seems a bug that merely having connections open causes
> this problem! They aren't even in transactions...

If the problem is that you've launched far more backends than the system
can really support, I'd have no hesitation in writing it off as user
error. "Idle" processes are not without cost. But at this point
I can't tell whether that's the case, or whether you're looking at a
genuine performance bug in either Postgres or the kernel.

Can you run strace (or truss or kernel-call-tracer-of-your-choice) on
the postmaster, and also on one of the putatively idle backends, so
we can see some more data about what's happening?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Snyder 2002-05-28 04:37:17 Re: Invalid length of startup packet
Previous Message Stephen Robert Norris 2002-05-28 04:03:39 Re: How to cripple a postgres server