From: Joe Conway <mail@joeconway.com>
To: Dirk Lutzebäck <lutzeb@aeccom.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Toooo many context switches (maybe SLES8?)
Date: Thu, 15 Apr 2004 09:38:33 -0700
Message-ID: <407EBA89.6080007@joeconway.com> (raw)
In-Reply-To: <407EB86B.6080801@aeccom.com>
References: <407E7B99.3050306@aeccom.com>
<407EB1E5.4030600@joeconway.com>
<407EB86B.6080801@aeccom.com>
Dirk Lutzebäck wrote:
> Joe, do you know where I should look in the 7.4.2 code to find this out?
I think I was wrong. I just looked in CVS and found the commit I was
thinking about:
http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/storage/lmgr/s_lock.c.diff?r1=1....http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/storage/s_lock.h.diff?r1=1.123&a...
=========================
Revision 1.23 / (download) - [select for diffs] , Sat Dec 27 20:58:58
2003 UTC (3 months, 2 weeks ago) by tgl
Changes since 1.22: +5 -1 lines
Diff to previous 1.22
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.
Joe
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: mail@joeconway.com, lutzeb@aeccom.com
Subject: Re: Toooo many context switches (maybe SLES8?)
In-Reply-To: <407EBA89.6080007@joeconway.com>
* 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