Re: How can i track all process context switches in the kernel ?

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

 



hi all

On Wed, May 21, 2008 at 2:35 PM, Indraneel Mukherjee
<mukherjee.indraneel@xxxxxxxxx> wrote:
>
> I think you can get some of the above stats from /proc/%PID/schedstat
> It will give the following for your process:
> 1. Sum of all time spent running on the CPU.
> 2. Sum of all time spent waiting on a runqueue.
> 3. Num of time slices run on the CPU.
>
> A program to report how a process is doing under a scheduling policy
> is available at:
> http://eaglet.rain.com/rick/linux/schedstat/v12/latency.c
>
> And more info at
> http://eaglet.rain.com/rick/linux/schedstat/index.html
> OR
> linux/Documentation/sched-stats.txt

CMIIW people, but IIUC the original poster ask for switch sequence,
kinda process A to  B, then to C and so on

So, it's not just how many times context switches for certain processes happen.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux