While running 5-6 programs at the same time (Browser, Virtual Machines, Terminal, Text Editor, File Explorer), some of them from time to time (let's say every 15 minutes) are inactive/idle (not interacting with the user, not doing calculations etc.). Is it possible to:
- have the inactive programs memory data automatically transferred from RAM to Swap, and
- instant (or some seconds delay maybe) "activisation" (memory data from Swap to RAM) when the user starts interacting with a software (or it becomes active/is brought in foreground).
Keeping in mind that Swap memory is slower than RAM but still fast enough to not freeze the UI, shifting "RAM attention" would be very useful in many computers, for different programs or even inside a single program (Imagine a-lot-of-Ram-consuming-browser Swap-ping the memory data of background opened tabs and keeping in Ram only the active tab).
Is this something that can be done by any means nowday or maybe is it partially already like this?