Prevent kernel out of memory manager to kill processes on Raspberry Pi 2

I am using Raspberry Pi 2 with Xbian installed as my primary always on media-player device. Beside usual Kodi and few other services I also have MySQL, pihole, lighttpd, rtorrent, samba and few other.

Lately I am faced with kernel oops when trying to copy larger files, over 500MB. Rapsberry Pi becomes unresponsive, I can ping it but no longer connect to it. Continue reading “Prevent kernel out of memory manager to kill processes on Raspberry Pi 2”