pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kostyrka <andreas@kostyrka.org>
To: Richard Huxton <dev@archonet.com>
Cc: creimer@brturbo.com.br
Cc: pgsql-performance@postgresql.org
Subject: Re: Context switch storm
Date: Fri, 03 Nov 2006 17:16:31 +0100
Message-ID: <1162570591.16439.21.camel@andi-lap> (raw)
In-Reply-To: <454B5461.4030802@archonet.com>
References: <efc1d7c07cf.454afe8d@brturbo.com.br>
	<454B3B75.6@archonet.com>
	<c4069b084d04.454b27e4@brturbo.com.br>
	<454B5461.4030802@archonet.com>

Am Freitag, den 03.11.2006, 14:38 +0000 schrieb Richard Huxton:
> creimer@brturbo.com.br wrote:
> >> If you can keep your numbers of clients down below the critical 
> >> level, you should find the overall workload is fine.
> > 
> > We have at about 600 connections. Is this a case to use a connection
> > pool (pg_pool) system?
> 
> Possibly - that should help. I'm assuming that most of your queries are 
> very short, so you could probably get that figure down a lot lower. 
> You'll keep the same amount of queries running through the system, just 
> queue them up.
that have 
Ah, yes, now that you mention, avoid running many queries with a
similiar timing behaviour, PG8 seems to have a lock design that's very
bad for the memory architecture of the Xeons.

So running SELECT * FROM table WHERE id=1234567890; from 600 clients in
parallel can be quite bad than say a complicated 6-way join :(

Andreas

> 
> > And why this happens only with 8.0 and 8.1 and not with the 7.4?
> 
> Not sure. Maybe 8.x is making more intensive use of your memory, 
> possibly with a change in your plans.
> 

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (22+ messages)  latest in thread

Message-ID: <1162570591.16439.21.camel@andi-lap>
Permalink:  ../1162570591.16439.21.camel@andi-lap/
Also on:    postgresql.org/message-id/1162570591.16439.21.camel@andi-lap

 · 

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-performance@postgresql.org
  Cc: andreas@kostyrka.org, dev@archonet.com, creimer@brturbo.com.br
  Subject: Re: Context switch storm
  In-Reply-To: <1162570591.16439.21.camel@andi-lap>

* 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