There’s likely a way unless they’re using a custom kernel or some such to block swap. Rather than a partition you use a block file like;
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Creates a 4GB swap file in base of root directory
Changes it to read/write only by root
"Formats" file to be a swap volume
If you do a
free -h command before and after those you should clearly see 0 swap before >0 swap after.
Replace 4G with size desired as 4GB is a bit much on a 10GB disk. You may get by with 1G, but I wouldn’t count on it.
Then modify fstab to add a line;
/swapfile none swap sw 0 0
And to insure you only use swap when there’s no alternative you can edit/add to
/etc/sysctl.conf the following values;
vm.vfs_cache_pressure = 50
Those 2 things force VM to use cache as a last resort. You can google if you really want to understand the mechanism those adjust, but, for low memory machines that occasionally need a bit of large memory, it’s a good setting. Keeps the swap thrashing to a minimum.
I’m going to ask if they’ll consider looking at physical RAM available and perhaps not try to do the fancy baking conversions on machines with < 1G or some sort of way to disable. But… I wouldn’t hold my breath on that one.