title: How to stop android from killing my daemons
body: <p>My Android "smart TV box" has a disk attached where I have a small Debian distribution installed running various server processes (ntp, mpd, lighttpd, ...).  Problem is, even though I have plenty of swap space, some of my daemons tend to "die" when there's a lot of activity (i.e. when the machine swaps a bit more).  I do not know for a fact what is the root cause, but it sounds like it might be some kind of Android OOM system deciding that it's better to kill those processes (presumably because it is tuned on the assumption that there is no swap).</p>
  
  <p>How can I verify that this is indeed the case?</p>
  
  <p>If it is the case, hwo can I stop the kernel from killing processes even when there's still plenty of space in the swap?</p>