Skip to content

Performance fixes for 9p filesystem

Eric Van Hensbergen linux-fsdevel lkml v9fs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 28 repliesIn review
  2. v311 patches 7 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11net/9p: Adjust maximum MSIZE to account for p9 headernet/9p/client.c+5 -11 reply
2/11fs/9p: Expand setup of writeback cache to all levelsfs/9p/v9fs.c fs/9p/vfs_addr.c fs/9p/vfs_file.c +2 more+10 -111 reply
3/11fs/9p: Consolidate file operations and add readahead and writebackfs/9p/v9fs.c fs/9p/v9fs.h fs/9p/v9fs_vfs.h +4 more+98 -1575 replies
4/11fs/9p: Remove unnecessary superblock flagsfs/9p/vfs_super.c+1 -33 replies
5/11fs/9p: allow disable of xattr support on mountDocumentation/filesystems/9p.rst fs/9p/v9fs.c fs/9p/v9fs.h +1 more+14 -31 reply
6/11net/9p: fix bug in client create for .Lnet/9p/client.c+1 -11 reply
7/119p: Add additional debug flags and open modesinclude/net/9p/9p.h+5 -02 replies
8/11fs/9p: Add new mount modesfs/9p/v9fs.c fs/9p/v9fs.h+18 -32 replies
9/11fs/9p: fix error reporting in v9fs_dir_releasefs/9p/vfs_dir.c+4 -31 reply
10/11fs/9p: writeback mode fixesDocumentation/filesystems/9p.rst fs/9p/fid.c fs/9p/fid.h +6 more+153 -18315 replies
11/11fs/9p: Fix revalidatefs/9p/vfs_dentry.c+1 -21 reply

Reviews trailers per patch

6 of 11 patches have a Reviewed-by or Acked-by.

PatchDominique Martinet
1/11R-b
2/11R-b
3/11R-b R-b
4/11
5/11R-b
6/11R-b
7/11
8/11
9/11R-b
10/11
11/11

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

Read the v4 thread

Cover letter [PATCH v4 00/11] Performance fixes for 9p filesystem

This is the fourth version of a patch series which adds a number of features to improve read/write performance in the 9p filesystem. Mostly it focuses on fixing caching to help utilize the recently increased MSIZE limits and also fixes some problematic behavior within the writeback code.

All together, these show roughly 10x speed increases on simple file transfers over no caching for readahead mode. Future patch sets will improve cache consistency and directory caching, which should benefit loose mode.

This iteration of the patch incorporates an important fix for writeback which uses a stronger mechanism to flush writeback on close of files and addresses observed bugs in previous versions of the patch for writeback, mmap, and loose cache modes.

These patches are also available on github:
https://github.com/v9fs/linux/tree/ericvh/for-next
and on kernel.org:
https://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs.git

Tested against qemu, cpu, and diod with fsx, dbench, and postmark in every caching mode.

I'm gonna definitely submit the first couple patches as they are fairly harmless - but would like to submit the whole series to the upcoming merge window. Would appreciate reviews.

Eric Van Hensbergen (11):
net/9p: Adjust maximum MSIZE to account for p9 header fs/9p: Expand setup of writeback cache to all levels fs/9p: Consolidate file operations and add readahead and writeback fs/9p: Remove unnecessary superblock flags
fs/9p: allow disable of xattr support on mount
net/9p: fix bug in client create for .L
9p: Add additional debug flags and open modes
fs/9p: Add new mount modes
fs/9p: fix error reporting in v9fs_dir_release
fs/9p: writeback mode fixes
fs/9p: Fix revalidate

 Documentation/filesystems/9p.rst |  26 ++--
 fs/9p/fid.c                      |  49 +++-----
 fs/9p/fid.h                      |  33 ++++-
 fs/9p/v9fs.c                     |  49 +++++---
 fs/9p/v9fs.h                     |  10 +-
 fs/9p/v9fs_vfs.h                 |   4 -
 fs/9p/vfs_addr.c                 |  24 ++--
 fs/9p/vfs_dentry.c               |   3 +-
 fs/9p/vfs_dir.c                  |  10 +-
 fs/9p/vfs_file.c                 | 205 +++++++------------------------
 fs/9p/vfs_inode.c                | 102 +++++++--------
 fs/9p/vfs_inode_dotl.c           |  69 ++++++-----
 fs/9p/vfs_super.c                |  28 +++--
 include/net/9p/9p.h              |   5 +
 net/9p/client.c                  |   8 +-
 15 files changed, 284 insertions(+), 341 deletions(-)

--
2.37.2