dotcloud/docker — pull request #6212 by bernerdschaefer (2014-06-05 10:10:04+00:00)
Title: libcontainer: add NotifyOnOOM function to cgroups/fs

This adds a NotifyOnOOM function to cgroups/fs. The function is only available on linux, as it depends on eventfd syscalls.

The code itself is adapted from what we've been using in production to track cgroup OOMs.

/cc @crosbymichael @vmarmol