diff options
| author | Ryota Ozaki <[email protected]> | 2009-10-24 01:20:10 +0900 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-10-25 17:31:30 +0100 |
| commit | ce0e7b28fb75cb003cfc8d0238613aaf1c55e797 (patch) | |
| tree | e70bec2040045b68876d85036756bc046b5d2742 /include/linux/kernel_stat.h | |
| parent | 0b9e31e9264f1bad89856afb96da1688292f13b4 (diff) | |
sched, cpuacct: Fix niced guest time accounting
CPU time of a guest is always accounted in 'user' time
without concern for the nice value of its counterpart
process although the guest is scheduled under the nice
value.
This patch fixes the defect and accounts cpu time of
a niced guest in 'nice' time as same as a niced process.
And also the patch adds 'guest_nice' to cpuacct. The
value provides niced guest cpu time which is like 'nice'
to 'user'.
The original discussions can be found here:
http://www.mail-archive.com/[email protected]/msg23982.html
http://www.mail-archive.com/[email protected]/msg23860.html
Signed-off-by: Ryota Ozaki <[email protected]>
Acked-by: Avi Kivity <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/kernel_stat.h')
| -rw-r--r-- | include/linux/kernel_stat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 348fa8874b52..c059044bc6dc 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h @@ -25,6 +25,7 @@ struct cpu_usage_stat { cputime64_t iowait; cputime64_t steal; cputime64_t guest; + cputime64_t guest_nice; }; struct kernel_stat { |
