btrfs: some performance improvements for dbench alike workloads
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | btrfs: fix race causing unnecessary inode logging during link and renamefs/ | +2 | 0 replies | |
| 2/6 | btrfs: fix race that results in logging old extents during a fast fsyncfs/ | +1 | 0 replies | |
| 3/6 | btrfs: fix race that causes unnecessary logging of ancestor inodesfs/ | +2 | 0 replies | |
| 4/6 | btrfs: fix race that makes inode logging fallback to transaction commitfs/ | +8 | 0 replies | |
| 5/6 | btrfs: fix race leading to unnecessary transaction commit when logging inodefs/ | +0 | 0 replies | |
| 6/6 | btrfs: do not block inode logging for so long during transaction commitfs/ fs/ | +40 | 12 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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