Lmctfy

This article explains how to install and configure lmctfy, Google's open-source container support. This page is very much a WIP.

Kernel
A kernel that supports cgroups is required in order to make lmctfy work. The following setup enables lmctfy on linux-3.10.7-gentoo-r1.

Userspace
The following code exists in the "palmer" overlay, available from layman:

Configuration
The following commands setup a simple lmctfy container limeted to 100MB of memory and then proceeds to start a process that attempts to allocate 200MB of memory, which should be killed.