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.
Alles anzeigen
Mit folgendem Ergebnis:
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
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
- n#!/bin/sh
- # IP of your NFS server
- serverip=192.168.88.254
- # exported directory on your NFS server
- exportdir=movie
- # mount point on dbox
- dboxmountpoint="/media/net"
- # filesize to transfer in MBytes.
- # At least 8 MByte. Good values are 32 or 64 MByte.
- # Try 128 to be more accurate (takes much longer!)
- filesize=128
- # block sizes to test in KBytes, possible values are 1 2 4 8 16 32.
- # values have to be separated with spaces. See examples below.
- # blocksizelist="4 8 32"
- # blocksizelist="16"
- blocksizelist="4 8 16 32"
- # wether to enable synchronous reading, writing. Possible values are "yes"
- # or no. Normally synchronous reading or writing should be slower than
- # asynchronous, so to save some time most people would say "no" here.
- enablesynctests="yes"
- ##################################################################
- ######## don't edit below this line ########
- ##################################################################
- bs=8192
- count=`expr $filesize \* 1048576 / $bs`
- wlist=""
- rlist=""
- synctests="async"
- if [ $enablesynctests = "yes" ]; then
- synctests="sync "$synctests
- fi
- echo
- echo "Measuring NFS throughput..."
- for factor in $blocksizelist
- do
- for protocol in udp tcp
- do
- for synchronized in $synctests
- do
- size=`expr $factor \* 1024`
- bitcount=`expr $bs \* $count \* 8`
- umount $dboxmountpoint 2>/dev/null
- mount -t nfs -o rw,soft,$protocol,nolock,$synchronized,rsize=$size,wsize=$size $serverip:$exportdir $dboxmountpoint
- echo "Mount options: "$protocol", "$synchronized", wsize="$size
- echo "writing "$filesize" MBytes..."
- a=`date +%s`
- dd if=/dev/zero of=$dboxmountpoint/test bs=$bs count=$count 2>/dev/null;
- if [ $? = "0" ]
- then
- z=`date +%s`
- duration=`expr $z - $a`
- throughput=`expr $bitcount / $duration`
- echo "Success after "$duration" seconds"
- else
- throughput="Failure"
- echo "Failure"
- fi
- wlist=$wlist$throughput" with "$protocol","$synchronized",wsize="$size"\n"
- echo "Mount options: "$protocol", "$synchronized", rsize="$size
- echo "reading "$filesize" MBytes..."
- a=`date +%s`
- dd of=/dev/null if=$dboxmountpoint/test bs=$bs count=$count 2>/dev/null;
- if [ $? = "0" ]
- then
- z=`date +%s`
- duration=`expr $z - $a`
- throughput=`expr $bitcount / $duration`
- echo "Success after "$duration" seconds"
- else
- throughput="Failure"
- echo "Failure"
- fi
- rlist=$rlist$throughput" with "$protocol","$synchronized",rsize="$size"\n"
- echo
- done
- done
- done
- echo "Results for write throughput:"
- echo -e $wlist | sort -nr | sed 's/^\([0-9]*\)\([0-9]\{3\}\)\([0-9]\{3\}\(.*\)\)/\1.\2 Mbit\/s\4/g'
- echo "Results for read throughput:"
- echo -e $rlist | sort -nr | sed 's/^\([0-9]*\)\([0-9]\{3\}\)\([0-9]\{3\}\(.*\)\)/\1.\2 Mbit\/s\4/g'
Allerdings hab ich das Problem, dass beim Mount per Networkbrowser die Option async nicht genutzt wird.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
XML-Quellcode: automounts.xml
- <?xml version="1.0" ?>
- <mountmanager>
- <nfs>
- <mount>
- <active>True</active>
- <hdd_replacement>False</hdd_replacement>
- <ip>192.168.88.254</ip>
- <sharename>NAS</sharename>
- <sharedir>movie</sharedir>
- <options>rw,nolock,tcp,async,wsize=16384,rsize=32768</options>
- <mount_system>classic</mount_system>
- </mount>
- </nfs>
- </mountmanager>
hoffe Ihr habt noch eine Idee.
Frohes neues Jahr
greetz gerry