Re: [Samba] samba 4.x slow ...
- Date: Fri, 3 Nov 2017 15:13:45 +0100
- From: "L.P.H. van Belle via samba" <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] samba 4.x slow ...
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces@xxxxxxxxxxxxxxx] Namens
> Reindl Harald via samba
> Verzonden: vrijdag 3 november 2017 14:02
> Aan: samba@xxxxxxxxxxxxxxx
> Onderwerp: Re: [Samba] samba 4.x slow ...
> Am 03.11.2017 um 13:54 schrieb Dr. Peer-Joachim Koch via samba:
> > no, I have to this. I'm normally just check what smbstatus shows:
> > 33837 BGC\pkoch users XXX (ipv4:XXX:51118) SMB2_10
> > Bye the way - 45 MB/s is not so bad, I just wanted to know if it's
> > possible to get 90MB/s or at 10G a little bit more.
> > What has been messaured ?
> 90 MB/sec from our RAID10 box to my workstation
> * server CentOS7
> * workstation Fedora 26
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
115MB/s with raid1 on 1GB to dedicated hardware.
~95MB/s to guest VM on a Xen server. ( same hardware as above)
> > Bye the way - 45 MB/s is not so bad
Really, i would be craying if i see that... And even more with a 10Gbe... Buckets of tears..
Even my E350amd (800-1600Mhz) ( software raid 1 ), on 5400k disk over 1GB/s get the 90-115MB/s
Even when im watching a move, downloading at 5-6MB/s, and only when extraxting it drops to 50-70MB/s due.
( ubuntu 17.10, ubuntu samba 4.5.12 ) ( but with optimize partition block sizes )
No changes since samba 4.2.x here this was ubuntu 14.04 at start.
With a 10Gbe and a MTU of 1500, i suggest set your mtu to 9000 ( jumbo MTU) for the 10Gbe cards and/or per interface/ip.
If you need a mtu of 1500 for some interface, you can also disable PMTU and force lower mtu for these.
By example what i use, which can be added in sysct.conf
#(optional) Disable Path MTU discovery to prevent packet fragmentation problems.
# To prevent IP packet fragmentation, we'll tell IPTables to reduce the size of packets by adjusting the packets' maximum segment size.
# This prevents issues with some VPN clients.
iptables -A PREROUTING -i INTERFACE -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1361:1536 -j TCPMSS --set-mss 1360
iptables -A PREROUTING --match policy --pol loweringmtu --dir in -i INTERFACE -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1361:1536 -j TCPMSS --set-mss 1360
Last, try changing the interface line.
interfaces = lo BOND_IP_HERE
The interfaces line used, looks wrong also, i never use it, but from man smb.conf:
Yours, shows: interfaces = lo bond0:min or did something drop off in the email... ;-)
In cases like this is start with testing the IO throughput on the disk/partitions first.
When these are ok, then the NIC.
For example, an bad aligned partition, can give a drop easely of 40-50% in your write speed.
Just some things i would check myself also.
But I get full speed with pretty much default settings. ( standalone, AD DC servers or members ).
Execpt my kodi server, that needed a lot optimisation ( at ubuntu 14.04 time) to get these speeds,
There i changed partition blocksizes, disk the diskschedulers. Needed also due to SSD + HDD.
but not in samba, also defaults where used.
Good luck, i hope above helps a bit.
In samba, smb.conf, the lesser the better imo.
To unsubscribe from this list go to the following URL and read the