cgroup: Add tests for cgroupv2 cpu.max.burst
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | cgroup: Add cgroup_burst01 testruntest/ testcases/ testcases/ | +652 | 2 replies | |
| 2/2 | cgroup: Add invalid burst testruntest/ testcases/ testcases/ | +419 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [LTP] [PATCH 0/2] cgroup: Add tests for cgroupv2 cpu.max.burst
Hi all,
This patch series adds two new testcases to test the cgroupv2 cpu.max.burst interface:
Patch 1 adds cpu_max_burst01 to test the basic functionality of cpu.max.burst. It checks default values, read/write boundaries, stat accounting (nr_bursts and burst_usec in cpu.stat), dynamic updates, and making sure the burst value is preserved when quota is removed or period is changed.
Patch 2 adds cpu_max_burst_invalid01 to test invalid inputs to cpu.max.burst. It checks that values like burst > quota, negative values, sum overflow, garbage strings, and trailing characters are rejected with EINVAL and do not change the saved burst value.
Both tests are written using the new LTP API and require CONFIG_CFS_BANDWIDTH=y and the cgroupv2 cpu controller.
Thanks,
Samir Mulani
Samir Mulani (2):
cgroup: Add cgroup_burst01 test
cgroup: Add invalid burst test
runtest/controllers | 2 + .../kernel/controllers/cgroup/.gitignore | 2 + .../controllers/cgroup/cpu_max_burst01.c | 650 ++++++++++++++++++ .../cgroup/cpu_max_burst_invalid01.c | 417 +++++++++++ 4 files changed, 1071 insertions(+) create mode 100644 testcases/kernel/controllers/cgroup/cpu_max_burst01.c create mode 100644 testcases/kernel/controllers/cgroup/cpu_max_burst_invalid01.c
Signature · 5 lines
2.53.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp