WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Possible bugs and doubts about readjusting weights/slice-len

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Possible bugs and doubts about readjusting weights/slice-lengths from command prompt
From: "Amitayu Das" <amitayudas@xxxxxxxxx>
Date: Wed, 3 May 2006 01:48:14 -0400
Cc: rhim@xxxxxxxxxxxxx
Delivery-date: Tue, 02 May 2006 22:48:37 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=dwVDssR8qKnW3Euv1rFwtbTy4g+yv/uARb/2ZvpceDCQ24u4FCgo3VOCDnHZiTlz99MYWE9IrNrgPehb+Xfp0OJU2KpLc78wTdzbzGpe3Bc5liInVXSZ0Uyg47oW8CZS4Ok1+QvgI87HifvsPTc9nZRyUtVAMuDXLY+yOApedYU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
    

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>