News for hackers. Stuff that matters.
Re:Native encryption added to ZFS on Linux by Annatar on Thursday July 21, 2016 @03:37PM (#12139440)
The fix is not to work around the out of memory killer in Linux, but to turn off memory overcommit altogether: the system should not lie to applications that it has more virtual memory than is actually available, because that is extremely detrimental to correctness of operation. illumos based systems, for instance, never lie about such things.
Re:Native encryption added to ZFS on Linux by tobias3 on Thursday July 21, 2016 @06:01PM (#12140411)
ZFSOnLinux is a kernel module and not a user space application (and you cannot OOM kill kernel threads) and the overcommit probably isn't direct, e.g. there are 64 worker threads who all need some memory to do the work and tell the kernel that memory allocation must not fail. If the memory isn't available either Linux starts killing userspace processes or gets stuck. The same thing can happen in Solaris except there ZFS doesn't use a separate memory mechanism which does not properly react to memory pressure.