Backport low memory killer from 3.4.
(Left cma logic out.)