I'm doing some tests in Debian Linux on an arm sbc. There seem to be some issues which I couldn't confirm if it may be related to my zram swap setup.
Is there a way when I run a particular program to suspend it (e.g. control-z) and what I want to do is:
to have Linux page out that process memory image into swap
and I'd later restore it e.g. do a
fgand have Linux retrieve it from swap and have it running again?
Is there a way to do (1) and (2) while there are still rather plenty of free unused memory? I simply want the relevant process to be swapped out for the purpose of the tests and issue isolation. In addition, how do I monitor that to see if it is paged out to swap and restored?