Re: [PATCH 1/2] ipc semaphores: reduce ipc_lock contention in semtimedop

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Manfred Spraul
Date: Wednesday, April 14, 2010 - 9:16 am

On 04/13/2010 08:19 PM, Chris Mason wrote:
How do you want to determine the sequence number?
Is atomic_inc_return() on a per-semaphore array counter sufficiently fast?

What is the oracle workload, which multi-sembuf operations does it use?
How many semaphores are in one array?

When the last optimizations were written, I've searched a bit:
- postgres uses per-process semaphores, with small semaphore arrays.
     [process sleeps on it's own semaphore and is woken up by someone 
else when it can make progress]
- with google, I couldn't find anything relevant that uses multi-sembuf 
semop() calls.

And I agree with Nick: We should be careful about changing the API.

--
     Manfred
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] Optimize semtimedop, Chris Mason, (Mon Apr 12, 11:49 am)
Re: [PATCH 1/2] ipc semaphores: reduce ipc_lock contention ..., Manfred Spraul, (Wed Apr 14, 9:16 am)