linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Young Koh <young.koh@gmail.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] The UML scheduler
Date: Mon, 16 May 2005 11:06:48 -0400	[thread overview]
Message-ID: <20050516150648.GB4977@ccure.user-mode-linux.org> (raw)
In-Reply-To: <3524bf1f05051607306756dcfc@mail.gmail.com>

On Mon, May 16, 2005 at 10:30:33AM -0400, Young Koh wrote:
> suppose there are 2 processes on top of UML and 3 host processes.
> then, the host kernel sees 5 processes total, so, each of the process
> will get 20% of the CPU time? is that right?

In tt mode, there will be 5 processes, but it will be difficult for the 2 UML
processes to each get 20% of the time, since only one of them will be runnable
at a time on the host.  This is still unfair because each of them will have
a higher dynamic priority than the 3 host processes because they are each only
runnable half the time.

In skas mode, there is only one host process for all of the UML processes.

> Or, UML is somehow viewed as a group of processes and UML get 25% of
> the CPU and each UML got 12.5% of the CPU time? if so, how is it
> possible?

In skas mode, this is true.

> one more question, when the UML kernel wants to schedule its
> processes, how does it preempt UML processes?

The same way as any other architecture.  A timer tick comes in, and the 
timer handler calls schedule().

> this way of scheduling and preemption will be different from TT mode
> and SKAS mode? if so, how?

No, exactly the same.

				Jeff


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-05-16 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-16 14:30 [uml-devel] The UML scheduler Young Koh
2005-05-16 15:06 ` Jeff Dike [this message]
2005-05-16 15:37   ` Young Koh
2005-05-16 16:58     ` Jeff Dike

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=20050516150648.GB4977@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=young.koh@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox