Linux Today: Linux News On Internet Time.

More on LinuxToday

Introduction to Linux Cgroups

Jan 11, 2011, 12:02 (0 Talkback[s])
(Other stories by Joe Brockmeier)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

"A number of users made use of cgroups recently by following the four-line script from Lennart Poettering, rather than patching the kernel, to improve Linux desktop performance. Many users (myself included) tried the script but didn't at the time pay attention to the fact that it was using the cgroups feature.

"So what is cgroups? It's a feature initially developed to limit resource usage in the Linux kernel. Using cgroups, you can tweak the memory, bandwidth, CPU usage and so forth of processes running on your system. Cgroups can also be used to deny access to system resources, and they can help monitor system resources.

"Specifically, the kernel has controllers for memory, CPU usage and sets, devices, process control ("freezer") and networking. For example, you can use the cpuacct controller to control CPU usage, and the cpu controller to manage the actual CPUs used. Processes might be able to have 100 percent of two CPUs on a system, but not four."

Complete Story

Related Stories: