lkml.org 
[lkml]   [2009]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf_counter: Prevent oopses from per-cpu software counters
Ingo Molnar writes:

> You are right that "pagefaults" and "context switches" do get generated by
> tasks - but there is a per cpu and system wide notion of 'number of
> pagefaults', and people might be interested in monitoring that.

Sure. What I was trying to say was that the existing code for the
page fault, context switch and task migration software counters uses
"current", so as it is, they can't be used as per-cpu counters.

> The existence and widespread use of "vmstat", and its display of system-wide
> count of "context switches" (and administrator's reliance on judging a
> workload based on those counts) is i think ample proof that it makes sense
> to have those counters on a per CPU basis too.
>
> So how about fixing these sw counts to properly work as percpu counters too?
> Or am i misssing something subtle that makes that impossible?

I'll do that, but I think it can be a second patch on top of the one I
posted. My existing patch doesn't disable anything that previously
worked, it just stops you doing things that would cause an oops. So I
think it is strictly an improvement on the current situation.

Paul.


\
 
 \ /
  Last update: 2009-02-06 03:43    [W:0.742 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site