Increase RAM Capacity

Increase RAM Capacity

Use a memory card as extended cache for RAM to avoid system lag when many services have to run at the same time in a short period.

Check the amount of RAM being used: $ htop or free --mega

Increase RAM Capacity

Disable the swap file:

sudo dphys-swapfile swapoff

sudo nano /etc/dphys-swapfile

Declare the Swapfile

SWAP_SIZE=1G && SWAP_FILE=/swapfile && sudo swapoff -a && sudo rm -rf $SWAP_FILE && sudo fallocate -l $SWAP_SIZE $SWAP_FILE && sudo chmod 600 $SWAP_FILE && sudo mkswap $SWAP_FILE && sudo swapon -a

Enable the swap file:

sudo dphys-swapfile swapon

Create a new swap file:

sudo dphys-swapfile setup

Bạn đã đăng ký thành công vào Geek Playground
Tuyệt vời! Tiếp theo, hoàn tất thanh toán để có quyền truy cập đầy đủ vào Geek Playground
Chào mừng trở lại! Bạn đã đăng nhập thành công.
Thành công! Tài khoản của bạn đã được kích hoạt đầy đủ, bạn hiện có quyền truy cập vào tất cả nội dung.
Thành công! Thông tin thanh toán của bạn đã được cập nhật.
Cập nhật thông tin thanh toán không thành công.