All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] nohz: Fix racy sleeptime stats v2
@ 2013-10-19 15:17 Frederic Weisbecker
  2013-10-19 15:17 ` [PATCH 1/5] nohz: Convert a few places to use local per cpu accesses Frederic Weisbecker
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Frederic Weisbecker @ 2013-10-19 15:17 UTC (permalink / raw)
  To: Oleg Nesterov, Peter Zijlstra
  Cc: LKML, Frederic Weisbecker, Fernando Luis Vazquez Cao,
	Tetsuo Handa, Thomas Gleixner, Ingo Molnar, Andrew Morton,
	Arjan van de Ven

Hi,

So this is a new iteration with some more changes on top of the latest discussions
we had.

Unfortunately it's not yet a real viable solution. Check out patch 4/5 for details,
I think that's too much overhead. Also it changes enough the semantics to break the
idle sleeptime accounting along the way. This is because moving the accounting to
io_schedule() makes it account _all_ IO sleeptime, even if the CPU is still busy,
not just when it is idle like before. As a result, the idle sleeptime, that relies on
a diff against the io sleeptime, is broken.

Anyway, my hope with this new take is mostly to launch a discussion with a fresher
base and see if we can find better ideas.

Thanks!

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
	sched/iowait

Thanks,
	Frederic
---

Frederic Weisbecker (5):
      nohz: Convert a few places to use local per cpu accesses
      nohz: Only update sleeptime stats locally
      timer: Change idle/iowait accounting semantics
      sched: Refactor iowait accounting
      nohz: Synchronize sleep time stats with seqlock


 include/linux/ktime.h        |   7 +++
 include/linux/sched.h        |   1 +
 include/linux/tick.h         |  11 ++--
 kernel/sched/core.c          |  68 ++++++++++++++++++---
 kernel/sched/cputime.c       |   2 +-
 kernel/sched/sched.h         |   5 +-
 kernel/softirq.c             |   4 +-
 kernel/time/tick-broadcast.c |   6 +-
 kernel/time/tick-internal.h  |   4 +-
 kernel/time/tick-sched.c     | 138 ++++++++++++++-----------------------------
 kernel/time/timer_list.c     |   3 +-
 11 files changed, 130 insertions(+), 119 deletions(-)

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

end of thread, other threads:[~2013-11-04 18:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-19 15:17 [RFC PATCH 0/5] nohz: Fix racy sleeptime stats v2 Frederic Weisbecker
2013-10-19 15:17 ` [PATCH 1/5] nohz: Convert a few places to use local per cpu accesses Frederic Weisbecker
2013-10-19 15:17 ` [PATCH 2/5] nohz: Only update sleeptime stats locally Frederic Weisbecker
2013-10-19 15:17 ` [PATCH 3/5] timer: Change idle/iowait accounting semantics Frederic Weisbecker
2013-10-20  7:34   ` Andreas Mohr
2013-11-04 16:22     ` Frederic Weisbecker
2013-10-19 15:17 ` [PATCH 4/5] sched: Refactor iowait accounting Frederic Weisbecker
2013-10-19 15:35   ` Peter Zijlstra
2013-10-19 16:02     ` Frederic Weisbecker
2013-10-19 16:05       ` Peter Zijlstra
2013-10-19 16:20         ` Frederic Weisbecker
2013-10-20 11:10   ` Andreas Mohr
2013-11-04 17:34     ` Frederic Weisbecker
2013-11-04 18:38       ` Andreas Mohr
2013-10-19 15:17 ` [PATCH 5/5] nohz: Synchronize sleep time stats with seqlock Frederic Weisbecker

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.