VisionScreens Wiki

everything but the kitchen sink

User Tools

Site Tools


Linux VPS

Increase swap to 1-2x RAM

# get current swap size
du --apparent-size --block-size=1 /var/swap.img -h

# create 8GB swap
swapoff /var/swap.img
dd if=/dev/zero of=/var/swap.img bs=1024k count=8000
mkswap /var/swap.img
swapon /var/swap.img

Optimisation for web server workload:


Tail log:

journalctl -xefu service-name
linux_vps.txt · Last modified: 2023/05/21 05:10 by superuser

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki