modprobe -r brd modprobe brd rd_nr=1 rd_size=50331648 dmsetup remove_all wipefs -a --force /dev/ram0 mkfs -t ext4 -q -E lazy_itable_init=0,lazy_journal_init=0 -F /dev/ram0 mkdir -p /fs/ram0 mount -t ext4 /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 -n 6144 -L 1 -S 1 -s 4194304