pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlos H. Reimer <carlos.reimer@opendb.com.br>
To: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: RES: Context switching
Date: Tue, 21 Nov 2006 10:44:23 -0200
Message-ID: <PEEPKDFEHHEMKBBFPOOKKEAEDJAA.carlos.reimer@opendb.com.br> (raw)
In-Reply-To: <200611070942.26663.josh@agliodbs.com>

Hi,

I have not seen the iowaits numbers and yes, it is a xeon, four processors.

With the 7.4 version the problem did not exist but I think Tom Lane cleared why this behavior with 8.0 and 8.1 versions in http://archives.postgresql.org/pgsql-performance/2006-11/msg00050.php

Reimer


> -----Mensagem original-----
> De: Josh Berkus [mailto:josh@agliodbs.com]
> Enviada em: terça-feira, 7 de novembro de 2006 15:42
> Para: pgsql-performance@postgresql.org; carlos.reimer@opendb.com.br
> Assunto: Re: [PERFORM] Context switching
> 
> 
> Carlos,
> 
> > We've migrated one of our servers from pg 7.4 to 8.1 and from times to
> > times (4 hours) the server start doing a lot of context 
> switching and all
> > transactions become very slow.
> >
> > The average context switching for this server as vmstat shows 
> is 1 but when
> > the problem occurs it goes to 250000.
> 
> Context Switching is a symptom rather than a cause.   What's most likely 
> happening is that you have a combined heavy-CPU and heavy-IO 
> workload, so you 
> have bursts of CPU activity stalled by iowaits.
> 
> Can you check the rate of iowaits during the "storm" periods?
> 
> Also, is this Xeon?   And are you saying that you *didn't* have 
> this issue 
> under 7.4?
> 
> -- 
> Josh Berkus
> PostgreSQL @ Sun
> San Francisco
> 
> 




view thread (2+ messages)

Message-ID: <PEEPKDFEHHEMKBBFPOOKKEAEDJAA.carlos.reimer@opendb.com.br>
Permalink:  ../PEEPKDFEHHEMKBBFPOOKKEAEDJAA.carlos.reimer@opendb.com.br/
Also on:    postgresql.org/message-id/PEEPKDFEHHEMKBBFPOOKKEAEDJAA.carlos.reimer@opendb.com.br

 · 

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: carlos.reimer@opendb.com.br, josh@agliodbs.com
  Subject: Re: RES: Context switching
  In-Reply-To: <PEEPKDFEHHEMKBBFPOOKKEAEDJAA.carlos.reimer@opendb.com.br>

* 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