LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2012, 07:42 PM   #1
vinaywagh
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
Can someone explain the output of /proc/pid/sched


Guys,

I am trying to understand the output of the /proc/pid/sched. I could not find anything on the web either. Here is the output I see on my system.

root@slot7:/root> cat /proc/10556/sched
send_tipc (10556, #threads: 1)
---------------------------------------------------------
se.exec_start : 29266438.441437
se.vruntime : 762810.236743
se.sum_exec_runtime : 195.169059
se.avg_overlap : 0.322470
se.avg_wakeup : 3.999993
nr_switches : 3515
nr_voluntary_switches : 3466
nr_involuntary_switches : 49
se.load.weight : 29154
policy : 0
prio : 105
clock-delta : 102

What do each of these values mean. Is the unit nano seconds ?

Thanks,
Vinay
 
Old 06-22-2012, 01:18 PM   #2
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
FYI See: http://linux.about.com/od/commands/l/blcmdl5_proc.htm
This forum will be to short to tell you all about it
 
Old 06-22-2012, 05:59 PM   #3
vinaywagh
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Babertje View Post
FYI See: http://linux.about.com/od/commands/l/blcmdl5_proc.htm
This forum will be to short to tell you all about it
The link you mentioned does not have the /proc/pid/sched file in it. I have read the proc man page and it does not answer the question, it somehow leaves out the sched file. There does not seem to a single forum where I find this information. I was hoping someone on this forum would know.
 
Old 06-26-2012, 04:15 PM   #4
vinaywagh
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
A colleague of mine is familiar with the data. The file seems to be new and probably came in as part of CFS. Here is information on some of the data

se.exec_start : 29266438.441437
se.vruntime : 762810.236743
se.sum_exec_runtime : 195.169059
sum_exec_runtime is the CPU time used by the thread (if you add up the utime and stime for the thread it should match this value except this is in nano-secs. vruntime is virtual run time, it kind of is the same as the sum_exec_runtime scaled by the load.weight below. The scheduler uses this field to arrange the ready queue in a Red and Black tree and the one with the least vruntime is always picked to run next. I think exec_start is the current time when this thread is picked up to run, not sure.

se.avg_overlap : 0.322470
se.avg_wakeup : 3.999993
avg_wakeup gives the average time the thread spent blocking.

nr_switches : 3515
This is the # of context switches.

nr_voluntary_switches : 3466
Voluntary switches, I.e the thread blocked and hence another thread is picked up.

nr_involuntary_switches : 49
involuntary – the scheduler kicked the thread out as there is another hungry thread is ready to run.

se.load.weight : 29154
load.weight is based on the nice value, nice value range from –19 to 20, plays a role in calculating the time slice (note CFS supports variable time slice, a process with nice value of –1 gets ~ 5% more time-slice than a process with nice 0)

policy : 0
prio : 105
prio 0-99 are real-time priorities, 100-139 are CFS scheduling priority. 105 indicates you are running with –15
clock-delta : 102
 
Old 06-26-2012, 08:02 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,831

Rep: Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006
Thanks for responding back with that info. here is a little more from the CFS author.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
interpretation of /proc/pid/sched output GoelMudit Linux - General 1 01-06-2011 10:54 PM
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 04:47 PM
pmap or /proc/<pid>smap or /proc/<pid>/status iQoder Linux - Newbie 1 07-16-2009 06:32 PM
/proc/pid/maps Moraxus Linux - General 0 02-11-2009 08:49 AM
how to read /proc/pid/status in sched.c linuxdoniv Programming 3 07-21-2008 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 AM.

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