Skip to main content

Run cgroups v2

ol lab tutorial ol-admin
Table of Contents


🌙 Lab

🗒 Tutorial


Control Groups (cgroups) is a Linux kernel feature for limiting, prioritizing, and allocating resources such as CPU time, memory, and network bandwidth for running processes.

Thse guides walk you through limiting the CPU time for user processes using cgroups v2.


In this lab, you’ll learn to:

  • Enable cgroups v2
  • Set a soft CPU limit for a user process
  • Set a hard CPU limit for a user process


  • A system with Oracle Linux 8 installed with the following configuration:
    • a non-root user with sudo permissions