cgroup Resource Isolation

Cap a runaway batch job without killing it, using cgroup v2 limits.

A advanced Linux challenge worth 20 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

A batch analytics job eats 85% CPU on a shared host, starving the web API. Apply hard limits using cgroups without restarting either process.

Your tasks:

or: cgcreate -g cpu:batch && cgset -r cpu.cfs_quota_us=30000 batch (if cgtools available)

echo <PID> > /sys/fs/cgroup/batch/cgroup.procs