• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

drakenclimber / libcgroup
58%
main: 56%

Build:
Build:
LAST BUILD BRANCH: test
DEFAULT BRANCH: main
Repo Added 19 Nov 2020 06:53PM UTC
Files 38
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH cgsos3
branch: cgsos3
CHANGE BRANCH
x
Reset
  • cgsos3
  • 066
  • 3pl
  • add-cgx-man-pages
  • allow-space-cgrules
  • cgall2
  • cgcompare
  • cgcompare2
  • cgconfigscript
  • cgcreate
  • cgroup-controller
  • cgroup-controller-v2
  • cgroup-controller-v3
  • cgsos
  • cgsos2
  • clang
  • cleanup-subtree
  • codeql
  • consts-rework
  • coverity
  • dependabot
  • dist-subdirs-2.0
  • distro
  • doc
  • extra-logging
  • fix-005
  • fix-cgxset
  • fix-rel2.0
  • fix008
  • fixspaces
  • fixwarning
  • fixwarnings
  • foo
  • ftest-lock
  • get_next_rule_field
  • getprocs
  • getprocs2
  • github
  • github-workflow-ci
  • issues/21
  • issues/38
  • issues/61
  • issues/62
  • issues/66
  • issues/71
  • issues/71v2
  • issues/73
  • issues/advanced-cgget
  • issues/betterlogs
  • issues/cgclear
  • issues/cgclear2
  • issues/cgconfig-tests
  • issues/cgconfigparser
  • issues/cgexec-test
  • issues/cgget-refactor
  • issues/cgget-refactor2
  • issues/cgget-tests
  • issues/cgrules
  • issues/cgrules2
  • issues/cgrules3
  • issues/cgrules4
  • issues/cgset-tests
  • issues/cgsnapshot
  • issues/cgsnapshot2
  • issues/cgv2-tests
  • issues/cgxget
  • issues/cgxget3
  • issues/cgxget4
  • issues/cgxget5
  • issues/cgxget5-pybindings
  • issues/cgxget5-pybindings3
  • issues/cgxget5-pybindings4
  • issues/cgxget5-pybindings5
  • issues/cgxget5-pybindings6
  • issues/cgxget5-toolslib
  • issues/codecovrel2.0
  • issues/codeql
  • issues/contributing
  • issues/coveralls_badge
  • issues/daemoncodecov
  • issues/delete-cgclear
  • issues/delete-legacy
  • issues/distcheck
  • issues/doxygen
  • issues/doxygen_badge
  • issues/emptycg
  • issues/emptycgcreate
  • issues/finalize
  • issues/fix-warnings
  • issues/fixcgset
  • issues/fixme
  • issues/fixmerge
  • issues/fixtest004
  • issues/fixwarnings
  • issues/ftests_cgv2
  • issues/github_actions
  • issues/improvecodecov
  • issues/kill-child
  • issues/lgtm
  • issues/lscgroup
  • issues/lssubsys
  • issues/mainbadge
  • issues/mount-pybindings
  • issues/nocontainer
  • issues/noinst
  • issues/random
  • issues/readme
  • issues/rel2-codeql
  • issues/remove-libs
  • issues/removetestsdir
  • issues/threaded
  • issues/update-map
  • issues/v2.0.1
  • issues/validate
  • leaf-node
  • linter
  • list-cgroup-mnts-api
  • main
  • master
  • memory_abstraction
  • merge-tests
  • merge-tests-3.0
  • mount-table-overflow
  • nosystemd-job
  • options
  • pids
  • ps
  • pull/44
  • pull/45
  • pull/46
  • release-2.0
  • release-3.0
  • release-3.2
  • rename-python-set-default
  • rework-testing
  • set-property
  • set-property2
  • setup_mode
  • systemd
  • systemd-cexample
  • systemd-cgconfig
  • systemd-cmdline
  • systemd-pythonexample
  • test
  • test-reliability
  • test2
  • tests2
  • undefsystemd
  • update-rel2-tests
  • wip/abstract_cgget2
  • wip/cgexec-test
  • wip/cgset-tests
  • wip/cgsnapshot
  • wip/cgxget
  • wip/cgxget2
  • wip/cgxget3
  • wip/cgxget4
  • wip/delete-legacy
  • wip/dist-subdirs
  • wip/empty_cgcreate2
  • wip/emptycgs
  • wip/gh_actions
  • wip/refactor_cgget2
  • wip/release-2.0
  • wip/systemd
  • wip/systemd10
  • wip/systemd11
  • wip/systemd12
  • wip/systemd2
  • wip/systemd3
  • wip/systemd4
  • wip/systemd5
  • wip/systemd6
  • wip/systemd7
  • wip/systemd8
  • wip/systemd9
  • wip/test-cgget.new
  • wip/test-cgget.old

25 Apr 2024 02:41AM UTC coverage: 58.353% (-0.07%) from 58.426%
8826253311

push

github

drakenclimber
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 <tom.hromatka@oracle.com>

5533 of 9482 relevant lines covered (58.35%)

1130.34 hits per line

Relevant lines Covered
Build:
Build:
9482 RELEVANT LINES 5533 COVERED LINES
1130.34 HITS PER LINE
Source Files on cgsos3
  • Tree
  • List 29
  • Changed 8
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
8826253311 cgsos3 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% ... push 25 Apr 2024 02:46AM UTC drakenclimber github
58.35
8826203501 cgsos3 python: tools: Add tool for displaying a list of realtime data Add a tool for displaying the realtime allocations for a cgroup hierarchy. ADD EXAMPLES HERE Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> push 25 Apr 2024 02:38AM UTC drakenclimber github
58.43
8826172135 cgsos3 python: tools: Add tool for displaying a list of realtime data Add a tool for displaying the realtime allocations for a cgroup hierarchy. ADD EXAMPLES HERE Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> push 25 Apr 2024 02:35AM UTC drakenclimber github
58.35
8826138351 cgsos3 python: tools: Add tool for displaying a list of realtime data Add a tool for displaying the realtime allocations for a cgroup hierarchy. ADD EXAMPLES HERE Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> push 25 Apr 2024 02:30AM UTC drakenclimber github
58.42
8825894207 cgsos3 python: tools: Add tool for displaying a list of PSI data Add a tool for displaying the PSI data for a cgroup hierarchy. $ ./src/tools/cgpsilist.py -c cpu -d 1 -f some-avg10 -l 10 -t 0 some-avg10 PSI CGROUP 0.00 /sys-fs-fuse-connection... push 25 Apr 2024 02:01AM UTC drakenclimber github
58.35
8825792722 cgsos3 python: tools: Add tool for displaying a tree of PSI data Add a tool for displaying the PSI data for a cgroup hierarchy. $ ./src/tools/cgpsitree.py -c cpu -f some-total -d 1 cpu some-total PSI data /: 516797584 ├── dev-hugepages.mount: 7 ├── dev... push 25 Apr 2024 01:49AM UTC drakenclimber github
57.16
8824388586 cgsos3 python: tools: Add tool for displaying a tree of PSI data Add a tool for displaying the PSI data for a cgroup hierarchy. $ ./src/tools/cgpsitree.py -c cpu -f some-total -d 1 cpu some-total PSI data /: 516797584 ├── dev-hugepages.mount: 7 ├── dev... push 24 Apr 2024 11:01PM UTC drakenclimber github
10.98
8820518503 cgsos3 python: Add support for populating an in-memory cgroup tree Add support to the python bindings for walking the cgroup hierarchy (or a subset of it), and building an in-memory representation of the hierarchy. This will be used in subsequent commi... push 24 Apr 2024 05:12PM UTC drakenclimber github
10.98
See All Builds (1000)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc