blob: 8fa3e928553fceb590015108cfa5cae129567234 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
# flush memory with use-once page cache reads
# lru_lock coverage
# 1781926 ____pagevec_lru_add
# 736056 shrink_inactive_list
. ./hw_vars
for i in `seq 1 $nr_task`
do
create_sparse_file $SPARSE_FILE-$i $((ROTATE_BYTES / nr_task))
timeout --foreground -s INT ${runtime:-600} dd bs=4k if=$SPARSE_FILE-$i of=/dev/null > $TMPFS_MNT/dd-output-$i 2>&1 &
done
wait
sleep 1
for file in $TMPFS_MNT/dd-output-*
do
[ -s "$file" ] || {
echo "dd output file empty: $file" >&2
}
cat $file
rm $file
done
rm `seq -f $SPARSE_FILE-%g 1 $nr_task`
|