Re: High context switches occurring

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Anjan Dave <adave(at)vantage(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Vivek Khera <vivek(at)khera(dot)org>, Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: High context switches occurring
Date: 2005-11-22 20:37:47
Message-ID: 1132691867.28788.42.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, 2005-11-22 at 14:33, Anjan Dave wrote:
> Is there any way to get a temporary relief from this Context Switching
> storm? Does restarting postmaster help?
>
> It seems that I can recreate the heavy CS with just one SELECT
> statement...and then when multiple such SELECT queries are coming in,
> things just get hosed up until we cancel a bunch of queries...

Is your machine a hyperthreaded one? Some folks have found that turning
off hyper threading helps. I knew it made my servers better behaved in
the past.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2005-11-22 20:38:31 Re: High context switches occurring
Previous Message Anjan Dave 2005-11-22 20:33:26 Re: High context switches occurring