pgsql: Force the size and alignment of LWLock array entries to be either

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Force the size and alignment of LWLock array entries to be either
Date: 2005-09-16 00:30:06
Message-ID: 20050916003006.3A763D6EA2@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Force the size and alignment of LWLock array entries to be either 16 or 32
bytes. This shouldn't make any difference on x86 machines, where the size
happened to be 16 bytes anyway, but on 64-bit machines and machines with
slock_t int or wider, it will speed array indexing and hopefully reduce
SMP cache contention effects. Per recent experimentation.

Modified Files:
--------------
pgsql/src/backend/storage/lmgr:
lwlock.c (r1.29 -> r1.30)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/lwlock.c.diff?r1=1.29&r2=1.30)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2005-09-16 03:12:34 pgsql: Add note about pg_autovacuum settings not being saved on a dump,
Previous Message Neil Conway 2005-09-15 17:44:27 pgsql: Copy-editing for GiST README.