1. 25 Aug, 2024 6 commits
    • Han-Wen Nienhuys's avatar
      benchmark: introduce benchmark for loopback reads · ab014071
      Han-Wen Nienhuys authored
      Loopback (file backed by some other file on disk) is an important
      use-case, and FUSE features such as passthrough and splicing aim to
      reduce overhead.
      
      Example: 
      
          Splice disabled:
      
          $ go test -bench FD -test.cpu=1,2
          goos: linux
          goarch: amd64
          pkg: github.com/hanwen/go-fuse/v2/benchmark
          cpu: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
          BenchmarkGoFuseFDRead     	    1929	    597942 ns/op	3507.28 MB/s	    4290 B/op	     129 allocs/op
          BenchmarkGoFuseFDRead-2   	    2497	    421856 ns/op	4971.26 MB/s	   62500 B/op	     177 allocs/op
          PASS
          ok  	github.com/hanwen/go-fuse/v2/benchmark	3.510s
      
          Splice enabled:
      
          $ go test -bench FD -test.cpu=1,2
          goos: linux
          goarch: amd64
          pkg: github.com/hanwen/go-fuse/v2/benchmark
          cpu: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
          BenchmarkGoFuseFDRead     	    1524	    750249 ns/op	2795.28 MB/s	    4132 B/op	      98 allocs/op
          BenchmarkGoFuseFDRead-2   	    2364	    463522 ns/op	4524.39 MB/s	   11719 B/op	     106 allocs/op
          PASS
      
      in other words, the API complexity that splicing introduced was not
      worth it: it actually slows down things.
      
      Change-Id: I4f7519ab2cc5b0145d0f7f81f55ad20d544e9d87
      ab014071
    • Han-Wen Nienhuys's avatar
      benchmark: simplify ReadLines · 6a08a74a
      Han-Wen Nienhuys authored
      Change-Id: I683c0f614f67e787229d0754354a25f225184995
      6a08a74a
    • Han-Wen Nienhuys's avatar
      fs: fix stray comment · a8693e36
      Han-Wen Nienhuys authored
      Change-Id: Iad80862a8d13cb03511a005d385735594ff5e353
      a8693e36
    • Han-Wen Nienhuys's avatar
      fuse: wire up passthrough support · e0641a46
      Han-Wen Nienhuys authored
      The passthrough feature lets a filesystem register an open file
      descriptor with the kernel to avoid roundtrips for read/write
      operations.
      
      Change-Id: Ia8bde502a3450028f4d87ba61fa9c76ea3ea6c63
      e0641a46
    • Han-Wen Nienhuys's avatar
      fuse: point comment to fs API rather than nodefs/pathfs · 1224fbcf
      Han-Wen Nienhuys authored
      Change-Id: I18bde502a3450028f4d87ba61fa9c76ea3ea6c63
      1224fbcf
    • Han-Wen Nienhuys's avatar
      fuse: move Flags2 handling to platform specific code · d7570e24
      Han-Wen Nienhuys authored
      Document why some bits are platform dependent.
      
      Change-Id: Ib8bde502a3450028f4d87ba61fa9c76ea3ea6c63
      d7570e24
  2. 23 Aug, 2024 3 commits
  3. 16 Aug, 2024 1 commit
  4. 15 Aug, 2024 3 commits
  5. 28 May, 2024 2 commits
  6. 18 May, 2024 2 commits
  7. 15 May, 2024 4 commits
  8. 12 May, 2024 1 commit
  9. 01 May, 2024 2 commits
  10. 30 Apr, 2024 1 commit
  11. 21 Apr, 2024 1 commit
    • lch's avatar
      posixtest: fix building of tests · 8d89f3cd
      lch authored
      Prefer x/sys/unix over syscall package, which supports FreeBSD.
      
      Change-Id: Ifd3a0fd6d2b90369a6e1e74d92606a655815a6a4
      8d89f3cd
  12. 20 Apr, 2024 2 commits
  13. 14 Apr, 2024 2 commits
  14. 12 Apr, 2024 5 commits
  15. 08 Apr, 2024 3 commits
  16. 25 Mar, 2024 2 commits