Skip to content

btrfs: more performance improvements for dbench workloads

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7btrfs: remove unnecessary directory inode item update when deleting dir entryfs/btrfs/tree-log.c+4 -350 replies
2/7btrfs: stop setting nbytes when filling inode item for loggingfs/btrfs/tree-log.c+8 -10 replies
3/7btrfs: avoid logging new ancestor inodes when logging new inodefs/btrfs/tree-log.c+33 -20 replies
4/7btrfs: skip logging directories already logged when logging all parentsfs/btrfs/tree-log.c+5 -00 replies
5/7btrfs: skip logging inodes already logged when logging new entriesfs/btrfs/tree-log.c+1 -10 replies
6/7btrfs: remove unnecessary check_parent_dirs_for_sync()fs/btrfs/tree-log.c+15 -1063 replies
7/7btrfs: make concurrent fsyncs wait less when waiting for a transaction commitfs/btrfs/file.c fs/btrfs/transaction.c fs/btrfs/transaction.h+34 -81 reply

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosef Bacik
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] btrfs: more performance improvements for dbench workloads

From: Filipe Manana <[email protected]>

The following patchset brings one more batch of performance improvements with dbench workloads, or anything that mixes file creation, file writes, renames, unlinks, etc with fsync like dbench does. This patchset is mostly based on avoiding logging directory inodes multiple times when not necessary, falling back to transaction commits less frequently and often waiting less time for transaction commits to complete. Performance results are listed in the change log of the last patch, but in short, I've experienced a reduction of maximum latency up to about -40% and throuhput gains up to about +6%.

Filipe Manana (7):
btrfs: remove unnecessary directory inode item update when deleting dir entry
btrfs: stop setting nbytes when filling inode item for logging
btrfs: avoid logging new ancestor inodes when logging new inode
btrfs: skip logging directories already logged when logging all parents
btrfs: skip logging inodes already logged when logging new entries
btrfs: remove unnecessary check_parent_dirs_for_sync()
btrfs: make concurrent fsyncs wait less when waiting for a transaction commit

 fs/btrfs/file.c        |   1 +
 fs/btrfs/transaction.c |  39 +++++++--
 fs/btrfs/transaction.h |   2 +
 fs/btrfs/tree-log.c    | 195 ++++++++++++-----------------------------
 4 files changed, 92 insertions(+), 145 deletions(-)
Signature · 1 line
2.28.0