"modprobe" "-r" "brd" "modprobe" "brd" "rd_nr=1" "rd_size=33554432" dmsetup remove_all wipefs -a --force /dev/ram0 mkfs -t xfs -f -mreflink=0 /dev/ram0 mkdir -p /fs/ram0 modprobe xfs mount -t xfs -o inode64 /dev/ram0 /fs/ram0 mkdir /export mount -t tmpfs nfsv4_root_export /export mkdir -p /export//fs/ram0 mount --bind /fs/ram0 /export//fs/ram0 echo '/export//fs/ram0 *(rw,no_subtree_check,no_root_squash)' >> /etc/exports systemctl restart rpcbind systemctl restart rpc-statd systemctl restart nfs-idmapd systemctl restart nfs-server mkdir -p /nfs/ram0 timeout 5m mount -t nfs -o vers=4 localhost:/fs/ram0 /nfs/ram0 touch /nfs/ram0/wait_for_nfs_grace_period 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 /nfs/ram0/1 -D 1000000 -N 1 -n 1000000 -L 1 -S 1 -s 4096