pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: creimer@brturbo.com.br
To: pgsql-performance@postgresql.org
Subject: Context switch storm
Date: Fri, 03 Nov 2006 08:32:13 -0200
Message-ID: <efc1d7c07cf.454afe8d@brturbo.com.br> (raw)

Hi,
 
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.
 
CPU and memory usage are ok.
 
What is producing this context switching storms?
 
It is a box with 16GB RAM and 4 XEON processors running RedHat Enterprise Linux AS.
 
Should I disable Hyperthreading?
 
Thank you in advance!
 
Reimer

view thread (22+ messages)  latest in thread

Message-ID: <efc1d7c07cf.454afe8d@brturbo.com.br>
Permalink:  ../efc1d7c07cf.454afe8d@brturbo.com.br/
Also on:    postgresql.org/message-id/efc1d7c07cf.454afe8d@brturbo.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: creimer@brturbo.com.br
  Subject: Re: Context switch storm
  In-Reply-To: <efc1d7c07cf.454afe8d@brturbo.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