Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id D71439FB331 for ; Fri, 3 Nov 2006 08:34:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 32342-02 for ; Fri, 3 Nov 2006 12:34:35 +0000 (UTC) X-Greylist: delayed 01:10:04.771974 by SQLgrey- Received: from DCSG0029.ouro.cydcmail.com.br (smtp-out.ouro.cydcmail.com.br [201.24.29.62]) by postgresql.org (Postfix) with ESMTP id 6DF799FB32F for ; Fri, 3 Nov 2006 08:34:35 -0400 (AST) Received: from brturbo.com.br ([10.160.209.144]) by smtp-4.ouro.cydcmail.com.br (MSG) with ESMTP id <0J850062WH9W9J00@smtp-4.ouro.cydcmail.com.br> for pgsql-performance@postgresql.org; Fri, 03 Nov 2006 07:32:20 -0300 (BrT) Received: from [10.160.208.147] (Forwarded-For: [10.160.208.96]) by mailstore-1.ouro.cydcmail.com.br (mshttpd); Fri, 03 Nov 2006 08:32:13 -0200 Date: Fri, 03 Nov 2006 08:32:13 -0200 From: creimer@brturbo.com.br Subject: Context switch storm To: pgsql-performance@postgresql.org Message-id: MIME-version: 1.0 X-Mailer: OURO WEBMAIL Content-type: multipart/alternative; boundary="Boundary_(ID_0fU3rQ422Nh3djw5QMH0xA)" Content-language: pt X-Accept-Language: pt X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.871 tagged_above=0 required=5 tests=BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, HTML_MESSAGE, NO_REAL_NAME X-Spam-Level: ** X-Archive-Number: 200611/38 X-Sequence-Number: 21808 This is a multi-part message in MIME format. --Boundary_(ID_0fU3rQ422Nh3djw5QMH0xA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline 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 --Boundary_(ID_0fU3rQ422Nh3djw5QMH0xA) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline
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
--Boundary_(ID_0fU3rQ422Nh3djw5QMH0xA)--