Difference between vruntime and sum_exec_runtime


 
Thread Tools Search this Thread
Operating Systems Linux Difference between vruntime and sum_exec_runtime
# 1  
Old 05-31-2013
Code Difference between vruntime and sum_exec_runtime

While studying linux scheduler i looked into strct sched_entity and update_curr function which accounts for how much time a process have run.
The code says that vruntime is incremented by a weighted value(total run time weighted against number of process) while sum_exec_runtime is incremented by how much time passed since last accounting.
Here's link for function's defintion
update_curr :Linux/kernel/sched/fair.c - Linux Cross Reference - Free Electrons
__update_curr:Linux/kernel/sched/fair.c - Linux Cross Reference - Free Electrons

My question if we increment vruntime by weighted value how can we be sure that this is the time for which the process ran so far?
I think sum_exec_runtime gives exactly what we are looking for.
Please correct me if i'm wrong or any explanation for clearing this concept.

thanks
# 2  
Old 06-05-2013
The weighting is probably for determining the order of this process in CPU dispatching, for scheduler priority. You want the unweighted sum.
# 3  
Old 06-14-2013
Quote:
Originally Posted by DGPickett
The weighting is probably for determining the order of this process in CPU dispatching, for scheduler priority. You want the unweighted sum.
yes i think and by definition vruntime should be total time elapsed and unweighted. right?
# 4  
Old 06-14-2013
You said the reverse last time, which looks right.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to calculate difference of split and sum the difference

In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13. I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Programming

what is the main difference between difference between using nonatomic lseek and O_APPEND

I think both write at the end of the file ...... but is there a sharp difference between those 2 instruction ..... thank you this is my 3rd question today forgive me :D (1 Reply)
Discussion started by: fwrlfo
1 Replies

3. Shell Programming and Scripting

What's the difference between $* and $@ ?

What's the difference between $* and $@? And I read that the $* has security problems, why? (6 Replies)
Discussion started by: Henryyy
6 Replies

4. UNIX for Dummies Questions & Answers

Difference between sh and ./

Hi All Can any body please tell me what is difference between sh scr ./scr Here scr is a script. (1 Reply)
Discussion started by: parthmittal2007
1 Replies

5. Shell Programming and Scripting

difference between = and ==

Hi, I don't understand the difference between if ] and if ] for me #!/usr/bin/ksh string1=test1 string2=test2 if ];then OR if ];then echo "strings are same" else echo "strings are different" (7 Replies)
Discussion started by: dips_ag
7 Replies

6. UNIX for Advanced & Expert Users

difference

difference b/w shell scripting and perl scripting (2 Replies)
Discussion started by: simmijaswal
2 Replies

7. Shell Programming and Scripting

Difference between $* and $@

Somebody please tell me the difference between $@ and $* Thanks in advance. Saneesh Joseph (1 Reply)
Discussion started by: saneeshjose
1 Replies

8. UNIX for Dummies Questions & Answers

What is the difference

I Know this is a dumb question but.... What is the differance beetwean OpenSuSe 10.1 alfa and SuSe 10? :confused: (1 Reply)
Discussion started by: thunderfastfox
1 Replies

9. Programming

Difference between C and C++

Hi, What is the difference between the C and C++. And what new features is added in the C++.then C Programming in the UNIX Environmnet. Thanks: www.hytechpro.com (2 Replies)
Discussion started by: hytechpro
2 Replies

10. Linux

what is the difference between -h and -H ?

samba:/home/backup # df -h /home/ Filesystem Size Used Avail Use% Mounted on /dev/sdb2 34G 8.6G 26G 26% /home samba:/home/backup # df -H /home/ Filesystem Size Used Avail Use% Mounted on /dev/sdb2 37GB 9.2GB 28GB 26% /home what... (2 Replies)
Discussion started by: cw1972
2 Replies
Login or Register to Ask a Question