Skip to content

btrfs: some performance improvements for dbench alike workloads

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: fix race causing unnecessary inode logging during link and renamefs/btrfs/tree-log.c+2 -30 replies
2/6btrfs: fix race that results in logging old extents during a fast fsyncfs/btrfs/tree-log.c+1 -30 replies
3/6btrfs: fix race that causes unnecessary logging of ancestor inodesfs/btrfs/tree-log.c+2 -40 replies
4/6btrfs: fix race that makes inode logging fallback to transaction commitfs/btrfs/tree-log.c+8 -120 replies
5/6btrfs: fix race leading to unnecessary transaction commit when logging inodefs/btrfs/tree-log.c+0 -100 replies
6/6btrfs: do not block inode logging for so long during transaction commitfs/btrfs/ctree.h fs/btrfs/tree-log.c+40 -1812 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] btrfs: some performance improvements for dbench alike workloads

From: Filipe Manana <[email protected]>

This patchset mostly fixes some races that result in an fsync falling back to a transaction commit unncessarily or logging more metadata than it needs to. It also addresses link and rename operations logging inodes that were fsynced in the previous transaction but they don't need to be logged in the current transaction. All these cases can be triggered often by dbench.

Finally it avoids blocking an fsync for a significant time window when the previous transaction is still committing. All these together resulted in about +12% throughput with dbench and -8% maximum latency, as mentioned in the changelog of the last patch.

There will be more changes to improve performance with dbench or similar workloads, but these have been cooking and testing for about one week and are independent from what's coming next.

Filipe Manana (6):
btrfs: fix race causing unnecessary inode logging during link and rename
btrfs: fix race that results in logging old extents during a fast fsync
btrfs: fix race that causes unnecessary logging of ancestor inodes
btrfs: fix race that makes inode logging fallback to transaction commit
btrfs: fix race leading to unnecessary transaction commit when logging inode
btrfs: do not block inode logging for so long during transaction commit

 fs/btrfs/ctree.h    |   2 +-
 fs/btrfs/tree-log.c | 101 +++++++++++++++++++++++---------------------
 2 files changed, 53 insertions(+), 50 deletions(-)
Signature · 1 line
2.28.0