5
I ran swapon -s
on a VPS that I’m using and discovered that there’s a swap partition pointing at /dev/null
.
# swapon -s
Filename Type Size Used Priority
/dev/null partition 262144 0 -1
Does this mean that there isn’t any actual swap, and that anything that’s swapped out will be lost? Is this better/worse than not having any swap at all?
The output of df -h
:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/ploop63064p1 20G 1.3G 18G 7% /
none 128M 4.0K 128M 1% /dev
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 26M 40K 26M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 128M 0 128M 0% /run/shm
none 100M 0 100M 0% /run/user
The output of cat /etc/fstab
:
# cat /etc/fstab
proc /proc proc defaults 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /run/shm tmpfs defaults 0 0
The output of cat /proc/sys/vm/swappiness
:
# cat /proc/sys/vm/swappiness
60
What is the output of
df -h
? – JakeGould – 2015-02-05T22:47:26.457Edited question to include
df -h
output. – Alex Grin – 2015-02-06T01:04:36.350Thanks. Helpful. What is the output of
cat /proc/sys/vm/swappiness
? – JakeGould – 2015-02-06T01:51:18.763It's 60. I tried changing that but it looks like the VPS provider has that locked down. – Alex Grin – 2015-02-06T14:33:27.457