All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/7]  sched/deadline: fix cpusets bandwidth accounting
@ 2019-04-03  8:46 Juri Lelli
  2019-04-03  8:46 ` [PATCH v7 1/7] sched/topology: Adding function partition_sched_domains_locked() Juri Lelli
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Juri Lelli @ 2019-04-03  8:46 UTC (permalink / raw)
  To: peterz, mingo, rostedt, tj
  Cc: linux-kernel, luca.abeni, claudio, tommaso.cucinotta, bristot,
	mathieu.poirier, lizefan, cgroups, Juri Lelli

Hi,

v7 of a series of patches, originally authored by Mathieu, with the intent
of fixing a long standing issue of SCHED_DEADLINE bandwidth accounting.
As originally reported by Steve [1], when hotplug and/or (certain)
cpuset reconfiguration operations take place, DEADLINE bandwidth
accounting information is lost since root domains are destroyed and
recreated.

Mathieu's approach is based on restoring bandwidth accounting info on
the newly created root domains by iterating through the (DEADLINE) tasks
belonging to the configured cpuset(s).

Apart from the usual rebase on top of cgroup/for-next, changes worth of
notice are:

 - commented about potential problems w.r.t. userspace operations that
   grabs callback_lock (03/07 - peterz)
 - take cpuset_read_only_lock() before rq an pi locks, as to not
   introduce a dependency between the former and the latters; on !CONFIG_
   CPUSET cpuset_read_only(un)lock() (dis/en)ables irqs and preemption
   (04/07 - peterz)
 - make dl_add_task_root_domain() use !_irqsave (un)lock functions
 - also use __dl_add() to update root domain total_bw
 - 06/07 new patch; seq_show operations can be guarded by cpuset_mutex
   (peterz)
 - 07/07 new patch; deals with offline migrations (noticed the problem
   while testing)

Set also available at

 https://github.com/jlelli/linux.git fixes/deadline/root-domain-accounting-v7

Thanks,

- Juri

[1] https://lkml.org/lkml/2016/2/3/966

Juri Lelli (5):
  cgroup/cpuset: make callback_lock raw
  sched/core: Prevent race condition between cpuset and
    __sched_setscheduler()
  cpuset: Rebuild root domain deadline accounting information
  cgroup/cpuset: Use cpuset_mutex to protect seq_show operations
  sched/deadline: Fix bandwidth accounting at all levels after offline
    migration

Mathieu Poirier (2):
  sched/topology: Adding function partition_sched_domains_locked()
  sched/core: Streamlining calls to task_rq_unlock()

 include/linux/cgroup.h         |   1 +
 include/linux/cpuset.h         |  14 +++
 include/linux/sched.h          |   5 +
 include/linux/sched/deadline.h |   8 ++
 include/linux/sched/topology.h |  10 ++
 kernel/cgroup/cgroup.c         |   2 +-
 kernel/cgroup/cpuset.c         | 161 +++++++++++++++++++++++++--------
 kernel/sched/core.c            |  49 +++++++---
 kernel/sched/deadline.c        |  63 +++++++++++++
 kernel/sched/sched.h           |   3 -
 kernel/sched/topology.c        |  30 +++++-
 11 files changed, 286 insertions(+), 60 deletions(-)

-- 
2.17.2


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

end of thread, other threads:[~2019-04-05 12:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03  8:46 [PATCH v7 0/7] sched/deadline: fix cpusets bandwidth accounting Juri Lelli
2019-04-03  8:46 ` [PATCH v7 1/7] sched/topology: Adding function partition_sched_domains_locked() Juri Lelli
2019-04-05 12:04   ` Peter Zijlstra
2019-04-05 12:52     ` Juri Lelli
2019-04-03  8:46 ` [PATCH v7 2/7] sched/core: Streamlining calls to task_rq_unlock() Juri Lelli
2019-04-03  8:46 ` [PATCH v7 3/7] cgroup/cpuset: make callback_lock raw Juri Lelli
2019-04-03  8:46 ` [PATCH v7 4/7] sched/core: Prevent race condition between cpuset and __sched_setscheduler() Juri Lelli
2019-04-05 12:36   ` Peter Zijlstra
2019-04-05 12:53     ` Juri Lelli
2019-04-03  8:46 ` [PATCH v7 5/7] cpuset: Rebuild root domain deadline accounting information Juri Lelli
2019-04-03  8:46 ` [PATCH v7 6/7] cgroup/cpuset: Use cpuset_mutex to protect seq_show operations Juri Lelli
2019-04-03  8:46 ` [PATCH v7 7/7] sched/deadline: Fix bandwidth accounting at all levels after offline migration Juri Lelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.