summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-01-22 12:15:39 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-01-22 12:15:39 -0500
commit744ca2397c5cc631aad925a20d4fd70f0eef0ec4 (patch)
treebc17d31c72252dd36940a792dea5e4f27ff0ee16 /tools
parent7ef0df7904a876aa61486b055a6e702a01b4e901 (diff)
fix buffer cache flush for linux, and avoid incorrect indirection in interleaved case
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-readtest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/run-readtest.sh b/tools/run-readtest.sh
index 5da514bc52..b50add4944 100755
--- a/tools/run-readtest.sh
+++ b/tools/run-readtest.sh
@@ -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
: