[SOLVED] Samba latency Issue

think

New Member
Aug 11, 2025
23
3
3
Hi,

I know that there are lots of Samba topics about slow performance, but my problem seems to be a bit different.
I've tested Linux, Windows and LXC, but it's always the same: whenever I try to read or write a file, it takes about 3-5 seconds for starting/stopping that operation.

For example, a large single file takes 3-5 seconds until it starts reading/writing that file, then full speed and again 3-5 seconds to finish the operation. With only a few files this is not that bad, but when it comes to synchronise thousands of small files it takes me several days.

FYI: I tried Manjaro, Windows 11 as VM and Debian 12 as LXC as samba server with virtual drives of proxmox and XFS: no according difference.

When I watch the IO latency via WebUI is comes up to 0.3%. Disk IO measurement is about 54-58k: it's an single 4TB Lexar NM790 SSD. I checked with iperf and get full speed again. I tried different samba shares and file systems, but no change.

The system is not slow:

CPU: Intel 12900KS
RAM: 64GB Corsair DDR5-7200 @ 4800 MHz
Mainboard: AsRock B760M Phantom Gaming Sonic WIFI
Network: PCIe 4.0 @ 4x - 4x Intel 226 2,5Gbit
Storage: 3x NVMe SSD: 1x Samsung PCIe 3.0 128GB (don't know the model - was left over from a older PC - Proxmox installation; 2x Lexar PCIe 4.0 NM790 for VMs and shares

Any ideas what may cause that high latency and how to solve that?

Thanks in advance,

Michael
 
The interesting thing is: VM <-> VM is bloody fast. There is no issue with high latency or slow speed.
 
The point is the context where you have the issue !
Ah sorry it was late in the night.

Yes I tried different Computers with Linux and Windows that have that samba share mounted. No matter if I read or write, it's always taking seconds for every file until doing something.

There are 2 switches in between, but my primary switch is also connected to OMV and TrueNAS machines that have samba shares, too. No problems there and the infrastructure in between is always the same.
 
Damn, this issue is hardware-related. I switched the NIC to the LAN from the addon card to the onboard and I don't have that issue anymore.

Edit: I replaced the Quad Intel I226-V with a Quad Realtek RTL8125B and don't have latency issues so far.
 
Last edited:
  • Like
Reactions: waltar