shared requirements for all kinds of resources (CPU RAM I/O TX/RX)
# debian/ubuntu
apt install -y stress iperf3 hdparm
# slackware
slackpkg update
slackpkg install screen-4 utempter
slackpkg install rsync cyrus-sasl curl lz4 zstd xxHash nghttp2 brotli
slackpkg install kernel-headers patch gcc-11 automake autoconf-2 binutils make guile gc
wget https://github.com/sbopkg/sbopkg/releases/download/0.38.2/sbopkg-0.38.2-noarch-1_wsr.tgz
installpkg --terse sbopkg-0.38.2-noarch-1_wsr.tgz
sbopkg -r
sbopkg -i stress
sbopkg -i perf3
slackpkg install hdparm
and proceed
(assuming tmem)
lsmod | grep tmem
screen -S ram mkdir -p ram/ mount -t tmpfs -o size=7168M tmpfs ram/ dd if=/dev/zero of=ram/lala bs=1 watch free -m
it will then shrink back by itself
umount ram/ rmdir ram/