]>
git.proxmox.com Git - ceph.git/blob - ceph/src/dmclock/benchmark/data_gen.sh
5 # parameter check -- output_file name
6 if [ "$1" != "" ]; then
9 echo "Please provide the name of the output file"
13 # parameter check -- k-value
14 if [ "$2" != "" ]; then
17 echo "Please provide the maximum K_WAY value"
21 # parameter check --repeat
22 if [ "$3" != "" ]; then
26 echo "k-way:$k_way, num_repeat:$repeat"
28 # create simulators in different directories
30 while [ $k -le $k_way ]
35 cmake
-DCMAKE_BUILD_TYPE=Release
-DK_WAY_HEAP=$k ..
/..
/.
43 echo '' > $output_file
44 for config
in "$config_dir"/*.conf
47 while [ $k -le $k_way ]
51 # repeat same experiment
53 while [ $i -lt $repeat ]
59 #sudo sh -c 'echo 1 >/proc/sys/vm/drop_caches'
60 #sudo sh -c 'echo 2 >/proc/sys/vm/drop_caches'
61 #sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'
64 msg
="file_name:$k:$config"
65 echo $msg >> ..
/$output_file
66 echo "running $msg ..."
67 .
/sim
/dmc_sim
-c ..
/$config |
awk '(/average/)' >> ..
/$output_file