From: Nick Piggin Date: Wed, 16 Dec 2009 00:47:28 +0000 (-0800) Subject: ipc/sem.c: sem optimise undo list search X-Git-Tag: v2.6.33-rc1~71^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf17bb717759d50a2733a7a8157a7c4a25d93abc;p=pandora-kernel.git 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 Signed-off-by: Manfred Spraul Cc: Pierre Peiffer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed