Curious that there is no mention of the existing "memory" cgroup. On some desktop Linux, you'll find it here:
ls -l /sys/fs/cgroup/memory/
The 000-permission 'pressure_level' file controls asynchronous notifications to apps, advising prompt shedding of load. This is apparently the mechanism alluded to in a Googler's recent blog post, writing from the point of view of Go server coding: https://news.ycombinator.com/item?id=17551012