From: "Amitayu Das" Subject: Possible bugs and doubts about readjusting weights/slice-lengths from command prompt Date: Wed, 3 May 2006 01:48:14 -0400 Message-ID: <5f74ce410605022248m31c5de98j95c2dbffd6b5878a@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0337844674==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: rhim@cc.gatech.edu List-Id: xen-devel@lists.xenproject.org --===============0337844674== Content-Type: multipart/alternative; boundary="----=_Part_27671_32944746.1146635294874" ------=_Part_27671_32944746.1146635294874 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D=3D 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 m= e 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 ------=_Part_27671_32944746.1146635294874 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D=3D SCHED_INFO_PUT )
    {
     ...
        if (cmd->u.sedf.weight) {
            if ((cmd= ->u.sedf.extratime & EXTRA_AWARE) &&
            &nb= sp;   (! cmd->u.sedf.period)) {
            &nb= sp;   /*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
    

------=_Part_27671_32944746.1146635294874-- --===============0337844674== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0337844674==--