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?

sinned
  • 473
  • 2
  • 6
  • 15

2 Answers2

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?

shodanshok
  • 44,038
  • 6
  • 98
  • 162
  • 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 05 '16 at 08: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 05 '16 at 09: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 05 '16 at 09:32
  • 1
    Well, at least you solved the high CPU load ;) – shodanshok Jun 05 '16 at 09:39
  • I guess the `change notify` issues related to high load are related to this bug: https://bugs.freenas.org/issues/4728 – TCB13 Apr 19 '17 at 12:55
  • In LAN I use to write to this device at >50MB/s through smb. – Marco Aug 19 '17 at 15:19
4

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 :)