OpenMediaVaultLab
Four-bay NAS enclosure with a blue Ethernet cable under a magnifying glass, beside a network switch, an open hard drive and a circuit board on a dark background
troubleshooting

OpenMediaVault SMB Slow? 4 Checks Before Tuning

Seeing 11 MB/s or 40 to 70 MB/s? Commands to test the network, disks, Samba and client in order, and fix slow OpenMediaVault SMB transfers safely.

By OpenMediaVaultLab Editorial · ·Updated · 9 min read

Slow OpenMediaVault SMB transfers come from one of four layers: the network, the disks under the share, Samba, or the client. Test them in that order with the commands below and stop at the first layer that explains your number. On gigabit, Microsoft’s slow SMB transfer guide puts real-world SMB at about 110 MB/s, so that figure means nothing is broken.

Pasting tuning lines into Samba is not the place to start. The Samba project’s Performance Tuning page says that in most cases, incorrectly set parameters cause the performance problems.

If the admin page itself will not load, that is a different fault: OpenMediaVault web interface not loading covers nginx, the OMV engine and port 80 conflicts.

Evidence and limits: this is a documentary guide. It follows the stable openmediavault documentation, whose prerequisites page lists Debian 13 as the base system, plus the Samba, kernel, OpenZFS, SnapRAID, iperf3 and Microsoft pages linked in each section. The commands were not run on a test NAS for this article.

First, know what “slow” should look like

The OpenMediaVault prerequisites page states the constraint that decides most cases: NAS write speed to storage is limited to the speed of the NAS network interface. It also recommends full-duplex network cards, noting that half-duplex parts typically offer 10/100 Mbit/s.

Do the arithmetic once. A 1 Gbit/s link carries 125 MB/s before overhead (1,000 divided by 8). Microsoft’s guide gives about 110 MB/s of sustained throughput per 1 Gbps as the approximate real-world SMB figure, assuming no other bottleneck. If you see about 110 MB/s on large files, the wire is full and no Samba setting will change that.

Symptom on gigabitLikely layerFirst command
About 11 MB/sNetwork: link running at 100 Mbit/s (100 / 8 = 12.5 MB/s before overhead)ethtool <iface> on the NAS
40 to 70 MB/s on large filesNetwork or disks, below Sambaiperf3 -c <nas-ip>, then a local dd test
Fast at first, then collapsesDisks: a cache filled, now at sustained write speedLocal dd with a file larger than RAM, plus array status
Fine for one big file, slow for thousands of small onesPer-file protocol cost, not bandwidthCopy test: one large file versus one folder of small files

Microsoft’s guide explains the third row: a copy can start fast while it is cached in memory or storage, then slow to the disks’ sustained write-through limit once those caches are full. The fourth row has its own section below.

Layer 1: prove the network

Test the network with no disks involved. iperf3 sends data memory to memory, so its number is what the path can carry. The flags below come from the iperf3 invoking page.

On the NAS (server mode, listening on the default port 5201):

iperf3 -s

On the client (client mode; the test runs for the default 10 seconds):

iperf3 -c <nas-ip>
iperf3 -c <nas-ip> -R
iperf3 -c <nas-ip> -P 4

-R reverses the test so the server sends to the client, which checks the NAS-to-client direction that reads use. -P sets the number of parallel client streams. If the result is near line rate, the network is cleared. If not, fix the network before anything else.

Check what the NAS interface actually negotiated. The ethtool manual says that ethtool with only a device name prints the current settings of that device, and -S queries NIC and driver statistics:

ethtool <iface>
ethtool -S <iface>

Look at the speed and duplex lines in the first output. The manual notes that autonegotiation is enabled by default but some devices may have trouble with it. Check the switch port too. Microsoft’s guide adds that packet loss causes TCP congestion control to throttle throughput, so rising error counters in ethtool -S matter.

If the network is genuinely the limit and everything is already correct, the fix is hardware rather than configuration. Moving to 2.5 GbE, or to 10GBASE-T with a card such as the Intel X550-T2, raises the ceiling. Both ends and the switch have to support the faster speed. What to look for in the rest of the build is covered in the OpenMediaVault hardware guide.

Layer 2: prove the storage

Now test the array locally on the NAS, with no network involved. Write a file larger than the NAS’s RAM to the shared folder’s underlying path, then read it back. The options come from the dd manual: conv=fdatasync physically writes the output data before finishing, and status=progress shows periodic transfer statistics.

# Write test: 32 GiB, for a NAS with 16 GiB of RAM or less. Adjust count to exceed your RAM.
dd if=/dev/zero of=<share-path>/ddtest bs=1M count=32768 conv=fdatasync status=progress

# Read test
dd if=<share-path>/ddtest of=/dev/null bs=1M status=progress

# Clean up
rm <share-path>/ddtest

Make sure the disk has room for the test file. If local write speed is already below your network number, the array is the constraint and Samba is irrelevant. Microsoft’s guide makes the same point: SMB speeds can be limited by storage performance, and most advertised storage figures are peak, not sustained.

Check whether the array is degraded or busy. Run the command for the storage you use:

# mdadm software RAID
cat /proc/mdstat
cat /sys/block/md0/md/degraded
cat /sys/block/md0/md/sync_action

# ZFS
zpool status -x
zpool status

# SnapRAID
snapraid status

The md(4) manual says /proc/mdstat contains the status of currently running arrays. The kernel md documentation says degraded shows 0 on an optimal array and 1 with one failed or missing drive. Its sync_action reports resync, recover, check or idle; check reads all blocks. The zpool-status manual says -x shows only pools with errors or otherwise unavailable, and that a running scrub or resilver is reported with percentage done. The SnapRAID manual says snapraid status prints a summary of the array’s state, and that a sync reads all modified files to update parity. Retest after any rebuild, resync, scrub or sync finishes.

SMR drives. The prerequisites documentation says to prefer CMR drives over SMR for RAID, SnapRAID or mergerfs setups, because SMR drives can stall during rebuilds and parity sync. No configuration fixes it.

ZFS record size against the workload. The OpenZFS Workload Tuning page says datasets use a 128KB record size by default, and partial record writes require data to be read from either ARC (cheap) or disk (expensive). That cost shows up on workloads that rewrite small pieces of large files. Changing the record size only takes effect for new files.

Encryption. The prerequisites page notes that encryption on SSDs means more writes, which wear out SSDs, eMMCs or flash drives faster. If you use encryption, include it in the local dd test so its cost is part of the number.

The share sitting on the system disk. The documentation is explicit that the system drive cannot officially be used for shared resources or as a user data drive. The layering that keeps shares off it is set out in planning an OpenMediaVault NAS, and filesystem trade-offs are in OpenMediaVault file system types.

Layer 3: what not to change in Samba

Only now is Samba worth looking at, and the first job is to know what OpenMediaVault already sets.

OMV ships its own Samba settings. The OMV SMB/CIFS documentation shows the [global] section that openmediavault deploys to /etc/samba/smb.conf. It already includes these lines:

[global]
socket options = TCP_NODELAY IPTOS_LOWDELAY
use sendfile = yes
aio read size = 16384
aio write size = 16384

So socket options is set by OMV itself, not by a stray forum snippet. The Samba wiki’s general advice is not to set socket options, because Linux auto-tunes buffer sizes and setting the parameter overrides that; in most cases it decreases performance. On OMV, change it only through the supported route below, and only after Layers 1 and 2 are clean.

Step one: remove lines you added yourself. The OMV documentation says extra options can be added on the general and share configuration pages. Check the Extra options field on the Samba general settings page and on each share. Remove anything you pasted in, especially server max protocol. The wiki recommends you do not set it, so that a Samba update offering a newer SMB dialect makes it available to clients automatically.

Step two: change OMV-managed options only through environment variables. The OMV docs say options managed by openmediavault can be customized via environment variables. The advanced settings page gives the commands, run as root:

omv-env list
omv-env set -- <VARIABLE_NAME> <VALUE>
monit restart omv-engined
omv-salt stage run prepare
omv-salt stage run deploy

Use omv-env list to see which variables exist. The advanced settings page does not name a Samba variable, so take the name from that list rather than from a forum post.

Do not hand-edit /etc/samba/smb.conf. OMV deploys that file, and its advanced settings page warns that changes manually added to configuration files will eventually be overwritten by the openmediavault system.

One tuning that is documented and does help, narrowly. For shares holding directories with more than 100,000 files, the wiki describes setting case sensitive = true, default case = lower, preserve case = no and short preserve case = no in the share section. Samba is then reloaded with smbcontrol all reload-config. On OMV these go in that share’s Extra options field. The warning attached is serious: all files on the share must be converted to lowercase first, or files with uppercase characters are no longer listed.

The Samba wiki page was last edited on 26 February 2017, so treat it as long-standing guidance rather than current release notes. For any other parameter, read its entry in the smb.conf manual page before setting it.

Layer 4: the client

If one machine is slow and everything else is fast, the problem is that machine. Microsoft’s guide suggests measuring anti-malware overhead by testing a transfer with file scanning temporarily disabled.

On Windows clients, the same guide notes that File Explorer performs single-threaded, buffered copies, and suggests robocopy instead, with robocopy /J for unbuffered copies of files larger than 1 GB.

Test from a second client before spending more time on the server. It costs nothing and separates a client fault from a server fault.

The small-files problem, honestly

Microsoft’s guide calls slow copies of many small files expected behavior with File Explorer and other single-threaded tools. It explains that file creation is an expensive operation for both SMB and the file system, and each file pays network, protocol and file system latency before the next one starts. Antivirus scanning repeats for each file, and throughput can fall below 1 MB/s.

The fixes it lists are workflow changes:

  • Copy in parallel: robocopy /MT copies eight files at a time by default, up to 128. Redirect output with /log, because writing to the console slows the job.
  • Pack first: compress the files into one archive, copy the archive, and extract it on the destination system, not remotely.

A checklist that fits on one screen

  1. Copy one large file and one folder of small files, and record both numbers.
  2. Run iperf3 -s on the NAS and iperf3 -c <nas-ip> (and -R) on the client. Check ethtool <iface>. If either is slow, fix the network.
  3. Run the local dd write and read test with a file larger than RAM. If it is slow, fix the storage.
  4. Check array health with cat /proc/mdstat, zpool status -x or snapraid status, and wait for any rebuild, resync, scrub or sync.
  5. Remove lines you added to OMV’s Extra options fields, such as server max protocol. Change OMV-managed options only with omv-env, then restart and redeploy.
  6. Test from a second client, and test with real-time scanning temporarily disabled.
  7. Only then consider a documented tuning that matches your specific workload.

If step 2 or step 3 shows that the build itself is the limit, the capacity and protection arithmetic behind a rebuild is worth revisiting in the OpenMediaVault RAID Capacity Calculator, and the choice of platform in the first place is compared in OpenMediaVault vs TrueNAS.

FAQ

Can I edit smb.conf directly on OpenMediaVault?

Not durably. openmediavault deploys /etc/samba/smb.conf, and its advanced settings documentation warns that manual changes to configuration files will eventually be overwritten. Use the Extra options fields or omv-env instead.

Does SMB signing slow down transfers?

Microsoft’s guide says SMB signing and SMB encryption are known to slow transfers, depending on the CPU. Windows 11 version 24H2 and Windows Server 2025 require signing by default, and Microsoft does not recommend turning that requirement off.

Sources

  1. SambaWiki: Performance Tuning (including settings that should not be set)
  2. smb.conf(5) manual page, Samba current documentation
  3. openmediavault documentation: Prerequisites (network and storage constraints)
  4. OpenZFS documentation: Workload Tuning (recordsize and partial record writes)
  5. openmediavault documentation: SMB/CIFS (Samba) service
  6. openmediavault documentation: Advanced settings (environment variables)
  7. iperf3: Invoking iperf3
  8. ethtool(8) manual page
  9. dd(1) manual page
  10. md(4) manual page
  11. Linux kernel documentation: RAID arrays (md)
  12. OpenZFS: zpool-status(8)
  13. SnapRAID manual
  14. Microsoft Learn: Slow SMB files transfer speed

Related