4

I have a Synology DS213j which I access through a VPN via the build-in VPN Server (I use OpenVPN) using Windows Explorer.

Copying files to my local hard drive is very slow in the range of only ~170 KB/s. This seems to be limited by the Synologys CPU which is at 100%. Looking at the ressource monitor in DSM, it shows the smbd process takes >90% of CPU.

The NAS runs DSM version 5.2-5592. The Specs say it has a 1.2 GHz CPU. Shouldn't this be capable of more than this?

I read the DSM 5.2 versions have this kind of issue where they are to heavy-weight for older NASes. Is version 6 better performancewise? Should I downgrade to 4? Or is this not an issue in the OS, and can be solved otherwise? How?

9
  • Log via SSH and paste the output of testparm -vvv
    – shodanshok
    Jun 4, 2016 at 13:16
  • @shodanshok here it is: pastebin.com/nmxuD5aQ I replaced the foldernames.
    – sinned
    Jun 4, 2016 at 15:24
  • Thanks. Can you also post the output of top during a file transfer?
    – shodanshok
    Jun 4, 2016 at 17:28
  • @shodanshok here it is: pastebin.com/cZk0bKj4 Thanks for your interest.
    – sinned
    Jun 4, 2016 at 18:42
  • I'm having the same issue as thread starter. Synology DS216j running DSM 6.0-7321 Update 6 ... smbd goes to 98%, file copy comes to a stand still. Advanced settings like "Enable SMB3" and "transport encryption" Disable don't seem to help.
    – pcunite
    Jun 5, 2016 at 3:36

2 Answers 2

6

First, this seems a common problem with DS213j and DSM 5.1+. Someone reported that after a reboot, the problem went away: have you tried it?

From your top data, it seems that the CPU is busy with system time, ie: doing some syscall. Try changing the following parameters in the smb.conf file and then restart the NAS:

  • change notify = no
  • kernel change notify = no
  • server max protocol = NT1
  • client max protocol = NT1

Does they change anything?

6
  • Adding your changes and restarting the service using synoservicectl, the high cpu load has gone away but performance has not improved. Still about 170 KB/s. Most cpu is now taken by openvpn (~5%).
    – sinned
    Jun 5, 2016 at 8:59
  • 1
    How much bandwidth did you have? 170 KB/s are about 1.5 MB/s of upload bandwidth which, based on your WAN tech, can be quite good.
    – shodanshok
    Jun 5, 2016 at 9:19
  • The router says 1.9 Mbit/s upload bandwidth. This should translate to 237.5 KByte/s. So far, I'm getting ~70% netto performance out of it. I feel like this is probably the bottleneck. Also, I feel quite stupid now. Thanks for your help!
    – sinned
    Jun 5, 2016 at 9:32
  • 1
    Well, at least you solved the high CPU load ;)
    – shodanshok
    Jun 5, 2016 at 9:39
  • I guess the change notify issues related to high load are related to this bug: bugs.freenas.org/issues/4728
    – TCB13
    Apr 19, 2017 at 12:55
5

I had also the same problem with :

  • random slow load problem when I navigate into folder with Windows Explorer
  • hight CPU usage by the smbd process (~50%) when the random problem that talk about before append
  • poor speed performance when I transfert file between my Windows computer and my Nas (< 25 MB/s with gigabite connection...)

I solved these 3 problems by simply switching SMB2 to SMB 3 in:

Config Panel > Files services > Win/Mac/NFS panel > Advanced settings in Windows part > Max protocole => Enable SMB 3

I hope these solve your problems too :)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .