Re: experimental: replace s_lock spinlock code with pthread_mutex on linux

From: Nils Goroll <slink(at)schokola(dot)de>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: experimental: replace s_lock spinlock code with pthread_mutex on linux
Date: 2012-06-27 10:10:47
Message-ID: 4FEADC27.30100@schokola.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>> Using futexes directly could be even cheaper.
> Note that below this you only have the futex(2) system call.
I was only referring to the fact that we could save one function and one library
call, which could make a difference for the uncontended case.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-06-27 10:33:02 Re: [PATCH 01/16] Overhaul walsender wakeup handling
Previous Message Asif Naeem 2012-06-27 09:51:20 plpython issue with Win64 (PG 9.2)