Skip to content

RFC XFS: dynamic busy extent tracking

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7XFS: rename xfs_get_peragfs/xfs/linux-2.6/xfs_sync.c fs/xfs/xfs_iget.c fs/xfs/xfs_inode.c +1 more+34 -221 reply
2/7XFS: replace fixed size busy extent array with an rbtreefs/xfs/xfs_ag.h fs/xfs/xfs_alloc.c fs/xfs/xfs_alloc.h +5 more+161 -1452 replies
3/7XFS: Don't immediately reallocate busy extentsfs/xfs/xfs_alloc.c+380 -3990 replies
4/7XFS: Don't use log forces when busy extents are allocatedfs/xfs/xfs_ag.h fs/xfs/xfs_alloc.c+36 -580 replies
5/7XFS: Do not classify freed allocation btree blocks as busyfs/xfs/xfs_ag.h fs/xfs/xfs_alloc.c fs/xfs/xfs_alloc.h +1 more+145 -590 replies
6/7XFS: Avoid busy extent ranges rather than the entire extentfs/xfs/xfs_ag.h fs/xfs/xfs_alloc.c+248 -1920 replies
7/7XFS: Simplify transaction busy extent trackingfs/xfs/xfs_ag.h fs/xfs/xfs_alloc.c fs/xfs/xfs_trans.c +3 more+21 -1520 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC, PATCH 0/7] XFS: dynamic busy extent tracking

The busy extent tracking in XFS is currently very static and has some performance issues. We can only track 128 busy extents per AG, and when we overflow this we fall back to synchronous transactions. Also, every time we re-use a busy extent we cause a synchronous log force, which stops all allocation and freeing in that AG while the log force is in progress.

This limits the amount of transaction aggregation we can potentially do because of the fact that we do log forces when a busy extent is found which would effectively close off an aggregating transaction group. It is relatively easy to trigger overflows or reuse of busy extents and cause thіs to occur.

Further, when it comes to issuing block discard messages to tell the lower layer that we're finished with a block, we need to track all freed extents, not just those we can fit in a static array. Hence adding block discard functionality to XFS also requires us to rework the way we track busy extents.

This patch series is a work in progress. It's probably better to look at the finished product rather than the inividual patches because the later patches undo a lot of the earlier factoring and shuffling. I'll need to completely redo the series before final subbbmission. However, I'm posting this now because it passes XFSQA and it seems to be a good time to post it for comments before I start cleaning it up....