lkml.org 
[lkml]   [2013]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 03/33] cputime: Generic on-demand virtual cputime accounting
From
Date
On Tue, 2013-01-08 at 03:08 +0100, Frederic Weisbecker wrote:

> diff --git a/init/Kconfig b/init/Kconfig
> index 5cc8713..51b5c33 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -322,6 +322,9 @@ source "kernel/time/Kconfig"
>
> menu "CPU/Task time and stats accounting"
>
> +config VIRT_CPU_ACCOUNTING
> + bool
> +
> choice
> prompt "Cputime accounting"
> default TICK_CPU_ACCOUNTING if !PPC64
> @@ -338,9 +341,10 @@ config TICK_CPU_ACCOUNTING
>
> If unsure, say Y.
>
> -config VIRT_CPU_ACCOUNTING
> +config VIRT_CPU_ACCOUNTING_NATIVE
> bool "Deterministic task and CPU time accounting"
> depends on HAVE_VIRT_CPU_ACCOUNTING
> + select VIRT_CPU_ACCOUNTING
> help
> Select this option to enable more accurate task and CPU time
> accounting. This is done by reading a CPU counter on each
> @@ -350,6 +354,15 @@ config VIRT_CPU_ACCOUNTING
> this also enables accounting of stolen time on logically-partitioned
> systems.
>
> +config VIRT_CPU_ACCOUNTING_GEN
> + bool "Full dynticks CPU time accounting"
> + depends on HAVE_CONTEXT_TRACKING
> + select VIRT_CPU_ACCOUNTING
> + select CONTEXT_TRACKING

select CONTEXT_TRACKING_FORCE

Otherwise the user time never gets updated.

-- Steve

> + help
> + Implement a generic virtual based cputime accounting by using
> + the context tracking subsystem.
> +
> config IRQ_TIME_ACCOUNTING
> bool "Fine granularity task level IRQ time accounting"
> depends on HAVE_IRQ_TIME_ACCOUNTING





\
 
 \ /
  Last update: 2013-01-09 15:42    [W:0.264 / U:1.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site