for cpu_dir in /sys/devices/system/cpu/cpu[0-9]*
do
	online_file="$cpu_dir"/online
	[ -f "$online_file" ] && [ "$(cat "$online_file")" -eq 0 ] && continue

	file="$cpu_dir"/cpufreq/scaling_governor
	[ -f "$file" ] && echo "performance" > "$file"
done

cp data/workfile.new_fserver .
mkdir -p /fs/shm
umount /fs/shm
mount -t tmpfs tmpfs /fs/shm
echo FILESIZE 10k > reaim.config
echo POOLSIZE 1m >> reaim.config
echo DISKDIR /fs/shm  >> reaim.config
./reaim -s256 -e256 -i256 -fworkfile.new_fserver -r1 -c./reaim.config -l/tmp/lkp/result/reaim_debug -j100
./reaim -s256 -e256 -i256 -fworkfile.new_fserver -r1 -c./reaim.config -l/tmp/lkp/result/reaim_debug -j100
./reaim -s256 -e256 -i256 -fworkfile.new_fserver -r1 -c./reaim.config -l/tmp/lkp/result/reaim_debug -j100
./reaim -s256 -e256 -i256 -fworkfile.new_fserver -r1 -c./reaim.config -l/tmp/lkp/result/reaim_debug -j100