All of lore.kernel.org
 help / color / mirror / Atom feed
From: NISHIGUCHI Naoki <nisiguti@jp.fujitsu.com>
To: "Su, Disheng" <disheng.su@intel.com>
Cc: George Dunlap <dunlapg@umich.edu>,
	Xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [RFC] Add static priority into credit scheduler
Date: Fri, 27 Mar 2009 19:13:59 +0900	[thread overview]
Message-ID: <49CCA6E7.2070200@jp.fujitsu.com> (raw)
In-Reply-To: <BB1F052FCDB1EA468BD99786C8B1ED2C01DC444924@PDSMSX501.ccr.corp.intel.com>

Su, Disheng wrote:
> NISHIGUCHI Naoki wrote:
>> I understand what you mean.
>> I doubt whether the rest of cpu not used by RT guest is reflected to
>> credit of non-RT guests. If RT guest might monopolize the whole cpu, I
>> think the rest of cpu is nothing, therefore non-RT guests have no
>> credit. 
>>
> 
> Yes, it's an issue need to be addressed for client virtualization case, due to the primary guest(e,g Windows) is not a trusted guest.
> When detecting one RT guest is monopolize cpu for a while(e.g. 1-2minute), one can:
> 1. kill the RT guest...
> 2. lower its priority for a while, give other guests the opportunity to run, then restore its previous priority
> Any ideas? 

What I mean is credit_total given to non-RT guest in scheduler.
If a PC has 4 core cpu and an RT guest has 4 vcpu, I think credit_total 
would be 0, because we could not predict behavior of the RT guest .

> Oh, forgot to mention you need to pin the RT guest, or try the attached patch.
> If you set one guest as high priority, it increases the chance that its vcpus are migrated back and forth, because the priority is fixed and higher than  
> OVER.

I tried your patch. The result was the same.
I also pin the RT guest and dom0 as follows, but HVM did not work well.
             vcpu cpu
      dom0     0   0
               1   1
               2   2
               3   3
      HVM      0   0
               1   1
               2   2
               3   3

It seems to me that idle cpus are not effectively used.

> Don't migrate the RT guest in practice. It's the same with Bcredit from my previous experience, isn't it?

I think that scheduler should not migrate the vcpu needlessly, but 
necessary migration should be done.

Best regards,
Naoki Nishiguchi

  reply	other threads:[~2009-03-27 10:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-20  9:18 [RFC] Add static priority into credit scheduler Su, Disheng
2009-03-20 12:42 ` George Dunlap
2009-03-23  7:33   ` Su, Disheng
2009-03-25 10:35     ` George Dunlap
2009-03-27  2:39       ` NISHIGUCHI Naoki
2009-03-27  3:29         ` Su, Disheng
2009-03-27  7:03           ` NISHIGUCHI Naoki
2009-03-27  8:05             ` Su, Disheng
2009-03-27 10:13               ` NISHIGUCHI Naoki [this message]
2009-03-27  4:29       ` Su, Disheng

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=49CCA6E7.2070200@jp.fujitsu.com \
    --to=nisiguti@jp.fujitsu.com \
    --cc=disheng.su@intel.com \
    --cc=dunlapg@umich.edu \
    --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.