Skip to content

RFC sched: Display deadline bandwidth and other SCHED_DEBUG clean up

Steven Rostedt lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 3 repliesIn review
  2. v1 RFC4 patches 6 repliesSuperseded

Changes in v2 from the cover letter

o Added the bandwith to /proc/sched_debug instead of creating a new file.

o Removed patch: sched: Move sched_domain_debug into debug.c As it was decided that debug.c shouldn't have domain debugging.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sched: Move sched_feature file setup into debug.ckernel/sched/core.c kernel/sched/debug.c+131 -1330 replies
2/3sched: Move sched_domain_sysctl to debug.ckernel/sched/core.c kernel/sched/debug.c kernel/sched/sched.h+186 -1780 replies
3/3sched: Add bandwidth ratio to /proc/sched_debugkernel/sched/debug.c+9 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC][PATCH 0/3 v2] sched: Display deadline bandwidth and other SCHED_DEBUG clean up

I'm starting to play with SCHED_DEADLINE a bit and I'm able to cause a bandwidth "leak". Then I realized there's no way to examine what bandwidths are enabled on which CPUs. I added the bandwith ratios to the /proc/sched_debug file.

I will be posting the SCHED_DEADLINE issue in a separate thread.

# grep dl /proc/sched_debug         
dl_rq[0]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 0
dl_rq[1]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 104857
dl_rq[2]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 0
dl_rq[3]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 0
dl_rq[4]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 0
dl_rq[5]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 0
dl_rq[6]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 0
dl_rq[7]:
  .dl_nr_running                 : 0
  .dl_bw->bw                     : 996147
  .dl_bw->total_bw               : 0

Before adding this code, I also realized there was a bit of SCHED_DEBUG code in the kernel/sched/core.c file, and decided to move that to kernel/sched/debug.c to clean the core.c file up a bit. Those patches are mostly orthognal to the deadline_bw file, but decided to group them together here.

Changes since v1:

o Added the bandwith to /proc/sched_debug instead of creating a new file.

o Removed patch: sched: Move sched_domain_debug into debug.c As it was decided that debug.c shouldn't have domain debugging.

Steven Rostedt (Red Hat) (3):
sched: Move sched_feature file setup into debug.c
sched: Move sched_domain_sysctl to debug.c
sched: Add bandwidth ratio to /proc/sched_debug

----

 kernel/sched/core.c  | 311 --------------------------------------------------
 kernel/sched/debug.c | 313 +++++++++++++++++++++++++++++++++++++++++++++++++++
 kernel/sched/sched.h |  13 +++
 3 files changed, 326 insertions(+), 311 deletions(-)