pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Creager <Robert_Creager@LogicalChaos.org>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pg@fastcrypt.com, Josh Berkus <josh@agliodbs.com>
Cc: Dirk_Lutzebäck <lutzeb@aeccom.com>
Cc: ohp@pyrenet.fr, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Joe Conway <mail@joeconway.com>
Cc: scott.marlowe <scott.marlowe@ihs.com>
Cc: pgsql-performance@postgresql.org, Neil Conway <neilc@samurai.com>
Subject: Re: Wierd context-switching issue on Xeon
Date: Wed, 19 May 2004 19:59:26 -0600
Message-ID: <20040519195926.3c5fa3bc@thunder.mshome.net> (raw)
In-Reply-To: <200405200120.i4K1KKm06350@candle.pha.pa.us>
References: <1083512362.25096.131.camel@localhost.localdomain>
	<200405200120.i4K1KKm06350@candle.pha.pa.us>

When grilled further on (Wed, 19 May 2004 21:20:20 -0400 (EDT)),
Bruce Momjian <pgman@candle.pha.pa.us> confessed:

> 
> Did we ever come to a conclusion about excessive SMP context switching
> under load?
> 

I just figured out what was causing the problem on my system Monday.  I'm using
the pg_autovacuum daemon, and it was not vacuuming my db.  I've no idea why and
didn't get a chance to investigate.

This lack of vacuuming was causing a huge number of context switches and query
delays. the queries that normally take .1 seconds were taking 11 seconds, and
the context switches were averaging 160k/s, peaking at 190k/s

Unfortunately, I was under pressure to fix the db at the time so I didn't get a
chance to play with the patch.

I restarted the vacuum daemon, and will keep an eye on it to see if it behaves.

If the problem re-occurs, is it worth while to attempt the different patch
delay settings?

Cheers,
Rob

-- 
 19:45:40 up 21 days,  2:30,  4 users,  load average: 2.03, 2.09, 2.06
Linux 2.6.5-01 #7 SMP Fri Apr 16 22:45:31 MDT 2004

view thread (77+ messages)  latest in thread

Message-ID: <20040519195926.3c5fa3bc@thunder.mshome.net>
Permalink:  ../20040519195926.3c5fa3bc@thunder.mshome.net/
Also on:    postgresql.org/message-id/20040519195926.3c5fa3bc@thunder.mshome.net

 · 

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: Robert_Creager@LogicalChaos.org, pgman@candle.pha.pa.us, josh@agliodbs.com, lutzeb@aeccom.com, tgl@sss.pgh.pa.us, mail@joeconway.com, scott.marlowe@ihs.com, neilc@samurai.com
  Subject: Re: Wierd context-switching issue on Xeon
  In-Reply-To: <20040519195926.3c5fa3bc@thunder.mshome.net>

* 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