host PC Setup
Increase swap partation size
first check whether you have already swap partation and its size
grep Swap /proc/meminfo
check ram size
if your swap+ram size is less then 48 GB then create a swap partation of size = (48 - ramsize)
to create swap partation
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1M
sudo chmod 0600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile # Turn the swap on
If you want to make a 4 GiB file, then change count value to count=4M
make it parmenent
vim /etc/fstab
# Add this line to the end
/swapfile swap swap sw 0 0
disable oom memory killer
sudo systemctl disable --now systemd-oomd
©2023-2024 rculock.com