From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-bugs-owner@postgresql.org
To: pgsql-performance@postgresql.org
To: RD黄永卫 <yongwei_huang@temp.gtmc.com.cn>
Subject: Re: How to diagnose a *context-switching * storm problem ?
Date: Mon, 12 Apr 2010 16:39:48 -0500
Message-ID: <4BC34CD40200002500030765@gw.wicourts.gov> (raw)
In-Reply-To: <EDA3764BC9DBA043AABB8FF57D73237801B5CEE8@QFWA0016.gtmcl.com>
References: <EDA3764BC9DBA043AABB8FF57D73237801B5CEE8@QFWA0016.gtmcl.com>
RD黄永卫<yongwei_huang@temp.gtmc.com.cn> wrote:
> My database server get sluggish suddenly
> [vmstat output showing over 200,000 context switches per second]
> My postgres version: 8.1.3;
Upgrading should help. Later releases are less vulnerable to this.
> Could you please give me some advice ?
A connection pooler can often help. (e.g., pgpool or pgbouncer)
-Kevin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, pgsql-bugs-owner@postgresql.org, yongwei_huang@temp.gtmc.com.cn
Subject: Re: How to diagnose a *context-switching * storm problem ?
In-Reply-To: <4BC34CD40200002500030765@gw.wicourts.gov>
References: <EDA3764BC9DBA043AABB8FF57D73237801B5CEE8@QFWA0016.gtmcl.com> <4BC34CD40200002500030765@gw.wicourts.gov>
* 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