Ruckeln bei Aufnahmen auf NFS-Server

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

    • Ruckeln bei Aufnahmen auf NFS-Server

      Habe seit einiger Zeit ein Problem bei Aufnahmen auf meine NFS-Server.
      Als Server kommt ein Banana-Pi mit Debian zum Einsatz an dem per S-AtA ein 4GB Platte hängt.
      Bis vor einiger Zeit konnt ich problemlos auch mehrere Aufnahmen gleichzeitig ohne Aussetzer tätigen.
      Inzwischen geht das nicht mehr.

      Der Aufnahmestream wird irgendwie nicht kontinuierlich geschrieben.

      Ein Ausgabe nach

      iostat -x sda1 1 100

      während der Aufnahme ergab folgendes:

      Spoiler anzeigen

      root@bananapi ~ # iostat -x sda1 1 100
      Linux 3.4.111-bananian (bananapi) 24.03.2018 _armv7l_ (2 CPU)


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,02 0,00 1,37 1,42 0,00 97,19


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,68 0,22 0,97 8,66 240,27 418,42 0,09 74,98 3,22 91,34 25,13 2,99


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 6,09 0,00 0,00 93,91


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 3,03 0,00 0,00 96,97


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 10,88 0,00 0,00 89,12


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 3,05 3,55 0,00 93,40


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 1,00 0,00 2,00 0,00 12,00 12,00 0,06 30,00 0,00 30,00 30,00 6,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 6,28 0,00 0,00 93,72


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 8,67 0,00 0,00 91,33


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 13,33 0,00 0,00 86,67


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 11,28 0,00 0,00 88,72


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 8,76 0,00 0,00 91,24


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 1,00 0,00 1,00 0,00 8,00 16,00 0,01 0,00 0,00 0,00 10,00 1,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 10,71 1,53 0,00 87,76


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 1,00 0,00 4,00 8,00 0,07 80,00 0,00 80,00 70,00 7,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 10,00 0,00 0,00 90,00


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 10,42 0,00 0,00 89,58


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 12,63 0,00 0,00 87,37


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 11,34 0,00 0,00 88,66


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 10,20 2,04 0,00 87,76


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 1,00 0,00 2,00 0,00 12,00 12,00 0,07 35,00 0,00 35,00 35,00 7,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 12,18 0,00 0,00 87,82


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 18,50 0,00 0,00 81,50


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 13,00 0,00 0,00 87,00


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 13,13 0,00 0,00 86,87


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 11,73 1,02 0,00 87,24


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 1,00 0,00 2,00 0,00 12,00 12,00 0,08 40,00 0,00 40,00 40,00 8,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 15,10 0,00 0,00 84,90


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      1,05 0,00 13,68 51,05 0,00 34,21


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 7,00 0,00 39,00 0,00 19284,00 988,92 33,23 286,67 0,00 286,67 16,15 63,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 7,85 61,78 0,00 30,37


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 4,00 0,00 44,00 0,00 19712,00 896,00 11,55 763,64 0,00 763,64 16,59 73,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 8,72 0,00 0,00 91,28


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 10,36 0,00 0,00 89,64


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 8,67 0,00 0,00 91,33


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 9,18 0,00 0,00 90,82


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 11,22 2,04 0,00 86,73


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 9,00 0,00 28,00 0,00 8836,00 631,14 5,05 180,36 0,00 180,36 17,14 48,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 9,18 0,00 0,00 90,82


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 9,38 0,00 0,00 90,62


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 7,22 0,00 0,00 92,78


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00




      Es sind immer wieder mehrere Sekunden in Folge in denen nichts geschrieben wird.
      Dann folgt eine hohe Schreibrate, dann wieder nichts.

      beim Abspielen, auch bei Filmen mit sehr hoher Datenrate ist der Stream dagegen kontinuirlich:

      Spoiler anzeigen


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 25,00 0,00 3200,00 0,00 256,00 0,04 1,60 1,60 0,00 1,60 4,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 13,20 0,00 0,00 86,80


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 24,00 0,00 3072,00 0,00 256,00 0,04 1,67 1,67 0,00 1,67 4,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 14,29 0,00 0,00 85,71


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 27,00 0,00 3456,00 0,00 256,00 0,06 2,22 2,22 0,00 2,22 6,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 10,47 0,00 0,00 89,53


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 22,00 0,00 2944,00 0,00 267,64 0,04 1,82 1,82 0,00 1,82 4,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 13,47 0,00 0,00 86,53


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 25,00 0,00 3200,00 0,00 256,00 0,04 1,60 1,60 0,00 1,60 4,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 16,00 0,00 0,00 84,00


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 25,00 0,00 3200,00 0,00 256,00 0,06 2,40 2,40 0,00 2,40 6,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 12,37 0,00 0,00 87,63


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 24,00 0,00 3072,00 0,00 256,00 0,02 0,83 0,83 0,00 0,83 2,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 12,18 0,00 0,00 87,82


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 20,00 0,00 2560,00 0,00 256,00 0,03 1,50 1,50 0,00 1,50 3,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 8,70 0,00 0,00 91,30


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 25,00 0,00 3200,00 0,00 256,00 0,01 0,40 0,40 0,00 0,40 1,00


      avg-cpu: %user %nice %system %iowait %steal %idle
      0,00 0,00 11,62 0,00 0,00 88,38


      Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
      sda1 0,00 0,00 21,00 0,00 2688,00 0,00 256,00 0,01 0,48 0,48 0,00 0,48 1,00




      gemountet ist mit:

      192.168.178.46:/media/USB-Disk/movie on /media/net/BANANA type nfs (rw,relatime,vers=3,rsize=8192,wsize=4096,namlen=255,soft,nolock,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=all,addr=192.168.178.46)

      iperf ergibt:
      root@vusolo2:~#
      root@vusolo2:~# iperf -c 192.168.178.46
      ------------------------------------------------------------
      Client connecting to 192.168.178.46, TCP port 5001
      TCP window size: 43.8 KByte (default)
      ------------------------------------------------------------
      [ 3] local 192.168.178.4 port 39852 connected with 192.168.178.46 port 5001
      [ 3] 0.0-10.0 sec 114 MBytes 96.1 Mbits/sec

      also auch ok.

      habe den Server schon neu aufgesetzt und alle möglichen Mount-Optionen probiert, aber der Fehler bleibt.
      Vielleicht hat noch jemand einen Rat für mich.

      Danke

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von daewoo42 ()

    • Außer dem ungewöhnlich geringen wsize ist der Mount selbst unauffällig.

      Sofern die Platte am Pi keinen Hau hat - das hast du sicher schon getestet, wäre mein erster Verdacht ein schadhaftes Netzwerkkabel oder ein wild gewordener Switch...
      [i][b]Kein Backup - kein Mitleid[/b][/i]
    • Du kannst ja mal mit dd auf dem NAS ein paar parallel Schreibvorgänge starten, um zu sehen, wie schnell die Daten dabei auf die HDD gehen.

      Dann kannst du das ganze auch von der VU+ über das Netz mal probieren.

      Eventuell so, dabei werde pro Datei 500MB etwas erzeugt
      HDD=/media/hdd (oder wo dein Mountpoint ist)
      dd if=/dev/zero of=$HDD/test01.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test02.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test03.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test04.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test05.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test06.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test07.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test08.img bs=16384 count=31250 &
      dd if=/dev/zero of=$HDD/test09.img bs=16384 count=31250 &
    • daewoo42 schrieb:

      (rw,relatime,vers=3,rsize=8192,wsize=4096,namlen=255,soft,nolock,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=all,addr=192.168.178.46)
      ich würde den ganzen "Unsinn" mal weglassen und die Boxen die Parameter aushandeln lassen, das klappt im allgemeinen recht gut.
      ACHTUNG!!!! Hier folgt eine Signatur:


      Die Benutzung der Suche ist NICHT verboten! D:

      "Hilfe!!!" ist kein sinnvoller Titel für einen neuen Thread, ebensowenig "VU+Zero" oder vergleichbares.

      Keine Hilfe ohne ausgefülltes Profil!
      Kein Netzwerksupport bei manueller IP-Adress-Vergabe :-)
      Kein Support bei portforwardings/ Portfreigaben

      Profil extra angepasst für die arme Emma, die sonst nichts im Leben hat :happy1:
    • dann hab ich das evtl. falsch gelesen
      wäre dann aber m.E. umso merkwürdiger
      ACHTUNG!!!! Hier folgt eine Signatur:


      Die Benutzung der Suche ist NICHT verboten! D:

      "Hilfe!!!" ist kein sinnvoller Titel für einen neuen Thread, ebensowenig "VU+Zero" oder vergleichbares.

      Keine Hilfe ohne ausgefülltes Profil!
      Kein Netzwerksupport bei manueller IP-Adress-Vergabe :-)
      Kein Support bei portforwardings/ Portfreigaben

      Profil extra angepasst für die arme Emma, die sonst nichts im Leben hat :happy1:
    • daewoo42 schrieb:

      soft,nolock,proto=tcp,port=2049
      sehr viele NFS server gehabt

      wie Server und Client tatsäglich aneinander vermitteln geht ohne Optionen am besten

      auch ich denke die soft anstatt hard und proto=tcp sollte man mal auslassen
      der port wird ja sowieso nicht wirksam, mappen kann fehler ergeben


      daewoo schrieb:

      Client connecting to 192.168.178.46, TCP port 5001

      mit weniger optionen können Server und Client sich besser aneinander angleichen, was man wiederum mit ein telnet befehl mount sehen kann
      :D keine kohle mehr :D
    • Welche hdd genau hast du an deinem Nas Server angeschlossen?
    • Ich habe den Eindruck, dass diese externe HDD auch intern eine SMR HDD eingebaut hat, inbesondere bei 4TB und 2,5 Zoll. Im Netz findes man Hinweise dazu. SMR HDDs haben manchmal Schreibperformanceprobleme, wenn oft Daten an Stellen geschrieben werden müssen, wo schon auf Nachbarspuren Daten stehen. Diese müssen dann erstmal gelesen werden und dann muss alles alte und neu hintereinander weggeschrieben werden.

      Meiner Meinung nach wirkt sich dieser Nachteil immer mehr aus, wenn man oft auf eine HDD Dinge schreibt und wieder löscht.

      Du kannst auch den Thread hier
      ST2000LM015, Nachteile einer HDD mit SMR

      mal dazu lesen und auch mal im Netz nacnh PMR und SMR HDDs Aufzeichnungsverfahren suchen und nachlesen, was das genau macht.

      Vielleicht hast du ja auch mit deinem NAS ein ähnliches Problem damit, insbesondere wenn es jetzt plötzlich auftritt und vorher ohne weitere Änderung nicht da war.
    • Viel Erfolg. Eine 3,5 Zoll kommt nicht in Frage? Die gibt es ja auch größer und sind ja in der regel pro GB preiswerter als die 2,5er