Hi Rosika,
I dont know, but I can guess
If you turn off your swapfile (or unmount a swap partition for that matter) it would be
ok if the Linux had not swapped any pages out onto the swap space
you might lose pages if there were some pages swapped out, and you cleared the swapfile
if it was in the act of swapping when you cleared the swapfile, there might be corruption of pages
if zswap were running, i think the same would apply, only it would be hopefully less likely to be swapping
So I would be careful doing that swapoff. Make sure that linux is idle ( ie not swapping) when you do swapoff. It may be clever enough to clear any activity before doing the swapoff, or it may just cut you off.
Thanks @nevj for providing your views on the matter.
I see. Well, the conseqeunces of my hypothetical scenario hopefully wouldn“t be overly dramatic (except for losing pages / corruption of pages) but I“d certainly like to avoid that anyway.
I guess avoiding swapoff would be the wisest action by far.