[Bug 271065] Kernel FUSE limits read() size by 64k/128k

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Apr 2023 16:43:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271065

--- Comment #5 from Ivan Rozhuk <rozhuk.im@gmail.com> ---
> Annoying, because it's mentioned in the sshfs man page: https://linux.die.net/man/1/sshfs .

It is opposite to "sync" option that handled by sshfs.
I will fix that.


> Where do you see that comment?

* fusefs currently reads ahead no more than one cache block at a time.


> Could you please try this patch and tell me what you find?

unique: 318, opcode: READ (15), nodeid: 5, insize: 80, pid: 63228
[02387] READ
[02388] READ
[02389] READ
[02390] READ
[02391] READ
[02392] READ
[02393] READ
[02394] READ
[02395] READ
  [02378]           DATA   131076bytes (186ms)
  [02379]           DATA   131076bytes (208ms)
  [02380]           DATA   131076bytes (208ms)
  [02381]           DATA   131076bytes (209ms)
  [02382]           DATA   131076bytes (209ms)
  [02383]           DATA   131076bytes (226ms)
  [02384]           DATA   131076bytes (264ms)
  [02385]           DATA   131076bytes (275ms)
  [02386]           DATA       85bytes (275ms)
   unique: 318, success, outsize: 1048592

This is work.

Hover I set "conn->max_readahead = (1024 * 1024 * 64); /* 64mb. */" inside
sshfs  and got only 1 cacheblock.

-- 
You are receiving this mail because:
You are the assignee for the bug.