Skip to content

Parallelize ReadOp for multi-core performance - #205

Open
ChaitanyaKN wants to merge 2 commits into
jacobsa:masterfrom
ChaitanyaKN:parallelReadOp
Open

ChaitanyaKN wants to merge 2 commits into
jacobsa:masterfrom
ChaitanyaKN:parallelReadOp

Conversation

@ChaitanyaKN

Copy link
Copy Markdown
  • Parallelize ReadOp calls in ServeOps for multi-core performance benefit.
  • Convert to syscall.Read to allow simultaneous reads from the FUSE connection.
  • Update error handling in readMessage to handle raw syscall errnos (including EBADF).

http://b/564396967

- Parallelize ReadOp calls in ServeOps for multi-core performance benefit.
- Convert to syscall.Read to allow simultaneous reads from the FUSE connection.
- Update error handling in readMessage to handle raw syscall errnos (including EBADF).
@geertj

geertj commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

This looks good to me. I don't fully oversee if there would be any unintended consequences of making this change across current users. How invasive would it be to make this configurable through MountConfig?

- Add NumReaders field to MountConfig (defaults to 1 when unset or <= 0).
- Expose Connection.NumReaders() for fuseutil.NewFileSystemServer and custom Server implementations.
- Update fileSystemServer.ServeOps to use Connection.NumReaders() instead of hardcoded 8.
- Add unit and multi-reader mount tests.
@ChaitanyaKN

Copy link
Copy Markdown
Author

This looks good to me. I don't fully oversee if there would be any unintended consequences of making this change across current users. How invasive would it be to make this configurable through MountConfig?

I have made this configurable through MountConfig, doesnt need a lot of work for actual users to set this up now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants