From 499abb0c0f21cb861c5af1d49a06469f3cfcc1eb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 29 Sep 2001 04:02:27 +0000 Subject: Implement new 'lightweight lock manager' that's intermediate between existing lock manager and spinlocks: it understands exclusive vs shared lock but has few other fancy features. Replace most uses of spinlocks with lightweight locks. All remaining uses of spinlocks have very short lock hold times (a few dozen instructions), so tweak spinlock backoff code to work efficiently given this assumption. All per my proposal on pghackers 26-Sep-01. --- doc/src/sgml/wal.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/wal.sgml b/doc/src/sgml/wal.sgml index 16f4e6c6eb4..3314088c1c2 100644 --- a/doc/src/sgml/wal.sgml +++ b/doc/src/sgml/wal.sgml @@ -1,4 +1,4 @@ - + Write-Ahead Logging (<acronym>WAL</acronym>) @@ -146,7 +146,7 @@ The WAL buffers and control structure are in shared memory, and are handled by the backends; they are protected - by spinlocks. The demand on shared memory is dependent on the + by lightweight locks. The demand on shared memory is dependent on the number of buffers; the default size of the WAL buffers is 64 kB. -- cgit v1.2.3