pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: Dirk Lutzebäck <lutzeb@aeccom.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Toooo many context switches (maybe SLES8?)
Date: Thu, 15 Apr 2004 15:37:21 -0400
Message-ID: <20498.1082057841@sss.pgh.pa.us> (raw)
In-Reply-To: <407EBA89.6080007@joeconway.com>
References: <407E7B99.3050306@aeccom.com>
	<407EB1E5.4030600@joeconway.com>
	<407EB86B.6080801@aeccom.com>
	<407EBA89.6080007@joeconway.com>

Joe Conway <mail@joeconway.com> writes:
>> Improve spinlock code for recent x86 processors: insert a PAUSE
>> instruction in the s_lock() wait loop, and use test before test-and-set
>> in TAS() macro to avoid unnecessary bus traffic.  Patch from Manfred
>> Spraul, reworked a bit by Tom.

> I thought this had been committed to the 7.4 stable branch as well, but 
> it appears not.

I am currently chasing what seems to be the same issue: massive context
swapping on a dual Xeon system.  I tried back-patching the above-mentioned
patch ... it helps a little but by no means solves the problem ...

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <20498.1082057841@sss.pgh.pa.us>
Permalink:  ../20498.1082057841@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20498.1082057841@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, mail@joeconway.com, lutzeb@aeccom.com
  Subject: Re: Toooo many context switches (maybe SLES8?)
  In-Reply-To: <20498.1082057841@sss.pgh.pa.us>

* 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