Swap partition in 17.04

Hi !
I thougt Ubunut mate 17.04 will not use a swap partition when RAM >4GB.
My new installation (encrypted with default partition settings) creates a swap partition,

see /etc/fstab:

/dev/mapper/ubuntu--mate--vg-root / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1
/boot was on /dev/sda1 during installation

UUID=64f59812-dfa3-4df9-8417-6bad1fa84ebf /boot ext4 defaults 0 2
/dev/mapper/ubuntu--mate--vg-swap_1 none swap sw 0 0


[quote=“djchris, post:1, topic:13275”]I thougt Ubunut mate 17.04 will not use a swap partition when RAM >4GB.[/quote]Actually, it does not create a swap partition; it is supposed to create a swap file.

That subtle difference aside, could you drop into terminal and show us the output of:

cat /proc/swaps

To see if it actually is showing a swap.

2 Likes

cat /proc/swaps:

[quote=“djchris, post:1, topic:13275”]/dev/mapper/ubuntu–mate–vg-swap_1 none swap sw 0 0[/quote]Well, if you’re sure you don’t need the swap, you could always just disable it by commenting out
/dev/mapper/ubuntu--mate--vg-swap_1 none swap sw 0 0
in
/etc/fstab
Like so:
#/dev/mapper/ubuntu--mate--vg-swap_1 none swap sw 0 0

And then rebooting. That should effectively completely disable it.

THX.

I will leave its as it is.