]> Git Repo - linux.git/commit
ipc/sem.c: sem optimise undo list search
authorNick Piggin <[email protected]>
Wed, 16 Dec 2009 00:47:28 +0000 (16:47 -0800)
committerLinus Torvalds <[email protected]>
Wed, 16 Dec 2009 15:20:09 +0000 (07:20 -0800)
commitbf17bb717759d50a2733a7a8157a7c4a25d93abc
tree22468665036b37922664529df976c890c5bed2d0
parent7d6feeb287c61aafa88f06345387b1188edf4b86
ipc/sem.c: sem optimise undo list search

Around a month ago, there was some discussion about an improvement of the
sysv sem algorithm: Most (at least: some important) users only use simple
semaphore operations, therefore it's worthwile to optimize this use case.

This patch:

Move last looked up sem_undo struct to the head of the task's undo list.
Attempt to move common entries to the front of the list so search time is
reduced.  This reduces lookup_undo on oprofile of problematic SAP workload
by 30% (see patch 4 for a description of SAP workload).

Signed-off-by: Nick Piggin <[email protected]>
Signed-off-by: Manfred Spraul <[email protected]>
Cc: Pierre Peiffer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
ipc/sem.c
This page took 0.041846 seconds and 4 git commands to generate.