Cgroups is a mechanism for resources management. This mechanism implements by linux kernel. It allow to restrict usage for some resources like memory, cpus, network and so on.
The idea is improve supporting restrictions for virtual memory. Currently cgroups supports this, but in fact this option restrict only RAM usage, not SWAP.