Skip to content

perf(fuse): replace github.com/jacobsa/fuse with sync.Pool-backed fuse-pool - #5276

Draft
kislaykishore wants to merge 1 commit into
perf/file-inode-memory-optfrom
perf/fuse-pool-memory-opt
Draft

kislaykishore wants to merge 1 commit into
perf/file-inode-memory-optfrom
perf/fuse-pool-memory-opt

Conversation

@kislaykishore

@kislaykishore kislaykishore commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Replace github.com/jacobsa/fuse with github.com/kislaykishore/fuse-pool (v0.0.0-20261111125536-4cc6b567a4b7, grpc-cpu-opt branch) via go.mod replace to eliminate unbounded idle FUSE buffer retention after concurrency bursts and reduce per-op allocations:

Link to the issue in case of a bug fix.

b/582117175

Testing details

  1. Manual - Verified compilation and static analysis via make build, and benchmarked mounted pprof (inuse_space, inuse_objects) and /proc/<pid>/smaps_rollup (Rss, Pss, Pss_Anon) across 100k-object ReadDir and Stat warm-up runs on GCE (c4-standard-96).
  2. Unit tests - Verified go test -race ./cmd/... ./internal/mount/... ./internal/fs/wrappers/... and live FUSE mount tests in go test -race ./internal/fs -run 'TestNotifier|TestReadDirPlus'.
  3. Integration tests - N/A

Any backward incompatible change? If so, please explain.

N/A

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the core dependency github.com/jacobsa/fuse with a personal fork github.com/kislaykishore/fuse-pool in go.mod and updates go.sum accordingly. The reviewer raised a valid concern regarding the maintenance, security, and supply-chain risks of using a personal fork in a production-grade repository, suggesting that the optimizations be upstreamed or the fork be hosted under an official organization namespace.

Comment thread go.mod
google.golang.org/genproto/googleapis/rpc v0.0.0-20261019180522-ce908d29299b // indirect
)

replace github.com/jacobsa/fuse => github.com/kislaykishore/fuse-pool v0.0.0-20261111125536-4cc6b567a4b7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Replacing a core dependency (github.com/jacobsa/fuse) with a personal fork (github.com/kislaykishore/fuse-pool) introduces potential maintenance, security, and supply-chain risks for a production-grade repository. To ensure long-term support, security compliance, and proper vetting, please consider upstreaming these performance optimizations directly to the original repository, or hosting the fork under an official organization namespace.

@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.24%. Comparing base (6673b5c) to head (6ce10d2).

Additional details and impacted files
@@                      Coverage Diff                       @@
##           perf/file-inode-memory-opt    #5276      +/-   ##
==============================================================
- Coverage                       85.27%   85.24%   -0.03%     
==============================================================
  Files                             181      181              
  Lines                           19992    19965      -27     
==============================================================
- Hits                            17048    17020      -28     
- Misses                           2943     2944       +1     
  Partials                            1        1              
Flag Coverage Δ
unittests 85.24% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant