mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] cputime: Generic virtual based cputime accounting v3
@ 2012-08-04 15:22 Frederic Weisbecker
  2012-08-04 15:22 ` [PATCH 1/5] context_tracking: New context tracking susbsystem Frederic Weisbecker
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Frederic Weisbecker @ 2012-08-04 15:22 UTC (permalink / raw)
  To: LKML
  Cc: Frederic Weisbecker, Alessio Igor Bogani, Andrew Morton,
	Avi Kivity, Chris Metcalf, Christoph Lameter, Geoff Levand,
	Gilad Ben Yossef, Hakan Akkan, H. Peter Anvin, Ingo Molnar,
	Kevin Hilman, Max Krasnyansky, Paul E. McKenney, Peter Zijlstra,
	Stephen Hemminger, Steven Rostedt, Sven-Thorsten Dietrich,
	Thomas Gleixner

Hi,

Changes since v2 (https://lwn.net/Articles/509575/) are only about
converting the "code domain tracking" naming to "context tracking"
as per Ingo's suggestion. And the result indeed looks much better.

Ring 0 dark knights can pull from:

git://github.com/fweisbec/linux-dynticks.git
	vtime/generic-v3

Warning: this includes dependencies on rcu/idle and vtime
consolidation patchset.

Frederic Weisbecker (5):
  context_tracking: New context tracking susbsystem
  cputime: Don't allow virtual and irq finegrained cputime accounting
    simultaneously
  cputime: Allow dynamic switch between tick/virtual based cputime
    accounting
  cputime: Rename account_system_vtime to account_vtime
  cputime: Generic on-demand virtual cputime accounting

 arch/Kconfig                                       |   12 +-
 arch/ia64/include/asm/cputime.h                    |    5 +
 arch/ia64/kernel/time.c                            |    6 +-
 arch/powerpc/include/asm/cputime.h                 |    5 +
 arch/powerpc/kernel/time.c                         |   10 +-
 arch/s390/include/asm/cputime.h                    |    5 +
 arch/s390/kernel/vtime.c                           |    6 +-
 arch/x86/Kconfig                                   |    2 +-
 arch/x86/include/asm/{rcu.h => context_tracking.h} |   12 +-
 arch/x86/kernel/ptrace.c                           |    6 +-
 arch/x86/kernel/signal.c                           |    5 +-
 arch/x86/kernel/traps.c                            |    2 +-
 arch/x86/mm/fault.c                                |    2 +-
 include/asm-generic/cputime.h                      |    7 +
 include/linux/context_tracking.h                   |   44 ++++++
 include/linux/hardirq.h                            |    8 +-
 include/linux/kernel_stat.h                        |   13 ++
 include/linux/kvm_host.h                           |    4 +-
 include/linux/rcupdate.h                           |    2 -
 include/linux/sched.h                              |   13 +--
 init/Kconfig                                       |   35 +++--
 kernel/Makefile                                    |    1 +
 kernel/context_tracking.c                          |   46 ++++++
 kernel/fork.c                                      |    3 +-
 kernel/rcutree.c                                   |   42 +-----
 kernel/sched/core.c                                |    9 +-
 kernel/sched/cputime.c                             |  159 ++++++++++++++++----
 kernel/softirq.c                                   |    6 +-
 kernel/time/tick-sched.c                           |   28 ++--
 29 files changed, 347 insertions(+), 151 deletions(-)
 rename arch/x86/include/asm/{rcu.h => context_tracking.h} (52%)
 create mode 100644 include/linux/context_tracking.h
 create mode 100644 kernel/context_tracking.c

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [RFC PATCH 0/5] cputime: Generic virtual based cputime accounting v2
@ 2012-08-03 15:02 Frederic Weisbecker
  2012-08-03 15:02 ` [PATCH 3/5] cputime: Allow dynamic switch between tick/virtual based cputime accounting Frederic Weisbecker
  0 siblings, 1 reply; 8+ messages in thread
From: Frederic Weisbecker @ 2012-08-03 15:02 UTC (permalink / raw)
  To: LKML
  Cc: Frederic Weisbecker, Alessio Igor Bogani, Andrew Morton,
	Avi Kivity, Chris Metcalf, Christoph Lameter, Geoff Levand,
	Gilad Ben Yossef, Hakan Akkan, H. Peter Anvin, Ingo Molnar,
	Kevin Hilman, Max Krasnyansky, Paul E. McKenney, Peter Zijlstra,
	Stephen Hemminger, Steven Rostedt, Sven-Thorsten Dietrich,
	Thomas Gleixner

Hi,

The changes since v1 (https://lkml.org/lkml/2012/7/27/286) are:

- change naming from "user hooks" to "code domain tracking".
- use of __this_cpu_* APIs instead of __get_cpu_*

There is still a dependency against Paul's rcu/idle branch
and the vtime consolidation set: https://lkml.org/lkml/2012/6/19/216

Bold warriors can pull from:

git://github.com/fweisbec/linux-dynticks.git
	vtime/generic-v2

Frederic Weisbecker (5):
  code_domain: New code domain tracking susbsystem
  cputime: Don't allow virtual and irq finegrained cputime accounting
    simultaneously
  cputime: Allow dynamic switch between tick/virtual based cputime
    accounting
  cputime: Rename account_system_vtime to account_vtime
  cputime: Generic on-demand virtual cputime accounting

 arch/Kconfig                                  |   12 +-
 arch/ia64/include/asm/cputime.h               |    5 +
 arch/ia64/kernel/time.c                       |    6 +-
 arch/powerpc/include/asm/cputime.h            |    5 +
 arch/powerpc/kernel/time.c                    |   10 +-
 arch/s390/include/asm/cputime.h               |    5 +
 arch/s390/kernel/vtime.c                      |    6 +-
 arch/x86/Kconfig                              |    2 +-
 arch/x86/include/asm/{rcu.h => code_domain.h} |   12 +-
 arch/x86/kernel/ptrace.c                      |    6 +-
 arch/x86/kernel/signal.c                      |    5 +-
 arch/x86/kernel/traps.c                       |    2 +-
 arch/x86/mm/fault.c                           |    2 +-
 include/asm-generic/cputime.h                 |    7 +
 include/linux/code_domain.h                   |   44 +++++++
 include/linux/hardirq.h                       |    8 +-
 include/linux/kernel_stat.h                   |   13 ++
 include/linux/kvm_host.h                      |    4 +-
 include/linux/rcupdate.h                      |    2 -
 include/linux/sched.h                         |   13 +--
 init/Kconfig                                  |   35 ++++--
 kernel/Makefile                               |    1 +
 kernel/code_domain_tracking.c                 |   49 ++++++++
 kernel/fork.c                                 |    3 +-
 kernel/rcutree.c                              |   42 +------
 kernel/sched/core.c                           |    9 +-
 kernel/sched/cputime.c                        |  159 +++++++++++++++++++++----
 kernel/softirq.c                              |    6 +-
 kernel/time/tick-sched.c                      |   28 ++---
 29 files changed, 350 insertions(+), 151 deletions(-)
 rename arch/x86/include/asm/{rcu.h => code_domain.h} (53%)
 create mode 100644 include/linux/code_domain.h
 create mode 100644 kernel/code_domain_tracking.c

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [RFC PATCH 0/5] cputime: Generic virtual based cputime accounting
@ 2012-07-27 15:40 Frederic Weisbecker
  2012-07-27 15:40 ` [PATCH 3/5] cputime: Allow dynamic switch between tick/virtual " Frederic Weisbecker
  0 siblings, 1 reply; 8+ messages in thread
From: Frederic Weisbecker @ 2012-07-27 15:40 UTC (permalink / raw)
  To: LKML
  Cc: Frederic Weisbecker, Alessio Igor Bogani, Andrew Morton,
	Avi Kivity, Chris Metcalf, Christoph Lameter, Geoff Levand,
	Gilad Ben Yossef, Hakan Akkan, H. Peter Anvin, Ingo Molnar,
	Kevin Hilman, Max Krasnyansky, Paul E. McKenney, Peter Zijlstra,
	Stephen Hemminger, Steven Rostedt, Sven-Thorsten Dietrich,
	Thomas Gleixner

So,

This is a proposition to handle the cputime accounting without the
tick to prepare for stopping the tick further idle.

I have managed to reuse and generalize the kernel/user boundary
hooks used by RCU. This way we can minimize the changes in archs
that don't support virtual cputime and we can also switch between
vtime and tick based accounting to minimize the overhead depending
on the tick behaviour.

This is based on top of rcu/idle branch in Paul's tree and my
vtime consolidation series: https://lkml.org/lkml/2012/6/20/762
(still waiting to be picked btw).

You, adventurer, can pull from:

git://github.com/fweisbec/linux-dynticks.git
	vtime/generic


Frederic Weisbecker (5):
  user_hooks: New user hooks subsystem
  cputime: Don't allow virtual and irq finegrained cputime accounting
    simultaneously
  cputime: Allow dynamic switch between tick/virtual based cputime
    accounting
  cputime: Rename account_system_vtime to account_vtime
  cputime: Generic on-demand virtual cputime accounting

 arch/Kconfig                                 |   10 +-
 arch/ia64/include/asm/cputime.h              |    5 +
 arch/ia64/kernel/time.c                      |    6 +-
 arch/powerpc/include/asm/cputime.h           |    5 +
 arch/powerpc/kernel/time.c                   |   10 +-
 arch/s390/include/asm/cputime.h              |    5 +
 arch/s390/kernel/vtime.c                     |    6 +-
 arch/x86/Kconfig                             |    2 +-
 arch/x86/include/asm/{rcu.h => user_hooks.h} |   12 +-
 arch/x86/kernel/ptrace.c                     |    6 +-
 arch/x86/kernel/signal.c                     |    5 +-
 arch/x86/kernel/traps.c                      |    2 +-
 arch/x86/mm/fault.c                          |    2 +-
 include/asm-generic/cputime.h                |    7 +
 include/linux/hardirq.h                      |    8 +-
 include/linux/kernel_stat.h                  |   13 ++
 include/linux/kvm_host.h                     |    4 +-
 include/linux/rcupdate.h                     |    2 -
 include/linux/sched.h                        |   13 +--
 include/linux/user_hooks.h                   |   36 ++++++
 init/Kconfig                                 |   35 ++++--
 kernel/Makefile                              |    1 +
 kernel/fork.c                                |    3 +-
 kernel/rcutree.c                             |   42 +-------
 kernel/sched/core.c                          |    9 +-
 kernel/sched/cputime.c                       |  159 +++++++++++++++++++++----
 kernel/softirq.c                             |    6 +-
 kernel/time/tick-sched.c                     |   28 ++---
 kernel/user_hooks.c                          |   56 +++++++++
 29 files changed, 348 insertions(+), 150 deletions(-)
 rename arch/x86/include/asm/{rcu.h => user_hooks.h} (56%)
 create mode 100644 include/linux/user_hooks.h
 create mode 100644 kernel/user_hooks.c

-- 
1.7.5.4


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

end of thread, other threads:[~2012-08-04 15:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-04 15:22 [PATCH 0/5] cputime: Generic virtual based cputime accounting v3 Frederic Weisbecker
2012-08-04 15:22 ` [PATCH 1/5] context_tracking: New context tracking susbsystem Frederic Weisbecker
2012-08-04 15:22 ` [PATCH 2/5] cputime: Don't allow virtual and irq finegrained cputime accounting simultaneously Frederic Weisbecker
2012-08-04 15:22 ` [PATCH 3/5] cputime: Allow dynamic switch between tick/virtual based cputime accounting Frederic Weisbecker
2012-08-04 15:22 ` [PATCH 4/5] cputime: Rename account_system_vtime to account_vtime Frederic Weisbecker
2012-08-04 15:22 ` [PATCH 5/5] cputime: Generic on-demand virtual cputime accounting Frederic Weisbecker
  -- strict thread matches above, loose matches on Subject: below --
2012-08-03 15:02 [RFC PATCH 0/5] cputime: Generic virtual based cputime accounting v2 Frederic Weisbecker
2012-08-03 15:02 ` [PATCH 3/5] cputime: Allow dynamic switch between tick/virtual based cputime accounting Frederic Weisbecker
2012-07-27 15:40 [RFC PATCH 0/5] cputime: Generic virtual " Frederic Weisbecker
2012-07-27 15:40 ` [PATCH 3/5] cputime: Allow dynamic switch between tick/virtual " Frederic Weisbecker

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®