NFS-Mount Option async

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • NFS-Mount Option async

      Hi,

      hab immer wieder Probleme mit auf Aufnahmen auf meine QNAP per NFS. Hatte mit dem Script nfstest.sh getestet welche Mount Optionen am besten geeignet sind.

      Quellcode: nfstest.sh

      1. n#!/bin/sh
      2. # IP of your NFS server
      3. serverip=192.168.88.254
      4. # exported directory on your NFS server
      5. exportdir=movie
      6. # mount point on dbox
      7. dboxmountpoint="/media/net"
      8. # filesize to transfer in MBytes.
      9. # At least 8 MByte. Good values are 32 or 64 MByte.
      10. # Try 128 to be more accurate (takes much longer!)
      11. filesize=128
      12. # block sizes to test in KBytes, possible values are 1 2 4 8 16 32.
      13. # values have to be separated with spaces. See examples below.
      14. # blocksizelist="4 8 32"
      15. # blocksizelist="16"
      16. blocksizelist="4 8 16 32"
      17. # wether to enable synchronous reading, writing. Possible values are "yes"
      18. # or no. Normally synchronous reading or writing should be slower than
      19. # asynchronous, so to save some time most people would say "no" here.
      20. enablesynctests="yes"
      21. ##################################################################
      22. ######## don't edit below this line ########
      23. ##################################################################
      24. bs=8192
      25. count=`expr $filesize \* 1048576 / $bs`
      26. wlist=""
      27. rlist=""
      28. synctests="async"
      29. if [ $enablesynctests = "yes" ]; then
      30. synctests="sync "$synctests
      31. fi
      32. echo
      33. echo "Measuring NFS throughput..."
      34. for factor in $blocksizelist
      35. do
      36. for protocol in udp tcp
      37. do
      38. for synchronized in $synctests
      39. do
      40. size=`expr $factor \* 1024`
      41. bitcount=`expr $bs \* $count \* 8`
      42. umount $dboxmountpoint 2>/dev/null
      43. mount -t nfs -o rw,soft,$protocol,nolock,$synchronized,rsize=$size,wsize=$size $serverip:$exportdir $dboxmountpoint
      44. echo "Mount options: "$protocol", "$synchronized", wsize="$size
      45. echo "writing "$filesize" MBytes..."
      46. a=`date +%s`
      47. dd if=/dev/zero of=$dboxmountpoint/test bs=$bs count=$count 2>/dev/null;
      48. if [ $? = "0" ]
      49. then
      50. z=`date +%s`
      51. duration=`expr $z - $a`
      52. throughput=`expr $bitcount / $duration`
      53. echo "Success after "$duration" seconds"
      54. else
      55. throughput="Failure"
      56. echo "Failure"
      57. fi
      58. wlist=$wlist$throughput" with "$protocol","$synchronized",wsize="$size"\n"
      59. echo "Mount options: "$protocol", "$synchronized", rsize="$size
      60. echo "reading "$filesize" MBytes..."
      61. a=`date +%s`
      62. dd of=/dev/null if=$dboxmountpoint/test bs=$bs count=$count 2>/dev/null;
      63. if [ $? = "0" ]
      64. then
      65. z=`date +%s`
      66. duration=`expr $z - $a`
      67. throughput=`expr $bitcount / $duration`
      68. echo "Success after "$duration" seconds"
      69. else
      70. throughput="Failure"
      71. echo "Failure"
      72. fi
      73. rlist=$rlist$throughput" with "$protocol","$synchronized",rsize="$size"\n"
      74. echo
      75. done
      76. done
      77. done
      78. echo "Results for write throughput:"
      79. echo -e $wlist | sort -nr | sed 's/^\([0-9]*\)\([0-9]\{3\}\)\([0-9]\{3\}\(.*\)\)/\1.\2 Mbit\/s\4/g'
      80. echo "Results for read throughput:"
      81. echo -e $rlist | sort -nr | sed 's/^\([0-9]*\)\([0-9]\{3\}\)\([0-9]\{3\}\(.*\)\)/\1.\2 Mbit\/s\4/g'
      Alles anzeigen
      Mit folgendem Ergebnis:
      Results for write throughput:
      536.870 Mbit/s with udp,async,wsize=32768
      536.870 Mbit/s with udp,async,wsize=16384
      536.870 Mbit/s with tcp,async,wsize=16384
      357.913 Mbit/s with udp,async,wsize=8192
      357.913 Mbit/s with udp,async,wsize=4096
      357.913 Mbit/s with tcp,async,wsize=8192
      357.913 Mbit/s with tcp,async,wsize=32768
      268.435 Mbit/s with tcp,async,wsize=4096
      134.217 Mbit/s with tcp,sync,wsize=8192
      134.217 Mbit/s with tcp,sync,wsize=32768
      119.304 Mbit/s with tcp,sync,wsize=16384
      97.612 Mbit/s with udp,sync,wsize=8192
      97.612 Mbit/s with udp,sync,wsize=32768
      97.612 Mbit/s with udp,sync,wsize=16384
      82.595 Mbit/s with udp,sync,wsize=4096
      63.161 Mbit/s with tcp,sync,wsize=4096

      Results for read throughput:
      1073.741 Mbit/s with udp,async,rsize=8192
      1073.741 Mbit/s with udp,async,rsize=32768
      1073.741 Mbit/s with tcp,async,rsize=32768
      536.870 Mbit/s with udp,sync,rsize=4096
      536.870 Mbit/s with udp,async,rsize=4096
      536.870 Mbit/s with tcp,sync,rsize=4096
      with udp,sync,rsize=8192
      with udp,sync,rsize=32768
      with udp,sync,rsize=16384
      with udp,async,rsize=16384
      with tcp,sync,rsize=8192
      with tcp,sync,rsize=32768
      with tcp,sync,rsize=16384
      with tcp,async,rsize=8192
      with tcp,async,rsize=4096
      with tcp,async,rsize=16384
      Allerdings hab ich das Problem, dass beim Mount per Networkbrowser die Option async nicht genutzt wird.

      XML-Quellcode: automounts.xml

      1. <?xml version="1.0" ?>
      2. <mountmanager>
      3. <nfs>
      4. <mount>
      5. <active>True</active>
      6. <hdd_replacement>False</hdd_replacement>
      7. <ip>192.168.88.254</ip>
      8. <sharename>NAS</sharename>
      9. <sharedir>movie</sharedir>
      10. <options>rw,nolock,tcp,async,wsize=16384,rsize=32768</options>
      11. <mount_system>classic</mount_system>
      12. </mount>
      13. </nfs>
      14. </mountmanager>
      Alles anzeigen
      Beim Mounten per auto.network_vti werden gefühlt noch weniger Optionen mit übergeben und die auto.network hab ich bisher noch nicht zum Laufen bekommen :)

      hoffe Ihr habt noch eine Idee.
      Frohes neues Jahr

      greetz gerry
    • Hast du auto.network_vti editiert? Das funktioniert nicht. Änderungen musst du mit dem Freigabe-Editor vornehmen oder notfalls auch in automounts.xml.

      Die Datenraten zum NAS sind allerdings so hoch, dass du mMn an der falschen Stelle suchst.
    • gerry6n schrieb:

      Hi,

      hab immer wieder Probleme mit auf Aufnahmen auf meine QNAP per NFS.
      Ja was für Probleme denn?

      Ich habe auch eine QNAP und empfinde keinerlei probleme wenn ich mittels webbrowser den mount erstellt habe ohne extra dingens in die Zeile optionen
      async braucht man nicht
      nfsvers= könnte man vielleicht brauchen das hast du selber eingestellt am QNAP unter NFS freigaben
      siehe bild anbei
      Dateien
      • Screenshot_33.png

        (35,06 kB, 12 mal heruntergeladen, zuletzt: )
      :D keine kohle mehr :D
    • Hi, die Probleme äußern sich in Form von Freezern bzw. das Bild verpixelt. Die Probleme sind mir beim normalen TV schauen noch nicht aufgefallen. Und ganz vergessen, es sind Aufnahmen auf ZDF HD betroffen.

      PS: ja die Optionen in der QNAP habe ich aktiv.

      greetz gerry
    • Vielen Dank für eure Hilfe,

      es scheint im Moment zu funktionieren zumindest mit den Aufnahmen auf die interne SSD.

      Außerdem hab ich nochmal einen Suchlauf gemacht mit vorherigem Löschen der Sender.

      Und als als Randinfo, wenn man mit async mountet bekommt man es wohl nicht als Option angezeigt. Wenn man dagegen Sync angibt erscheint es beim abfragen über cat /proc/mounts