aboutsummaryrefslogtreecommitdiffstats
path: root/case-direct-write
blob: b3a48c917b5da512169bbc55cb5f853bbd6d7cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

#
# Exercises functions in filemap.c of mm/
#
#
source ./hw_vars

USEMEM_DIRECT_WRITE=./usemem_direct_write

SIZE=$((mem / nr_cpu ))


for i in $(seq $nr_cpu)
do
	create_sparse_file $SPARSE_FILE-$i $SIZE
	$USEMEM_DIRECT_WRITE  $SPARSE_FILE-$i $SIZE &
done
wait

rm $SPARSE_FILE-*