Skip site navigation (1) Skip section navigation (2)

pgsql: When LWLOCK_STATS is defined, count spindelays.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: When LWLOCK_STATS is defined, count spindelays.
Date: 2012-06-26 20:06:14
Message-ID: E1Sjc1e-000367-Hl@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
When LWLOCK_STATS is defined, count spindelays.

When LWLOCK_STATS is *not* defined, the only change is that
SpinLockAcquire now returns the number of delays.

Patch by me, review by Jeff Janes.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b79ab00144e64217d418fde884bca8ea58fbd4a4

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c |   12 +++++++++---
src/backend/storage/lmgr/s_lock.c |    3 ++-
src/include/storage/s_lock.h      |   10 ++++------
3 files changed, 15 insertions(+), 10 deletions(-)

pgsql-committers by date

Next:From: Robert HaasDate: 2012-06-26 20:48:54
Subject: pgsql: Allow pg_terminate_backend() to be used on backends withmatchin
Previous:From: Tom LaneDate: 2012-06-26 18:36:38
Subject: pgsql: Cope with smaller-than-normal BLCKSZ setting in SPGiST indexeso

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group