How does kernel support swap limit?
Solution 1:
You need a couple of arguments to be passed to the Kernel at boot.
Run sudoedit /etc/default/grub
in a terminal and edit the GRUB_CMDLINE_LINUX
line so it looks like this:
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
Save and exit and then run sudo update-grub
and reboot. That should be enough.