Skip to content

sched,delayacct: Some cleanups

Peter Zijlstra kvm lkml 1 version Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 36 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6delayacct: Use sched_clock()kernel/delayacct.c+10 -126 replies
2/6sched: Rename sched_info_{queued,dequeued}kernel/sched/core.c kernel/sched/stats.h+12 -124 replies
3/6sched: Simplify sched_info_on()include/linux/sched/stat.h kernel/delayacct.c kernel/sched/stats.h+12 -364 replies
4/6kvm: Select SCHED_INFO instead of TASK_DELAY_ACCTarch/arm64/kvm/Kconfig arch/x86/kvm/Kconfig+2 -84 replies
5/6delayacct: Add static_branch in scheduler hooksinclude/linux/delayacct.h kernel/delayacct.c+11 -03 replies
6/6delayacct: Default disabledDocumentation/accounting/delay-accounting.rst Documentation/admin-guide/kernel-parameters.txt include/linux/delayacct.h +1 more+20 -251 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPaolo BonziniRik van RielJohannes WeinerMarc ZyngierThomas GleixnerBalbir SinghIngo MolnarMel Gorman
SeriesR-b R-b
1/6R-b A-b A-b A-b
2/6R-b A-b A-b A-b
3/6A-b
4/6A-b A-b A-b A-b
5/6A-b A-b A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] sched,delayacct: Some cleanups

Hi,

Due to:

https://lkml.kernel.org/r/[email protected]

and general principle, delayacct really shouldn't be using ktime (pvclock also really shouldn't be doing what it does, but that's another story). This lead me to looking at the SCHED_INFO, SCHEDSTATS, DELAYACCT (and PSI) accounting hell.

The rest of the patches are an attempt at simplifying all that a little. All that crud is enabled by default for distros which is leading to a death by a thousand cuts.

The last patch is an attempt at default disabling DELAYACCT, because I don't think anybody actually uses that much, but what do I know, there were no ill effects on my testbox. Perhaps we should mirror /proc/sys/kernel/sched_schedstats and provide a delayacct sysctl for runtime frobbing.