I installed MX Linux recently on my laptop that has 4 GB RAM. It quickly runs out of memory even with 7-8 tabs on Firefox, which freezes. To create swap file, I am getting mixed views on two issues.
(1) swap file doesn’t work well on ext4 partition, and a partition is a better option; I would prefer a file over a partition;
(2) using dd is better than fallocate; I would prefer the latter as it seems neater and more intuitive for a newbie like me.
I’ve read through the thread and didn’t find a mention of how swap files supposedly do not work well on ext4. It’s normal to use swap files on ext4. There is also barely any difference between using a swap file or partition.
You can use fallocate on MX Linux, just as on any other consumer Linux.