Commit 2e82c0d4 authored by Joshua Hahn's avatar Joshua Hahn Committed by Tejun Heo
Browse files

cgroup/rstat: Selftests for niced CPU statistics



Creates a cgroup with a single nice CPU hog process running.
fork() is called to generate the nice process because un-nicing is
not possible (see man nice(3)). If fork() was not used to generate
the CPU hog, we would run the rest of the cgroup selftest suite as a
nice process.

Signed-off-by: default avatarJoshua Hahn <joshua.hahnjy@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent aefa398d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment