From: Ryan Harper <ryanh@us.ibm.com>
To: Amitayu Das <amitayudas@gmail.com>
Cc: xen-devel <xen-devel@lists.xensource.com>, rhim@cc.gatech.edu
Subject: Re: Possible bugs and doubts about readjusting weights/slice-lengths from command prompt
Date: Wed, 3 May 2006 10:26:49 -0500 [thread overview]
Message-ID: <20060503152649.GE16776@us.ibm.com> (raw)
In-Reply-To: <5f74ce410605022248m31c5de98j95c2dbffd6b5878a@mail.gmail.com>
* Amitayu Das <amitayudas@gmail.com> [2006-05-03 00:49]:
> 2. Say, I'm readjusting the slice lengths of running domains. While doing
> that, I make a mistake by having sum of the slice-lengths higher than
> period-length. In such cases, what does Xen actually do? I did not find
> sanity-checking code for such cases in xen/common/sched_sedf.c. Please let
> me know in case it's not there, why so or it's there, only I did not find
> it.
For time-driven domains, versus weighted domains in sched_sedf.c:1407
/*
* Sanity checking: note that disabling extra weight requires
* that we set a non-zero slice.
*/
if ( (cmd->u.sedf.period > PERIOD_MAX) ||
(cmd->u.sedf.period < PERIOD_MIN) ||
(cmd->u.sedf.slice > cmd->u.sedf.period) ||
(cmd->u.sedf.slice < SLICE_MIN) )
return -EINVAL;
period has bounds, slice cannot be greater than period, and slice cannot
be smaller than SLICE_MIN. For any of these cases, the command will not
succeed. You also might be interested in looking at
tools/xm-test/tests/sedf which has some simple sedf scheduler tests.
>
> 3. I tried to modify/readjust the slice/period length (or weights) for
> domains from command prompt. However, I found out that changes are
> immaterial after first attempt. That is, no matter what changes I made at
> second or third or fourth time, they are not actually taking place. Only,
> the changes made during the first attempt actually took place. Please let me
> know if this is a bug in the existing code or I should have done the things
> in a different manner.
Could you supply the xm sched-sedf commands and values you used?
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
ryanh@us.ibm.com
next prev parent reply other threads:[~2006-05-03 15:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-03 5:48 Possible bugs and doubts about readjusting weights/slice-lengths from command prompt Amitayu Das
2006-05-03 15:26 ` Ryan Harper [this message]
[not found] ` <5f74ce410605031140h2c4af2eej5652dffff97389d3@mail.gmail.com>
2006-05-03 19:06 ` Ryan Harper
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=20060503152649.GE16776@us.ibm.com \
--to=ryanh@us.ibm.com \
--cc=amitayudas@gmail.com \
--cc=rhim@cc.gatech.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.