[Bug 208130] smbfs is slow because it (apparently) doesn't do any caching/buffering

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 10 22:38:20 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208130

--- Comment #5 from noah.bergbauer at tum.de ---
(In reply to Conrad Meyer from comment #4)

If you're talking about sysutils/fusefs-smbnetfs, it maxes out around 8 MB/s.

But I wonder: Why is FreeBSD smbfs capped at about 60 MB/s while Linux cifs
(inside bhyve on the same machine!) easily saturates the Gigabit link (120
MB/s)? From a quick peek at the code the maximum read size seems to be 60KB
which my measurements somewhat confirm. Synchronously transferring 60KB buffers
at 60MB/s indicates a round trip time of exactly 1ms - in reality the RTT is
0.35 ms though. Perhaps it takes one time slice for the reply to be processed
(kern.hz=1000)?

It's just a bit surprising that remotely mounting a filesystem (or even just a
block device) from one freebsd server to another is this hard.

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


More information about the freebsd-fs mailing list