All of lore.kernel.org
 help / color / mirror / Atom feed
* Possible bugs and doubts about readjusting weights/slice-lengths from command prompt
@ 2006-05-03  5:48 Amitayu Das
  2006-05-03 15:26 ` Ryan Harper
  0 siblings, 1 reply; 3+ messages in thread
From: Amitayu Das @ 2006-05-03  5:48 UTC (permalink / raw)
  To: xen-devel; +Cc: rhim


[-- Attachment #1.1: Type: text/plain, Size: 1675 bytes --]

Hi,

I had few doubts/questions about readjusting slice/period length (or
weights) for domains from command prompt. If someone can clarify, that'd be
very nice. Here is the list (with respect to sedf scheduler):

1. Is is true that mentioning weights for a domain is setting a maximum
limit for it so that it can't go beyond that limit by setting extra flag on?
If that's the case, why in xen/common/scehd_sedf.c, a checking for extra
flag is being made at first:

    if ( cmd->direction == SCHED_INFO_PUT )
    {
     ...
        if (cmd->u.sedf.weight) {
            if ((cmd->u.sedf.extratime & EXTRA_AWARE) &&
                (! cmd->u.sedf.period)) {
                /*weight driven domains with xtime ONLY!*/
      ...

Please let me know if I'm missing something.

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.

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.

Thanks in advance,
Amitayu

[-- Attachment #1.2: Type: text/html, Size: 2159 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-03 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [not found]   ` <5f74ce410605031140h2c4af2eej5652dffff97389d3@mail.gmail.com>
2006-05-03 19:06     ` Ryan Harper

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.