CA1-35774 low memory situation fix

Kind of an RFC pull request...

Testing this requires the kernel to have memory cgroups enabled.

The memory cgroup filesystem also needs to be mounted:
mount -t tmpfs none /sys/fs/cgroup
mkdir /sys/fs/cgroup
mount -t cgroup -o memory none /sys/fs/cgroup/memory