"modprobe" "-r" "brd" "modprobe" "brd" "rd_nr=1" "rd_size=33554432" dmsetup remove_all wipefs -a --force /dev/ram0 mkfs -t btrfs /dev/ram0 mkdir -p /fs/ram0 mount -t btrfs /dev/ram0 /fs/ram0 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/ram0/1" "-D" "1000000" "-N" "1" "-n" "1000000" "-L" "1" "-S" "1" "-s" "4096"