]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] Prevent AIL lock contention during transaction completion
authorDavid Chinner <dgc@sgi.com>
Thu, 6 Mar 2008 02:44:06 +0000 (13:44 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 01:38:01 +0000 (11:38 +1000)
commitb589334c7a1fff85d2f009d5db4c34fad48925e9
treebc46a7f50dbc5f8c09e86374cea63192ee2f146b
parent3354040897f828644be6ca5783588e9f64a53b8e
[XFS] Prevent AIL lock contention during transaction completion

When hundreds of processors attempt to commit transactions at the same
time, they can contend on the AIL lock when updating the tail LSN held in
the in-core log structure.

At the moment, the tail LSN is only needed when actually writing out an
iclog, so it really does not need to be updated on every single
transaction completion - only those that result in switching iclogs and
flushing them to disk.

The result is that we reduce the number of times we need to grab the AIL
lock and the log grant lock by up to two orders of magnitude on large
processor count machines. The problem has previously been hidden by AIL
lock contention walking the AIL list which was recently solved and
uncovered this issue.

SGI-PV: 975671
SGI-Modid: xfs-linux-melb:xfs-kern:30504a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_log.c