Chat

Read Tao

Play Pacman

Software Repository

Linux Ditributions

Chatbot Source Code

SNES Emulator and Games

PS2 Emulator and Games

DNS Tools

Music

Docs

 

How to adjust SWAP memory
Updated: Jun 2, 2024

SWAP Memory
===========

sudo swapon --show

NAME      TYPE      SIZE USED PRIO
/dev/sda5 partition 975M   0B   -2

sudo swapoff /dev/sda5

To Specify 16GB
dd if=/dev/zero of=/dev/sda5 bs=1024 count=16M

mkswap /dev/sda5
swapon /dev/sda5

Note: If UUID changes, make sure to add it to your /etc/fstab file.

# swap was on /dev/sda5 during installation
UUID=a453ae4d-7974-4c50-85c3-172a45f65ef5 none            swap    sw              0       0