aboutsummaryrefslogtreecommitdiffstats
path: root/case-posix-fadvise
blob: bf244d1103c54ac0994df6dca97f2b653e526dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

#
# Exercises the functions in fadvise.c of mm/
#
# Covers cases POSIX_FADV_WILLNEED and POSIX_FADV_DONTNEED
#
#

. ./hw_vars


for i in `seq $nr_task`
do
	create_sparse_file $SPARSE_FILE-$i $((ROTATE_BYTES / nr_task))
	$USEMEM -D $SPARSE_FILE-$i --open-rw &
done
wait

rm $SPARSE_FILE-*