LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-13-2009, 07:52 AM   #1
paolorallo
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
FTrace


Hi!
I'm using ftrace in order to trace any task or process running. I'm interesting to the context switch tracing. Ok, I've enabled sched_switch and the results are in the trace file.
How can I interpretate correctly the results?
What does the following mean?

bash-3997 [01] 240.132281: 3997:120:R + 4055:120:R

The process 3997 (pid) with priority 120 is runnnig (R), right?
At the time 240.132281 the process 4055 wake up and....
What does the R of the process 4055 mean?

bash-3997 [01] 240.132284: 3997:120:R ==> 4055:120:R

This is a real context witch, I suppose. Why is 3997 still running?
I believe that if there's a context switch, like in this case, the
process 3997 should sleep and 4055 starts to run.

sleep-4055 [01] 240.132371: 4055:120:S ==> 3997:120:R

This is the case that I said above, right?

bash-3997 [01] 240.132454: 3997:120:R + 4055:120:S

4005 wake up and it goes to sleep, right?

sleep-4055 [01] 240.132460: 4055:120: D ==> 3997:120:R

What is D?

bash-3997 [01] 240.132463: 3997:120:R + 4055:120: D

4005 wakes up and goes in the state.... I don't know

The documentation says that the R state is:
the process wants to run, may not actually be running.
Is it running or not? How can I know if it's running?

Help me.
Thanks

Last edited by paolorallo; 03-17-2009 at 10:00 AM.
 
Old 03-21-2009, 11:25 PM   #2
leemgs
LQ Newbie
 
Registered: Sep 2004
Location: korea
Distribution: yes
Posts: 2

Rep: Reputation: 0
D state means that process must be woken up. orginal message of D abbreviation is Disk Sleep(uninterruptible sleep).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration