mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 00/10] Fair scheduling deadline server fixes
@ 2024-02-16 18:30 Joel Fernandes (Google)
  2024-02-16 18:30 ` [PATCH 01/10] sched/core: Add clearing of ->dl_server in put_prev_task_balance() Joel Fernandes (Google)
                   ` (9 more replies)
  0 siblings, 10 replies; 16+ messages in thread
From: Joel Fernandes (Google) @ 2024-02-16 18:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: Suleiman Souhlal, Youssef Esmat, Steven Rostedt, David Vernet,
	Thomas Gleixner, Paul E . McKenney, joseph.salisbury,
	Dietmar Eggemann, Ben Segall, Mel Gorman,
	Daniel Bristot de Oliveira, Valentin Schneider, Luca Abeni,
	Tommaso Cucinotta, Vineeth Pillai, Shuah Khan, Phil Auld,
	Joel Fernandes (Google)

Hello,
The deadline server [1] allows RT tasks to run on a system safely, while not
wasting CPU that RT tasks may not get on an idle system due to RT throttling.

Here are patches that are mostly fixes that we found while testing out the
deadline server [1] for ChromeOS.

The main fix is to core scheduling, but we found several other issues.

These patches are based on Daniel's preview branch for v6:
https://git.kernel.org/pub/scm/linux/kernel/git/bristot/linux.git/?h=dl_server_v6

Daniel mentioned he is working on fixing the fair server interface issues [2].
These patches apply cleanly on his preview version.

[1] https://lore.kernel.org/all/cover.1699095159.git.bristot@kernel.org/
[2] https://lore.kernel.org/all/091ca2ea-202d-4685-92ea-529186a94f0a@kernel.org/

Joel Fernandes (Google) (8):
  sched/core: Add clearing of ->dl_server in put_prev_task_balance()
  sched/core: Fix priority checking for DL server picks
  sched/core: Fix picking of tasks for core scheduling with DL server
  sched/debug: Use unsigned long for cpu variable to prevent cast errors
  selftests/sched: Add a test to verify that DL server works with core
    scheduling
  selftests/sched: Migrate cs_prctl_test to kselfttest
  admin-guide/hw-vuln: Correct prctl() argument description
  sched: Fix build error in "sched/rt: Remove default bandwidth control"

Suleiman Souhlal (1):
  sched: server: Don't start hrtick for DL server tasks

Youssef Esmat (1):
  sched/core: Clear prev->dl_server in CFS pick fast path

 .../admin-guide/hw-vuln/core-scheduling.rst   |   4 +-
 include/linux/sched.h                         |   3 +-
 kernel/sched/core.c                           |  46 +++-
 kernel/sched/deadline.c                       |  34 ++-
 kernel/sched/debug.c                          |   4 +-
 kernel/sched/fair.c                           |  22 +-
 kernel/sched/rt.c                             |   2 +
 kernel/sched/sched.h                          |   3 +-
 tools/testing/selftests/sched/Makefile        |  17 +-
 tools/testing/selftests/sched/common.c        |  24 ++
 tools/testing/selftests/sched/common.h        |   8 +
 .../selftests/sched/cs_dlserver_test.c        | 254 ++++++++++++++++++
 tools/testing/selftests/sched/cs_prctl_test.c |  74 ++---
 13 files changed, 424 insertions(+), 71 deletions(-)
 create mode 100644 tools/testing/selftests/sched/common.c
 create mode 100644 tools/testing/selftests/sched/common.h
 create mode 100644 tools/testing/selftests/sched/cs_dlserver_test.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-02-21  8:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-16 18:30 [PATCH 00/10] Fair scheduling deadline server fixes Joel Fernandes (Google)
2024-02-16 18:30 ` [PATCH 01/10] sched/core: Add clearing of ->dl_server in put_prev_task_balance() Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 02/10] sched/core: Clear prev->dl_server in CFS pick fast path Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 03/10] sched/core: Fix priority checking for DL server picks Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 04/10] sched/core: Fix picking of tasks for core scheduling with DL server Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 05/10] sched/debug: Use unsigned long for cpu variable to prevent cast errors Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 06/10] sched: server: Don't start hrtick for DL server tasks Joel Fernandes (Google)
2024-02-21  8:39   ` Daniel Bristot de Oliveira
2024-02-16 18:31 ` [PATCH 07/10] selftests/sched: Add a test to verify that DL server works with core scheduling Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 08/10] selftests/sched: Migrate cs_prctl_test to kselfttest Joel Fernandes (Google)
2024-02-16 19:18   ` Chris Hyser
2024-02-21  0:03     ` Shuah Khan
2024-02-21  0:22       ` Joel Fernandes
2024-02-21  0:22       ` Joel Fernandes
2024-02-16 18:31 ` [PATCH 09/10] admin-guide/hw-vuln: Correct prctl() argument description Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 10/10] sched: Fix build error in "sched/rt: Remove default bandwidth control" Joel Fernandes (Google)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®