Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: tools: Add tool for displaying a list of realtime data
Add a tool for displaying the realtime allocations for a cgroup hierarchy. $ ./src/tools/cgrealtimelist.py -C application.sliceRUNTIME PERIOD PERCENT CGROUP 1000 8000 12.50% /child2.service 5000 100000 5.00% /child1.service 20000 1000000 2.00% /child3.service 10,000 / 50,000 microseconds (20.00%) of the CPU cycles have been allocated to realtime in the root cgroup. 9,750 of the 10,000 realtime cycles (97.50%) for /application.slice have been assigned to children cgroups 5,000 (cpu.rt_runtime_us) / 1,000,000 (cpu.rt_period_us) microseconds can still be assigned to a child of /application.slice Note that the remaining cpu.rt_runtime_us is estimated and could be off by 1 or 2 in either direction. $ ./src/tools/cgrealtimelist.py RUNTIME PERIOD PERCENT CGROUP 10000 50000 20.00% /application.slice 1000 8000 12.50% /application.slice/child2.service 10000 90000 11.11% /system.slice 5000 100000 5.00% /application.slice/child1.service 1000 25000 4.00% /user.slice 1000 50000 2.00% /system.slice/firewalld.service 20000 1000000 2.00% /application.slice/child3.service 1000 70000 1.43% /system.slice/systemd-udevd.service 1000 100000 1.00% /init.scope 950,000 / 1,000,000 microseconds (95.00%) of the CPU cycles have been allocated to realtime in the root cgroup. 361,111 of the 950,000 realtime cycles (38.01%) for the root cgroup have been assigned to children cgroups 588,888 (cpu.rt_runtime_us) / 1,000,000 (cpu.rt_period_us) microseconds can still be assigned to a child of the root cgroup Note that the remaining cpu.rt_runtime_us is estimated and could be off by 1 or 2 in either direction. Signed-off-by: Tom Hromatka <[email protected]>
- Loading branch information