All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timo Benk <timo.benk@gmx.de>
To: xen-devel@lists.xensource.com
Subject: Credit Scheduler not working correct (3.0.4-0)
Date: Thu, 01 Feb 2007 10:47:33 +0100	[thread overview]
Message-ID: <45C1B735.3020904@gmx.de> (raw)

Hi,

on my system, it seems that the credit scheduler does not work as expected. The
problem seems to be related to HyperThreading, if i switch off HT in the BIOS
Setup, the scheduler works as expected.

I have two domains running, both pinned to the same processor:

Domain-0:~ # xm vcpu-list
Name                              ID  VCPU   CPU State   Time(s) CPU
Affinity
Domain-0                           0     0     1   ---      30.2 any cpu
Domain-0                           0     1     1   r--      12.0 any cpu
xendom1                            1     0     0   ---      98.6 0
xendom2                            2     0     0   r--     110.3 0

Both domains should consume max. 100 Percent of that processor, but
xendom1 has a weight twice as big as xendom2:

Domain-0:~ # xm sched-credit -d xendom1
{'cap': 100, 'weight': 200}
Domain-0:~ # xm sched-credit -d xendom2
{'cap': 100, 'weight': 100}

In my understanding of the credit scheduler, xendom1 should get twice as
much CPU-time as xendom2. But:

xentop - 11:05:46   Xen 3.0.4-0
Mem: 2612284k total, 2603852k used, 8432k free    CPUs: 2 @ 2992MHz
      NAME  STATE   CPU(sec) CPU(%)  [...]
  Domain-0 -----r         42    0.6  [...]
   xendom1 ------        122   49.8  [...]
   xendom2 -----r        133   50.2  [...]

As you can see, both domains got an equal amount of the CPU.

Am i missing something or do i understand something wrong?

Greetings,
-timo
-- 
Timo Benk - Jabber ID: fry@downtempo.de - ICQ ID: #414944731
PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc

             reply	other threads:[~2007-02-01  9:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01  9:47 Timo Benk [this message]
2007-02-01 10:07 ` Credit Scheduler not working correct (3.0.4-0) Atsushi SAKAI
2007-02-01 10:15   ` Timo Benk
2007-02-01 10:25     ` Atsushi SAKAI
2007-02-01 10:30 ` Emmanuel Ackaouy
2007-02-01 10:58   ` Daniele Palumbo
2007-02-06 13:17     ` Emmanuel Ackaouy
2007-02-01 11:06   ` Timo Benk
2007-02-01 11:32   ` Atsushi SAKAI
2007-02-01 12:16     ` Emmanuel Ackaouy

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=45C1B735.3020904@gmx.de \
    --to=timo.benk@gmx.de \
    --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.