Sponsored Content
Operating Systems Linux Difference between vruntime and sum_exec_runtime Post 302815243 by kg_gaurav on Friday 31st of May 2013 10:05:59 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. UNIX for Advanced & Expert Users

difference

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

6. 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

7. 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

8. 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

9. 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

10. 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
pdebuild-user-mode-linux(1)					     pbuilder					       pdebuild-user-mode-linux(1)

NAME
pdebuild-user-mode-linux - pbuilder-user-mode-linux way of doing debuild SYNOPSIS
pdebuild-user-mode-linux [pdebuild-user-mode-linux options] -- [pbuilder-user-mode-linux options] DESCRIPTION
A convenience program for pbuilder-user-mode-linux which invokes pbuilder after obtaining appropriate root privilege in a Debian source directory. One must be inside the source tree containing the debian directory, in order to make it work. PDEBUILD OPTIONS
--buildsourceroot [fakeroot] The command used to gain root privilege for invoking dpkg-buildpackage --auto-debsign Invoke debsign at the end of pdebuild process. --debsign-k [key-id] Pass -k option to debsign to specify which keyid to sign. --buildresult [Directory for build results] The place which build result is stored. --configfile [Extra config file to use] The configuration file is used, but not passed on to pbuilder-user-mode-linux. --debbuildopts [options to pass to dpkg-buildpackage] The space-delimited list of options are passed to dpkg-buildpackage. This option appends to pbuilder option --debbuildopts and may also be used to reset the list of options by passing the empty string. --use-pdebuild-internal Uses a different implementation of pdebuild, which calls clean and build inside the chroot, using bind-mounts. pdebuild-internal tries to run debian/rules clean inside the chroot. To achieve the goal, the working directory is passed on inside the chroot, in the form of bind-mounting and debuild is run. This option will not protect the working directory and its parent directories from the build scripts. -- [pbuilder options] After the -- symbol, an arbitrary number of pbuilder options can be specified. See pbuilder-user-mode-linux.1 for full list of options. There is an exception that --buildresult needs to be specified as pdebuild option before the -- to be effective. FILES
/etc/pbuilderrc The configuration file for pbuilder-user-mode-linux, used in pdebuild-user-mode-linux. /usr/share/pbuilder/pbuilderrc The default configuration file for pbuilder-user-mode-linux, used in pdebuild-user-mode-linux. ${HOME}/.pbuilderrc Configuration file for pbuilder-user-mode-linux, used in pdebuild-user-mode-linux, overrides what is written in /etc/pbuilderrc AUTHOR
Initial coding, and main maintenance is done by Junichi Uekawa <dancer@debian.org>. The homepage is available at http://pbuilder.alioth.debian.org SEE ALSO
/usr/share/doc/pbuilder/pbuilder-doc.html, pbuilder-user-mode-linux(1), pbuilderrc(5), pbuilder-uml.conf(5) Debian 2006 May 24 pdebuild-user-mode-linux(1)
All times are GMT -4. The time now is 06:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy