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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2012-06-26 20:48:54 pgsql: Allow pg_terminate_backend() to be used on backends with matchin
Previous Message Tom Lane 2012-06-26 18:36:38 pgsql: Cope with smaller-than-normal BLCKSZ setting in SPGiST indexes o