Discussion:
[Samba] slow speeds with Windows 10
Xen
2016-08-07 19:43:25 UTC
Permalink
I was transferring a file from a (slow) smbd server running on some NAS.

The transfer speed is only 1MB/s but the NAS uses 100% CPU. Normally the
NAS can handle 60MB/s download (from the NAS).

Could it be that the connection uses encryption or something?

What could be causing this slow speed?

I have internet download speeds over this same connection surpassing
5MB/s. I cannot imagine why something like this would be so slow.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Xen
2016-08-07 20:25:00 UTC
Permalink
Post by Xen
The transfer speed is only 1MB/s but the NAS uses 100% CPU. Normally
the NAS can handle 60MB/s download (from the NAS).
It took 100% even when the speed was below 100K/bs. It took at least 45
minutes for the transfer to (almost) complete. Of a 2GB file. I
restarted the transfer using ftp to the same host over the same (bad)
wifi link and the download completed in about 12 minute this time.

Not a clue why it is taking so long and asking so much CPU....
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Harry Jede
2016-08-08 14:27:09 UTC
Permalink
Post by Xen
Post by Xen
The transfer speed is only 1MB/s but the NAS uses 100% CPU.
Normally the NAS can handle 60MB/s download (from the NAS).
It took 100% even when the speed was below 100K/bs. It took at least
45 minutes for the transfer to (almost) complete. Of a 2GB file. I
restarted the transfer using ftp to the same host over the same
(bad) wifi link and the download completed in about 12 minute this
time.
Not a clue why it is taking so long and asking so much CPU....
may be it is protocol related, try:
server max protocol = NT1
client max protocol = NT1

The cpu of your nas may have no support for aes encryption. Sign and
seal is no the default setting for windows *and* current samba.
--
Regards
Harry Jede
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Xen
2016-08-08 14:04:46 UTC
Permalink
Hello,
Post by Xen
What could be causing this slow speed?
I guess you won't get any help if you don't provide more information.
* smb.conf
* Samba version
* self compiled / distro packages?
* hardware
* speed rate with other MS OS
* etc.
I was not really asking for troubleshooting (ie., finding new answers)
but rather for answers that could already exist.

I will need to connect the computer by wire (ie. no wifi) or reboot this
one to find more information but this system is running a backup so I'll
have to wait for a while.

But as I said I have 60MB/s speeds over the wire to some Linux OS.

I guess it's not samba though, the second FTP server I tried had the
same abysmal speeds as Samba before and it didn't even finish whereas
before it finished in 12 minutes; and I went to the wired Linux computer
and downloaded the file in mere seconds so to speak, then copied it into
SD and loaded it in the wifi computer :p.

Well thank you for your interest regardless; I cannot understand why the
wifi link to the internet is at least 4-5-6MB/s constantly, and that
same wifi link to the local server runs about 3.5MB/s max and that is
only in the beginning and then often it goes down to a crawl.

But I conntected the stuff together using an old router as a switch so
now both are wired.

(Not long enough cables lol).

The same transfer is now doing about 30-40-50MB/s from that computer.

I just don't understand how smbd could have taken up 100% for that
almost non-existent transfer.

smbd --version = 3.6.9, but it is a Synology build.

There is nothing special in smb.conf, but then, apparently it is being
caused by the wifi link.

[global]
winbind enum groups=yes
follow symlinks=yes
unix extensions=yes
encrypt passwords=yes
security=user
local master=yes
realm=*
passdb backend=multi:smbpasswd,ldapsam:ldap://localhost
printing=cups
winbind enum users=yes
load printers=yes
workgroup=WORKGROUP

Nothing special on the share itself. (I took out the LDAP stuff that is
irrelevant here).

Meaning, I have higher download speeds over Wifi from the internet than
I have from the local server. By far.

I really have no clue, but thanks.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
L.P.H. van Belle
2016-08-08 14:42:46 UTC
Permalink
Hai,

My advice would be get a cable tester. Or see if you can loan some cable to test, with what your saying im almost sure you have a bad cable/connector/ethernet port somewhere.

And check if you synoligy supports gigabit networks and put in a gigabit swich. Then see if you wifi is still faster then you ethernet.
If you model is a 1xx, what happens when you disable https?
DSM version is?
Post by Xen
But as I said I have 60MB/s speeds over the wire to some Linux OS.
Thats for wire also slow in my opinion, if have a "good" setup, you can get
the 100-115MB/s over gigabit lines.
Post by Xen
Well thank you for your interest regardless;
Your welkom...
Post by Xen
I cannot understand why the wifi link to the internet is at
least 4-5-6MB/s constantly, and that same wifi link to the local server
runs about 3.5MB/s max and that is only in the beginning and then often it
goes down to a crawl.
Pff heres a lot to tell, basicly to much..
Most of the time bad cable.
And other pointers, latency, multple devices on the same channel,
( often 1 of 11 ) Wireless phones, microwave, etc all other 2.4Gz devices can interfeer with things.

I can get about 12-15Mb/s out of my wif ( 300N ) with tunning, without,
about 5-7MB/s ( test this within your lan )

Slow disks..
Not alligned partitions on disk make things slow.
Lots of small files make things also slow.
Lots of files in 1 folder make things slow.

Samba 3.6.9 30-50MB/s is slow also.

Which synology, these are limited also.. like ..
Some of them have gigabit ethernet, but max speed of 100mbit ethernet.
This is often due cpu limitation.

In running simalar on a amd-E350 8Gb ram, kodi,
1ssd ( OS + websites and mysql )
2 3TB 5400 Rpm disk. Data pics mp3 backups etc.

Copy speed, in lan 115MB/s so the full gigabit.
IF i copy to a large file to an optimized partition. ( min 4MB blocks )
WHEN i copy the same file to my default partition,
it drops to about 60-80MB/s ( 4k blocks )

so if you want fast, you need to optimize.. ;-)
and get good cables.



Greetz,

Louis
Post by Xen
But I conntected the stuff together using an old router as a switch so
now both are wired.
(Not long enough cables lol).
The same transfer is now doing about 30-40-50MB/s from that computer.
I just don't understand how smbd could have taken up 100% for that
almost non-existent transfer.
smbd --version = 3.6.9, but it is a Synology build.
There is nothing special in smb.conf, but then, apparently it is being
caused by the wifi link.
[global]
winbind enum groups=yes
follow symlinks=yes
unix extensions=yes
encrypt passwords=yes
security=user
local master=yes
realm=*
passdb backend=multi:smbpasswd,ldapsam:ldap://localhost
printing=cups
winbind enum users=yes
load printers=yes
workgroup=WORKGROUP
Nothing special on the share itself. (I took out the LDAP stuff that is
irrelevant here).
Meaning, I have higher download speeds over Wifi from the internet than
I have from the local server. By far.
I really have no clue, but thanks.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Xen
2016-08-08 19:50:34 UTC
Permalink
Post by L.P.H. van Belle
My advice would be get a cable tester. Or see if you can loan some
cable to test, with what your saying im almost sure you have a bad
cable/connector/ethernet port somewhere.
No no, wifi is not faster than ethernet, much slower. Ethernet speed I
have seen at 60MB/s. Obviously that is Gbit.
Post by L.P.H. van Belle
And check if you synoligy supports gigabit networks and put in a
gigabit swich. Then see if you wifi is still faster then you ethernet.
If you model is a 1xx, what happens when you disable https?
DSM version is?
I have no issues with wired. The Wifi is a TP-Link 1043 router (old
model) and should be fine (it was very popular). I am hard pressed to
try other wifi devices (can only use my phone as a second device) (but
it has a cifs download thing; it didn't go higher than about 1MB per
second though when I tried (I think).

I never used "N" networking before, I had my router configured at G
previously. Clearly the phone became much faster when I switched it to N
exclusively. Internet download speeds (from the computer) also became
faster I think; it is then that I saw the 5MB/s max. There were several
concurrent downloads and they added to more than 5MB/s.
Post by L.P.H. van Belle
Thats for wire also slow in my opinion, if have a "good" setup, you can get
the 100-115MB/s over gigabit lines.
I guess that is the NAS then. It is a DS112j, it may not have more CPU
power for it....

The harddisk itself will probably read about 100MB/s.

The Synology has nothing to do with the wifi. That is just the router.
Post by L.P.H. van Belle
Post by Xen
I cannot understand why the wifi link to the internet is at
least 4-5-6MB/s constantly, and that same wifi link to the local server
runs about 3.5MB/s max and that is only in the beginning and then often it
goes down to a crawl.
Pff heres a lot to tell, basicly to much..
Most of the time bad cable.
And other pointers, latency, multple devices on the same channel,
( often 1 of 11 ) Wireless phones, microwave, etc all other 2.4Gz
devices can interfeer with things.
The wifi client is actually a Level One device that is pretty shoddy. It
is a WAP-6113 or something. There can be no issue with the cable. There
are no other devices communicating unless they are from around (I live
in a dense area). There is no microwave, etc. I may have to check ...

There was another wifi access point but it shouldn't have been
communicating in any way.

Currently the speed starts out at about 4MB/s max and then goes down to
2.5 MB/s after a few minutes, mirroring the behaviour I have seen
before, but still okay.
Post by L.P.H. van Belle
I can get about 12-15Mb/s out of my wif ( 300N ) with tunning, without,
about 5-7MB/s ( test this within your lan )
How come tunneling makes it faster? Doesn't that add encryption?
Post by L.P.H. van Belle
Slow disks..
Not alligned partitions on disk make things slow.
Lots of small files make things also slow.
Lots of files in 1 folder make things slow.
Not relevant really here.
Post by L.P.H. van Belle
Samba 3.6.9 30-50MB/s is slow also.
Right.
Post by L.P.H. van Belle
Which synology, these are limited also.. like ..
Some of them have gigabit ethernet, but max speed of 100mbit ethernet.
This is often due cpu limitation.
Yes the NAS is going to be CPU limited. However that shouldn't be the
case for Wifi as it has nothing to do with the Synology. I have no
problems with the 60MB/s max.

Some people have 500MB/s SSD disks.

I am still trying to solve my 3MB/s.
Post by L.P.H. van Belle
In running simalar on a amd-E350 8Gb ram, kodi,
1ssd ( OS + websites and mysql )
2 3TB 5400 Rpm disk. Data pics mp3 backups etc.
Copy speed, in lan 115MB/s so the full gigabit.
IF i copy to a large file to an optimized partition. ( min 4MB blocks )
WHEN i copy the same file to my default partition,
it drops to about 60-80MB/s ( 4k blocks )
Really.

Are these NTFS clusters or something else?

Is it inode size or something?
Post by L.P.H. van Belle
so if you want fast, you need to optimize.. ;-)
and get good cables.
I was just talking about Wifi really ;-). But thanks for the pointers on
regular wired ethernet too.

I have no comparison and I don't really know anyone, so.... that helps
too.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Continue reading on narkive:
Loading...