Re: [PATCH 10/17] 2.6.17.1 perfmon2 patch for review: PMU context switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> So why do we need care about context switch in cpu-wide mode?
> It is because we support a mode where the idle thread is excluded
> from cpu-wide monitoring. This is very useful to distinguish 
> 'useful kernel work' from 'idle'. 

I don't quite see the point because on x86 the PMU doesn't run
during C states anyways. So you get idle excluded automatically.

And on the other hand a lot of people especially want idle
accounting too and boot with idle=poll. Your explicit 
code would likely defeat that.

> As you realize, that means 
> that we need to turn off when the idle thread is context switched
> in and turn it back on when it is switched off.

Also x86-64 has idle notifiers for this if you really wanted
to do it properly.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux