iovisor / iovisor/bcc

se.cfs_rq may return group cfs_rq, not the top cfs_rq

Open
#3,093 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

https://github.com/iovisor/bcc/blob/e42ac4176998a6dcf0dbf3b6befeaad0a69cb98a/tools/runqlen.py#L149

When task group used, the se.cfs_rq returned is the group cfs_rq, not the cpu top cfs_rq, so the runqlen is just the number of tasks of that cgroup on the cpu.
Is there a way to get runqlen of the top cfs_rq?

Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at tools/runqlen.py line 149 and inspect how se.cfs_rq is obtained when task groups are enabled. Trace the relevant cfs_rq relationship in the Linux scheduler and determine how the top CPU cfs_rq can be identified. Done means runqlen reports the CPU's top cfs_rq rather than only the task group's count.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, python
Domain
observability, operating-systems, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.