Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] slow speeds with Windows 10

2,716 views
Skip to first unread message

Xen

unread,
Aug 7, 2016, 3:50:02 PM8/7/16
to
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

unread,
Aug 7, 2016, 4:30:03 PM8/7/16
to
Xen schreef op 07-08-2016 21:43:

> 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....

Marc Muehlfeld

unread,
Aug 8, 2016, 2:10:02 AM8/8/16
to
Hello,

Am 07.08.2016 um 21:43 schrieb Xen:
> What could be causing this slow speed?

I guess you won't get any help if you don't provide more information.
For example:
* smb.conf
* Samba version
* self compiled / distro packages?
* hardware
* speed rate with other MS OS
* etc.

Regards,
Marc

Xen

unread,
Aug 8, 2016, 10:10:03 AM8/8/16
to
Marc Muehlfeld schreef op 08-08-2016 7:56:
> Hello,
>
> Am 07.08.2016 um 21:43 schrieb Xen:
>> What could be causing this slow speed?
>
> I guess you won't get any help if you don't provide more information.
> For example:
> * 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.

L.P.H. van Belle

unread,
Aug 8, 2016, 10:50:04 AM8/8/16
to
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?

> 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.

> Well thank you for your interest regardless;
Your welkom...

> 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

Harry Jede

unread,
Aug 8, 2016, 11:10:03 AM8/8/16
to
On 16:18:55 wrote Xen:
> Xen schreef op 07-08-2016 21:43:
> > 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

Xen

unread,
Aug 8, 2016, 4:00:03 PM8/8/16
to
L.P.H. van Belle schreef op 08-08-2016 16:42:

> 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.


> 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.

> 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.



>> 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.

> 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?

> 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.

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

Right.

> 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.


> 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?

> 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.
0 new messages