Skip to content

Instantly share code, notes, and snippets.

@prayagupa
Last active December 14, 2015 19:59
Show Gist options
  • Save prayagupa/5140861 to your computer and use it in GitHub Desktop.
Save prayagupa/5140861 to your computer and use it in GitHub Desktop.
prayag@Prayag:~$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda5 partition 2928636 1365180 -1
http://askubuntu.com/a/159792/37643
prayag@Prayag:~$ swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 2928636 810536 -1
http://askubuntu.com/a/159813/37643
prayag@Prayag:~$ sudo blkid | grep swap
[sudo] password for prayag:
/dev/sda5: UUID="5edf4df5-3d01-4c0f-80f1-cd5a177e4880" TYPE="swap"
for creating swap
http://askubuntu.com/questions/178712/how-to-increase-swap-space-in-ubuntu
For swappiness
prayag@Prayag:~$ cat /proc/sys/vm/swappiness
60
prayag@Prayag:~$ sudo sysctl vm.swappiness=10
vm.swappiness = 10
prayag@Prayag:~$ gksudo gedit /etc/sysctl.conf
prayag@Prayag:~$ gksudo gedit /etc/sysctl.conf
prayag@Prayag:~$ cat /proc/sys/vm/swappiness
10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment