]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: introduce per-cpu CIL tracking structure
authorDave Chinner <dchinner@redhat.com>
Fri, 1 Jul 2022 16:13:52 +0000 (02:13 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 1 Jul 2022 16:13:52 +0000 (02:13 +1000)
commit84d5d10d50bdf37f5b66f0c064ff1e083a8094be
tree4e5fb2724a8e0a4aa61394670feab0d9e48ecb60
parent7efb821a31d5c29877ec976eebc1dbec8af67d6d
xfs: introduce per-cpu CIL tracking structure

The CIL push lock is highly contended on larger machines, becoming a
hard bottleneck that about 700,000 transaction commits/s on >16p
machines. To address this, start moving the CIL tracking
infrastructure to utilise per-CPU structures.

We need to track the space used, the amount of log reservation space
reserved to write the CIL, the log items in the CIL and the busy
extents that need to be completed by the CIL commit.  This requires
a couple of per-cpu counters, an unordered per-cpu list and a
globally ordered per-cpu list.

Create a per-cpu structure to hold these and all the management
interfaces needed, as well as the hooks to handle hotplug CPUs.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_super.c