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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Mason
Date: Tuesday, April 13, 2010 - 12:38 pm

On Wed, Apr 14, 2010 at 05:25:51AM +1000, Nick Piggin wrote:

Detecting the dups just keeps me from deadlocking.  I'm locking each
individual semaphore in sequence, so if userland does something strange
and sends two updates to the same semaphore, the code detects that and
only locks the first one.


Since I'm avoiding the ipc lock while operating on the array, it'll help
any workload that hits on two or more semaphores in the array at
once.


I'm not in a hurry to overhaul a part of the kernel that has been stable
for a long time.  But it really needs some love I think.  I'll have more
numbers from a tpc run later this week.

-chris

--
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 ..., Chris Mason, (Tue Apr 13, 12:38 pm)