• Dave Chinner's avatar
    xfs: introduce per-cpu CIL tracking structure · af1c2146
    Dave Chinner authored
    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: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    
    af1c2146
xfs_super.c 59.2 KB