All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gaurav Somani <onlineengineer@gmail.com>
To: xen-devel@lists.xensource.com
Subject: Re: Sched planning: Ideal scheduler, and credit1
Date: Sun, 7 Jun 2009 10:22:55 -0700 (PDT)	[thread overview]
Message-ID: <23913205.post@talk.nabble.com> (raw)
In-Reply-To: <de76405a0906050311p4e9720a6xc4983e2287d6982d@mail.gmail.com>


Hi George,

had a great and quite illustrative read. having some queries?



* Credit1, and why it doesn't work well for video

At a basic level, credit1 has two main priorities: UNDER and OVER.

 Credits are handed out every 30ms according to weight.  VMs that have
positive credits are classed at priority UNDER, and those with
negative credits are classed as OVER..............


>>> I have read in ongaro et al's (Schedulin I/O in Virtual machine
>>> monitors) paper that credits are handed over to domains after the sum of
>>> all the credits in the system goes negative. So that time will come
>>> after all the UNDER and BOOST domains complete their execution for the
>>> all credit time=30ms they have.



Credit1 has a strong probabilistic element.  Every 10ms a "tick" timer
fires.  When the tick happens, a full 10ms of credit is subtracted
from the currently running VM.  It relies on an element of randomness
to spread this charge appropriately over all active VMs.

However, if we divide credits over all VMs we have the following
problem: if some VMs are idle, then what will happen is that the
"active" VMs will spend most of their time in the "OVER" state, while
mostly idle VMs will spend all of their time in the "UNDER" state
accumulating more and more credits.  So credit1 attempts to
distinguish between two kinds of workloads:

* "active" workloads, which are competing for CPU, and need to have
  credit accounting done.

* "inactive" workloads, which use minimal cpu, and need no credit
  accounting.




>>>>>>How credit scheduler can identify the application it is running at
very first time. Please correct me if i m wrong. Where does credit scheduler
classify active and inactive workload? (in code)


The rules for determining whether a VM was "active" or "inactive" are
as follows:

Thanks
Gaurav Somani
-- 
View this message in context: http://www.nabble.com/Sched-planning%3A-Ideal-scheduler%2C-and-credit1-tp23885657p23913205.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

  reply	other threads:[~2009-06-07 17:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 10:11 Sched planning: Ideal scheduler, and credit1 George Dunlap
2009-06-07 17:22 ` Gaurav Somani [this message]
2009-06-16  7:33 ` XiaYubin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23913205.post@talk.nabble.com \
    --to=onlineengineer@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.