Re: Overhead cost of Serializable Snapshot Isolation - Mailing list pgsql-hackers

From Dan Ports
Subject Re: Overhead cost of Serializable Snapshot Isolation
Date
Msg-id 20111010194550.GD7608@csail.mit.edu
Whole thread Raw
In response to Overhead cost of Serializable Snapshot Isolation  (Greg Sabino Mullane <greg@endpoint.com>)
List pgsql-hackers
On Mon, Oct 10, 2011 at 02:25:59PM -0400, Greg Sabino Mullane wrote:
> I agree it is better versus SELECT FOR, but what about repeatable read versus
> the new serializable? How much overhead is there in the 'monitoring of
> read/write dependencies'? This is my only concern at the moment. Are we 
> talking insignificant overhead? Minor? Is it measurable? Hard to say without 
> knowing the number of txns, number of locks, etc.?

I'd expect that in most cases the main cost is not going to be overhead
from the lock manager but rather the cost of having transactions
aborted due to conflicts. (But the rollback rate is extremely
workload-dependent.)

We've seen CPU overhead from the lock manager to be a few percent on a
CPU-bound workload (in-memory pgbench). Also, if you're using a system
with many cores and a similar workload, SerializableXactHashLock might
become a scalability bottleneck.

Dan

-- 
Dan R. K. Ports              MIT CSAIL                http://drkp.net/


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Overhead cost of Serializable Snapshot Isolation
Next
From: "Kevin Grittner"
Date:
Subject: Re: Overhead cost of Serializable Snapshot Isolation