fix buffer cache flush for linux, and avoid incorrect indirection in interleaved...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 22 Jan 2015 17:15:39 +0000 (12:15 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 22 Jan 2015 17:15:39 +0000 (12:15 -0500)
tools/run-readtest.sh

index 5da514bc52e6f5d16abb5e2d1381183d1c154394..b50add4944558beeaa22d234b21af0e7b316023a 100755 (executable)
@@ -61,7 +61,7 @@ if [ x$needfiles != x ] ; then
        limit=`expr $filesize * 1048576`
        while [ $size -lt $limit ] ; do
            for i in `seq 1 $numfiles` ; do
-               dd if=/dev/zero bs=$write_blocksize count=1 >> $dir/testfile_$i >/dev/null 2>&1
+               dd if=/dev/zero bs=$write_blocksize count=1 >> $dir/testfile_$i 2>/dev/null
            done
            size=`expr $size + $write_blocksize`
        done
@@ -75,7 +75,7 @@ for bs in $@ ; do
         sudo purge
     elif [ -f /proc/sys/vm/drop_cache ] ; then
         # Linux cache clearing
-        echo 3 | sudo tee /proc/sys/vm/drop/cache >/dev/null
+        echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null
     else       
         # need an alternative for other operating systems
         :