dmsetup remove_all
wipefs -a --force /dev/nvme1n1p1
mkfs -t ext4 -q -F /dev/nvme1n1p1
mkdir -p /fs/nvme1n1p1
mount -t ext4 /dev/nvme1n1p1 /fs/nvme1n1p1

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

fs_mark -d /fs/nvme1n1p1/1 -d /fs/nvme1n1p1/2 -d /fs/nvme1n1p1/3 -d /fs/nvme1n1p1/4 -d /fs/nvme1n1p1/5 -d /fs/nvme1n1p1/6 -d /fs/nvme1n1p1/7 -d /fs/nvme1n1p1/8 -d /fs/nvme1n1p1/9 -d /fs/nvme1n1p1/10 -d /fs/nvme1n1p1/11 -d /fs/nvme1n1p1/12 -d /fs/nvme1n1p1/13 -d /fs/nvme1n1p1/14 -d /fs/nvme1n1p1/15 -d /fs/nvme1n1p1/16 -D 16 -N 256 -n 76800 -L 8 -S 1 -s 8192