Waydroid works fine when there is enough free RAM. But if RAM is already filled by other programs to the point that ZRAM is heavily used, Android starts frequently killing foreground apps. It is amusing to see how with each try to start a particular app in Waydroid it pushes more and more of other stuff into ZRAM and thus survives each time a bit longer.
Is there anything which can be tweaked to prevent Android from killing a foreground app on low RAM?
I faced this problem when I moved some of my frequently used apps out of Waydroid. It is unfortunate that desktop versions of many apps unexpectedly require ≥400MB RAM, most of which is eventually stuffed into ZRAM. This is probably a sign that corresponding memory regions are mostly unused and are a dead weight.