LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-01-2014, 10:19 AM   #1
anup.estuff
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Rep: Reputation: Disabled
Completely Fair Scheduler - Min_vruntime - Info Needed


Hi all,

I am trying to learn CFS. I came across this variable.

min_vruntime : kernel documentation says it stores the total work done by the system . AND it is used to add new tasks more to the left in the rbtree so that they are scheduled quickly.

But I am not able to understand why we need that variable and how it is used for
1. new added tasks
2. Tasks that wake up after sleep.
I tried learning from professional linux kernel architecture+utlk and alike. But I am not able to understand.

Also the key in the rbtree is used as (current_vruntime - min_vruntime) ? why are we even using such formule in which we subtract min_vruntime which is monotonically increasing??

I think it is related to some latency period and the processes which runs in one latency period. I think I may be missing some of the core concepts on scheduling process, but not able to figure out what I am missing.

My understanding is pretty messed up the use of min_vruntime. I would be highly grateful if someone could explain me in bit of a detail about my answer. Thanks in Advance!!!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Multiprocessing with the Completely Fair Scheduler LXer Syndicated Linux News 0 01-12-2008 07:40 PM
LXer: Linux: Designing the Completely Fair Scheduler LXer Syndicated Linux News 0 07-31-2007 12:01 PM
LXer: Linux: Completely Fair Scheduler Merged LXer Syndicated Linux News 0 07-11-2007 03:46 AM
LXer: Linux: Understanding the Completely Fair Scheduler LXer Syndicated Linux News 0 05-15-2007 10:16 AM
LXer: Linux: The Completely Fair Scheduler LXer Syndicated Linux News 0 04-18-2007 07:46 PM

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

All times are GMT -5. The time now is 07:35 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