Write speed to OMV dropping after 1 sec to 10 MB/s

    • OMV 2.x
    • Write speed to OMV dropping after 1 sec to 10 MB/s

      Hi there!
      I just installed OMV to my small NAS (see signature).
      I am mostly using it as a NAS for my Home-Network. My PC and my Laptop both use the SMB shared files.
      Read speeds were definetly great! (95+ MB/s, which you can see in the picture). However in the course of trying to get better write speeds I installed some updates from the Manager and my read speeds (pc reads from server) went down to 60 MB/s.

      However the write speeds... Those are not great at all!

      It starts of at around 50 MB/s, but only for one to two seconds, then it drops to around 10 MB/s and stays there until it is finished.
      I tested this with an .ISO of 636 MB.
      Tests with a folder of 145 MB were similar, the speed starts to build up, to a maximum of 40 MB/s and then it drops to around 10 MB/s quite fast.
      The problem exists with my PC, my Laptop and also between the two drives in my NAS (copy file from 3TB drive to 4TB drive via Windows explorer).

      The Advanced Power Management is set to: 254 Maximum performance, maximum power usage
      The Automatic Acoustic Management is set to: Max performance and max acoustic output

      The CPU usage is only scratching the 60% mark.
      The 15 minute load average stays under 0,8.
      The drive temperatures sit at a nice cool 35°.

      Samba Version 3.6.6

      Entries in SMB extra config:

      Source Code

      1. max protocol = SMB2
      2. max xmit = 65535
      3. socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535
      4. read raw = yes
      5. write raw = yes
      6. max connections = 65535
      7. max open files = 65535


      I really hope that you can somehow help me!
      Thanks in advance!
      Chris
      Images
      • pc to server.PNG

        5.09 kB, 411×158, viewed 503 times
      • server to Pc.PNG

        4.84 kB, 409×153, viewed 525 times
      ODROID XU4, Seagate Expansion 4TB, Intenso Memory Box 3TB, custom fans, Gig Ethernet
    • Changed smb.conf, write speeds did not change

      I just changed my smb.conf to get back to my good read speeds of 100 MB/s:
      Entries in smb.conf:

      Source Code

      1. read raw = yes
      2. write raw = yes
      3. socket options = TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536
      4. max protocol = SMB1
      5. max xmit = 65535

      The write speeds were not affected by that at all.
      ODROID XU4, Seagate Expansion 4TB, Intenso Memory Box 3TB, custom fans, Gig Ethernet
    • What Windows are you running? Did you ever try:

      Source Code

      1. socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 SO_KEEPALIVE
      2. strict sync = no
      3. sync always = no
      4. use sendfile = yes
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • You could try backports samba 4.1 and set max protocol to smb3 but it is difficult to go back if it doesn't work.
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Good idea. That is what I always recommend. I know Win10 would be happier with smb3.
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Well, I tried to run OMV in a VM, but there I ran in different problems (such as not being able to access the vm-share at all). So that I did not try any further.
      I set up the FTP-Service and transferred a huge file via FileZilla to my Odroid and there is the same problem.
      I conclude that the slow write speeds have nothing to do with Samba but with something different with my system (maybe move the thread? But where?)

      Today I encoutered another problem.
      My main PC does not recognize the odroid in the network and there is no way I can access my shares although I can access them with my Laptop...
      What the **** is going wrong with my system?
      ODROID XU4, Seagate Expansion 4TB, Intenso Memory Box 3TB, custom fans, Gig Ethernet
    • Today I ran iperf...

      Source Code

      1. ​iperf -s
      on the server

      Source Code

      1. ​iperf- c 192.168.188.23 -i 2
      on the client

      Brainfuck Source Code

      1. ------------------------------------------------------------
      2. Client connecting to 192.168.188.23, TCP port 5001
      3. TCP window size: 85.0 KByte (default)
      4. ------------------------------------------------------------
      5. [ 3] local 192.168.188.26 port 39143 connected with 192.168.188.23 port 5001
      6. [ ID] Interval Transfer Bandwidth
      7. [ 3] 0.0- 2.0 sec 189 MBytes 793 Mbits/sec
      8. [3] 2.0- 4.0 sec 187 MBytes 786 Mbits/sec
      9. [ 3] 4.0- 6.0 sec 183 MBytes 767 Mbits/sec
      10. [ 3] 6.0- 8.0 sec 184 MBytes 774 Mbits/sec
      11. [ 3] 8.0-10.0 sec 187 MBytes 783 Mbits/sec
      12. [ 3] 0.0-10.0 sec 931 MBytes 780 Mbits/sec
      Display All


      There is no sign of a bottleneck, and still the connection goes bananas with big files...
      And still my PC can not access my OMV shares...
      ODROID XU4, Seagate Expansion 4TB, Intenso Memory Box 3TB, custom fans, Gig Ethernet
    • Samba has quite a bit more overhead than iperf but it shouldn't be that slow. Can you access OMV shares from your pc by using its IP address?
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • It shouldn't open chrome when trying to connect to the share via IP. Open windows explorer and type \\omv-ip-address
      If the laptop can connect, then there is something wrong with your pc. Did you reboot?
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Same Problem

      Hello,

      I have exact the same Problem with (Odroid xu4 with OMV). After 1-2 sec. the writing speed to omv drops to max. 10 MByte / sec (smb/cifs) to a usb3 2,5 inch HD. I did not alter anything to the OMV.

      update:
      I have re-installed omv on xu4. Then speed on the external 2,5 inch HDD is ok (70 MByte/sec). As soon as I change in OMV the HDD settings Powermanagement, Spindown-Time the write speed goes down to 10 Mbyte/sec. Even if I deactivate everything, the speed does not come back and remains at 10 MByte.

      Hm.
      Hans

      The post was edited 1 time, last by hansher: update ().

    • Hi there,

      well if that solves the write speed problem, then I will reinstall OMV the third time... ;)
      And I will never touch the performace options again! :cursing:

      Yep, I already thought, that there must be some setting wring with my PC, I will now have to try out which one...

      I will get back to you, when I tested it out.
      ODROID XU4, Seagate Expansion 4TB, Intenso Memory Box 3TB, custom fans, Gig Ethernet
    • Hi,
      I reinstalled everything and did not touch any disk performance option.
      I now get 70 MB/s write speed without Samba performance tuning.
      I would like this thread to be marked as solved although I still can not access the shares with my PC.
      Thank you very much!
      ODROID XU4, Seagate Expansion 4TB, Intenso Memory Box 3TB, custom fans, Gig Ethernet
    • I had seen that type of initial burst of speed and then a drop in speed for my system as well. It was similar to the topic here:
      Bottleneck for Samba after a few seconds of transfer. Network & Sata tested

      For me, uninstalling SMB 1.0 quote "If you using a Windows, turn off SMB 1.0/CIFS File Sharing Supportoption under Turn Windows features on or off" made it a lot more constant. I now get a very constant 100-110 MB/s transfer rate with Samba.

      I couldn't ever figure out why having SMB 1.0 installed messed with the transfer rates. I did about half a dozen Google searches to see if this was a known topic, but I never found anything about it. But it definitely was a measurable effect for me. If reinstalled SMB 1.0 the behavior (dropping speed after a few seconds) returned, uninstall again and it would disappear again. I tried setting the minimum protocol to SMB 2 in the conf file, but it didn't have the same effect, which I thought was strange because it should have been about equivalent in what it was trying to accomplish.

      My final configuration is:
      - I installed Samba 4.16 (make sure you install the vfs modules as well if you use the recycle bin otherwise you won't be able to access your drives => 'apt-get install samba-vfs-modules'). I upgraded Samba for another reason as I was debugging an issue with Samba freezing my network stack. But I also like having SMB3 available from 4.16.
      - I use 'min protocol = SMB2' even though I didn't see much effect.
      - I uninstalled SMB 1.0 from Windows. Biggest effect.
    • Chris G. wrote:

      I now updated Samba to 4.1.17.
      Now my Laptop is also unable to connect to the shares...
      No, then Chrome opens with the web-interface.

      What exactly was the behavior?
      - Were you able to see/browse a list of the shares at the IP address, but not enter the shares?
      - Did you have recycle bin enabled on those shares?

      The only problem I ran into in installing Samba 4.16 was I had recycle bin enabled for the shares, but I hadn't installed the vfs modules that recycle bin relies on. So it would try to find the recycle bin vfs upon trying to access the drive and entry would fail because it couldn't find the vfs file. Easily fixed with "apt-get install samba-vfs-modules".
    • Oh that also is a nice tip!
      I just deinstalled SMB 1 on both my PC and my Laptop.
      I upgraded to Samba 4.1.17:

      Brainfuck Source Code

      1. root@SABRE:~# smbstatus
      2. Samba version 4.1.17-Debian
      3. PID Username Group Machine
      4. -------------------------------------------------------------------
      5. Service pid machine Connected at
      6. -------------------------------------------------------
      7. No locked files

      I use 'min protocol = SMB2'.
      I also installed the vfs-modules.

      If I go to "Network" in the explorer it lists my PC, my Laptop and my Switch/Access Point, but not the OMV-machine.
      [IMG:http://forums.openmediavault.org/index.php/Attachment/3706-Unbenannt-PNG/?tiny=1]
      I believe that this has something to do with Windows, but I have no idea whatsoever...
      Images
      • Unbenannt.PNG

        37.34 kB, 1,279×422, viewed 482 times
      ODROID XU4, Seagate Expansion 4TB, Intenso Memory Box 3TB, custom fans, Gig Ethernet