I am using Ubuntu 20.04 Server edition.
I have a 512GB of RAM, with about 130GB typically used for a process running on the machine. I also have two ramdisks (tmpfs) both configured as 500GB.
As tmpfs disks expand and contract the amount of RAM they use, depending on how full they are, typically the ramdisks use very little maybe 200GB in total.
I have swap on a fast NVMe drive, about 1000GB. Occasionally, for brief periods of time the usage of RAM spikes, just for a few seconds.
During these moments, how do I tell Linux it should ALWAYS give the ram to the process and use the swap for the drives?