Tag: LINUX

Change Swap size on a running linux machine
LINUX

Change Swap size on a running linux machine

Make all swap off sudo swapoff -a Resize the swapfile sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 Make swapfile usable sudo mkswap /swapfile Make swapon again sudo swapon /swapfile

davide
Linux - Freeing RAM without rebooting
DEVOPS

Linux - Freeing RAM without rebooting

Simple command to free RAM on linux without rebooting #!/bin/bash sync; echo 1 > /proc/sys/vm/drop_caches; echo 2 > /proc/sys/vm/drop_caches; echo 3 > /proc/sys/vm/drop_caches Save into a file and set executable permission. Run the file with root privileges.

davide
ESC
// awaiting input_