RE: Re: Strangeness in xid allocation / snapshot setup

From: "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: RE: Re: Strangeness in xid allocation / snapshot setup
Date: 2001-07-12 19:11:58
Message-ID: 3705826352029646A3E91C53F7189E320166CA@sectorbase2.sectorbase.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > Isn't spinlock just a few ASM instructions?... on most platforms...
>
> If we change over to something that supports read vs write locking,
> it's probably going to be rather more than that ... right now, I'm
> pretty dissatisfied with the performance of our spinlocks under load.

We shouldn't use light locks everywhere. Updating/reading MyProc.xid
is very good place to use simple spinlocks... or even better mutexes.

Vadim

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Myers 2001-07-12 19:14:05 Re: Re: SOMAXCONN (was Re: Solaris source code)
Previous Message Tom Lane 2001-07-12 19:11:00 Re: Rule recompilation