From: Mark Wong <markw@osdl.org>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: neilc@samurai.com
Cc: pgsql-performance@postgresql.org
Subject: Re: futex results with dbt-3
Date: Wed, 20 Oct 2004 10:10:01 -0700
Message-ID: <20041020101001.A13359@osdl.org> (raw)
In-Reply-To: <417221B5.1050704@colorfullife.com>
References: <417221B5.1050704@colorfullife.com>
On Sun, Oct 17, 2004 at 09:39:33AM +0200, Manfred Spraul wrote:
> Neil wrote:
>
> >. In any case, the "futex patch"
> >uses the Linux 2.6 futex API to implement PostgreSQL spinlocks.
> >
> Has anyone tried to replace the whole lwlock implementation with
> pthread_rwlock? At least for Linux with recent glibcs, pthread_rwlock is
> implemented with futexes, i.e. we would get a fast lock handling without
> os specific hacks. Perhaps other os contain user space pthread locks, too.
> Attached is an old patch. I tested it on an uniprocessor system a year
> ago and it didn't provide much difference, but perhaps the scalability
> is better. You'll have to add -lpthread to the library list for linking.
I've heard that simply linking to the pthreads libraries, regardless of
whether you're using them or not creates a significant overhead. Has
anyone tried it for kicks?
Mark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: markw@osdl.org, manfred@colorfullife.com, neilc@samurai.com
Subject: Re: futex results with dbt-3
In-Reply-To: <20041020101001.A13359@osdl.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox