test: rusage: Add test private-mapping device file
Change-Id: I8b298ce598c2a5560138a1b694ccc7204d4ebbde
This commit is contained in:
@ -119,3 +119,5 @@ file map,num_threads=1 [OK]
|
|||||||
anon mmap@numa#1 [OK]
|
anon mmap@numa#1 [OK]
|
||||||
|
|
||||||
200: Test ihk_os_getrusage(), user time per CPU
|
200: Test ihk_os_getrusage(), user time per CPU
|
||||||
|
|
||||||
|
300: Private-map /dev/fb0
|
||||||
|
|||||||
0
test/rusage/match.pl
Normal file → Executable file
0
test/rusage/match.pl
Normal file → Executable file
@ -9,6 +9,7 @@ testopt=""
|
|||||||
kill="n"
|
kill="n"
|
||||||
dryrun="n"
|
dryrun="n"
|
||||||
sleepopt="0.4"
|
sleepopt="0.4"
|
||||||
|
sudo=
|
||||||
|
|
||||||
echo Executing ${testname}
|
echo Executing ${testname}
|
||||||
|
|
||||||
@ -95,9 +96,9 @@ case ${testname} in
|
|||||||
cp $bn_mck ./file
|
cp $bn_mck ./file
|
||||||
;;
|
;;
|
||||||
005)
|
005)
|
||||||
echo ssh wallaby15.aics-sys.riken.jp ${HOME}/project/src/verbs/rdma_wr -p 10000&
|
echo ssh wallaby15 ${HOME}/project/src/verbs/rdma_wr -p 10000&
|
||||||
read -p "Run rdma_wr on wallaby15 and enter the port number." port
|
read -p "Run rdma_wr on wallaby15 and enter the port number." port
|
||||||
testopt="-s wallaby15.aics-sys.riken.jp -p ${port}"
|
testopt="-s wallaby15 -p ${port}"
|
||||||
;;
|
;;
|
||||||
006)
|
006)
|
||||||
mcexecopt="--mpol-shm-premap"
|
mcexecopt="--mpol-shm-premap"
|
||||||
@ -146,6 +147,10 @@ case ${testname} in
|
|||||||
200)
|
200)
|
||||||
bootopt="-c 1,2,3 -m 256M"
|
bootopt="-c 1,2,3 -m 256M"
|
||||||
;;
|
;;
|
||||||
|
300)
|
||||||
|
bootopt="-c 1,2,3 -m 256M"
|
||||||
|
sudo="sudo"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo Unknown test case
|
echo Unknown test case
|
||||||
exit 255
|
exit 255
|
||||||
@ -211,7 +216,7 @@ else
|
|||||||
grep user ./${testname}.log
|
grep user ./${testname}.log
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
${MCK_DIR}/bin/mcexec ${mcexecopt} ./${bn_mck} ${testopt}
|
${sudo} ${MCK_DIR}/bin/mcexec ${mcexecopt} ./${bn_mck} ${testopt}
|
||||||
sudo ${MCK_DIR}/sbin/ihkosctl 0 kmsg > ./${testname}.log
|
sudo ${MCK_DIR}/sbin/ihkosctl 0 kmsg > ./${testname}.log
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
@ -234,8 +239,8 @@ case ${testname} in
|
|||||||
printf "\"All tests finished\" is shown\n"
|
printf "\"All tests finished\" is shown\n"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "*** cat ${testname}.log (kmsg) > ./match.pl to confirm there's no stray add/sub.\n"
|
printf "*** ./match.pl ${testname}.log (kmsg) to confirm all adds have the matching subs.\n"
|
||||||
printf "*** Look ${testname}.log (kmsg) to confirm memory_stat_*[*] returned to zero when the last thread exits.\n"
|
printf "*** Look at ${testname}.log (kmsg) to confirm memory_stat_*[*] returned to zero when the last thread exits.\n"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user