From: Ananth Subject: Re: Re: Issues while running Xen with new RR scheduler Date: Fri, 1 May 2009 03:30:10 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1592332585==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============1592332585== Content-Type: multipart/alternative; boundary=001636e0b4f1e202930468ccd1df --001636e0b4f1e202930468ccd1df Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable :) Thank you... The system hangs with a blank screen. It does not reboot. When I checked the /var/log/messages file, Apr 30 01:02:01 cbananth exiting on signal 15 This was the message that was logged when I booted into the system. Could you please guide me on how to set up a serial console? Should I connect another system only through a serial port? Can I connect through LA= N cable also? I have never done this before. Thank you Warm Regards Ananth On Tue, Apr 28, 2009 at 7:49 PM, George Dunlap wrote: > Welcome to OS programming. :-) When you say, "everything goes blank", > you mean that the machine reboots, or do you mean it just hangs? > > The main thing to do is add printks to your code to figure out where > things start to go bad. > > If your machine is rebooting / crashing, then you're probably > dereferencing a null pointer or something like that. The best thing > for this is to set up a serial console, enable the sync_console > feature on the xen command line, and log the serial console output. > Then you'll have the printks as close as possible to the actual crash, > which should help you narrow things down. > > Good luck, > -George > > On Mon, Apr 27, 2009 at 11:39 PM, Ananth wrote: > > Hi, > > Thanks for your suggestion. I was able to change scheduler from credit = to > > sedf. "sched" is the correct parameter. > > However when I try to select sched=3Drrobin, the system gets ready to b= oot > and > > then everything goes blank. I have attached the round robin scheduler > code > > along with this mail. Could you give me your feedback on whether I have > > missed out something. > > > > Thank you very much once again. > > > > Warm Regards > > Ananth > > > > On Tue, Apr 28, 2009 at 2:11 AM, George Dunlap > wrote: > >> > >> You need to pass the arguments to xen on the xen command line, not the > >> dom0 kernel command line. So the following line should be: > >> > >> kernel /boot/xen.gz sched=3Drrobin > >> > >> (I haven't checked to make sure that "sched" is the right parameter.) > >> > >> -George > >> > >> On Mon, Apr 27, 2009 at 7:39 PM, Ananth wrote: > >> > Hi, > >> > In continuation with my previous post, I am able to login to the > >> > compiled > >> > Xen. But it is continuing to run on credit scheduler even if i modif= y > >> > the > >> > kernel parameters to run using round robin scheduler. > >> > I have pasted the contents of the /boot/grub/menu.lst file. > >> > > >> > title Xen -- openSUSE 11.0 - 2.6.18.8 manually compiled AGAIN > >> > root (hd0,4) > >> > kernel /boot/xen.gz > >> > module /boot/vmlinuz-2.6.18.8-xen0 > >> > root=3D/dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2D04E4CE7YEE-part= 5 > >> > showopts > >> > sched=3Drrobin vga=3D0x314 > >> > module /boot/initrd-2.6.18-xen0 > >> > > >> > Incidentally, even if i give sched=3Dsedf, it still runs only on cre= dit > >> > scheduler. Please let me know your feedback on this issue. My aim is > to > >> > study the performance statistics of credit, sedf and new RR schedule= r. > >> > It > >> > would be great if you could give me any pointers to measure schedule= r > >> > performance or get statistics from the system. > >> > > >> > Thanks & Regards > >> > Ananth > >> > > >> > ---------- Forwarded message ---------- > >> > From: Ananth > >> > Date: Mon, Apr 27, 2009 at 6:45 PM > >> > Subject: Re: [Xen-devel] Fwd: Error while compiling with new RR > >> > scheduler > >> > To: George Dunlap > >> > Cc: "xen-devel@lists.xensource.com" > >> > > >> > > >> > Hello, > >> > Thank you so much for pointing it out. How could I miss something so > >> > obvious. I am able to compile it now. I will get back to you in case= I > >> > get > >> > into any issues during run time. > >> > > >> > Thank you. > >> > > >> > Regards > >> > Ananth > >> > > >> > On Mon, Apr 27, 2009 at 6:29 PM, George Dunlap > >> > wrote: > >> >> > >> >> The message says it pretty clearly: you return the value of ret, b= ut > >> >> there are control paths in the function for which ret.task is not > set. > >> >> Namely, if list_empty(runq) is true, then you will return an > >> >> uninitialized value, which may be anything (garbage on the stack, > >> >> NULL, &c). This will most likely cause Xen to crash, as > >> >> xen/common/schedule.c assumes that ret.task will be a valid, non-NU= LL > >> >> pointer. > >> >> > >> >> If you happen to know that runq is never empty, then you don't need > >> >> the if statement. If it may be empty, then you need an else clause > to > >> >> return the idle vcpu for that processor. > >> >> > >> >> -George > >> >> > >> >> 2009/4/24 Ananth : > >> >> > Hi, > >> >> > I figured out that the error was because of a missing ' ; ' . Thi= s > >> >> > has > >> >> > been fixed now. I have attached the modified code. > >> >> > While compiling I am getting the below error message. > >> >> > > >> >> > cc1: warnings being treated as errors > >> >> > sched_rrobin.c: In function =91rrobin_schedule=92: > >> >> > sched_rrobin.c:74: error: =91ret.task=92 may be used uninitialize= d in > >> >> > this > >> >> > function > >> >> > > >> >> > Please guide. > >> >> > > >> >> > Thanks & Regards > >> >> > Ananth > >> >> > > >> >> > > >> >> > ---------- Forwarded message ---------- > >> >> > From: Ananth > >> >> > Date: Fri, Apr 24, 2009 at 7:25 PM > >> >> > Subject: Error while compiling with new RR scheduler > >> >> > To: "xen-devel@lists.xensource.com" > > >> >> > > >> >> > > >> >> > Hi, > >> >> > Please find attached the source code of Round Robin scheduler whi= ch > I > >> >> > am > >> >> > trying to add to Xen 3.3.1. > >> >> > I am facing the following error messages while compiling the same= . > >> >> > > >> >> > sched_rrobin.c:31: error: two or more data types in declaration > >> >> > specifiers > >> >> > > >> >> > sched_rrobin.c: In function =91rrobin_vcpu_init=92: > >> >> > > >> >> > sched_rrobin.c:34: error: incompatible types in return > >> >> > > >> >> > sched_rrobin.c:51: error: incompatible types in return > >> >> > > >> >> > sched_rrobin.c:94: error: initialization from incompatible pointe= r > >> >> > type > >> >> > > >> >> > I believe the error in line 94 is causing the rest of the error > >> >> > messages. I have checked with the structure definition in > sched-if.h > >> >> > as well > >> >> > as the implementation of the same in other schedulers such as SED= F > >> >> > and > >> >> > Credit. > >> >> > > >> >> > Request you to kindly provide your feedback regarding the same. > >> >> > > >> >> > Thanks & Regards > >> >> > Ananth > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > Xen-devel mailing list > >> >> > Xen-devel@lists.xensource.com > >> >> > http://lists.xensource.com/xen-devel > >> >> > > >> >> > > >> > > >> > > >> > > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > > > --001636e0b4f1e202930468ccd1df Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable :) Thank you...
The system hangs with a blank screen. It does not reboot= .
When I checked the /var/log/messages file,

Apr 30 01:02:01 cba= nanth exiting on signal 15

This was the message that was logged when= I booted into the system.
Could you please guide me on how to set up a serial console? Should I conne= ct another system only through a serial port? Can I connect through LAN cab= le also? I have never done this before.

Thank you

Warm Regard= s
Ananth

On Tue, Apr 28, 2009 at 7:49 PM, G= eorge Dunlap <George.Dunlap@eu.citrix.com> wrote:<= br>
Welcome to OS pro= gramming. :-) =A0When you say, "everything goes blank",
you mean that the machine reboots, or do you mean it just hangs?

The main thing to do is add printks to your code to figure out where
things start to go bad.

If your machine is rebooting / crashing, then you're probably
dereferencing a null pointer or something like that. =A0The best thing
for this is to set up a serial console, enable the sync_console
feature on the xen command line, and log the serial console output.
Then you'll have the printks as close as possible to the actual crash,<= br> which should help you narrow things down.

Good luck,
=A0-George

On Mon, Apr 27, 2009 at 11:39 PM, Ananth <cbananth@gmail.com> wrote:
> Hi,
> Thanks for your suggestion. I was able to change scheduler from credit= to
> sedf. "sched" is the correct parameter.
> However when I try to select sched=3Drrobin, the system gets ready to = boot and
> then everything goes blank. I have attached the round robin scheduler = code
> along with this mail. Could you give me your feedback on whether I hav= e
> missed out something.
>
> Thank you very much once again.
>
> Warm Regards
> Ananth
>
> On Tue, Apr 28, 2009 at 2:11 AM, George Dunlap <dunlapg@umich.edu> wrote:
>>
>> You need to pass the arguments to xen on the xen command line, not= the
>> dom0 kernel command line. =A0So the following line should be:
>>
>> kernel /boot/xen.gz sched=3Drrobin
>>
>> (I haven't checked to make sure that "sched" is the = right parameter.)
>>
>> =A0-George
>>
>> On Mon, Apr 27, 2009 at 7:39 PM, Ananth <cbananth@gmail.com> wrote:
>> > Hi,
>> > In continuation with my previous post, I am able to login to = the
>> > compiled
>> > Xen. But it is continuing to run on credit scheduler even if = i modify
>> > the
>> > kernel parameters to run using round robin scheduler.
>> > I have pasted the contents of the /boot/grub/menu.lst file. >> >
>> > title Xen -- openSUSE 11.0 - 2.6.18.8 manually compiled AGAIN=
>> > root (hd0,4)
>> > kernel /boot/xen.gz
>> > module /boot/vmlinuz-2.6.18.8-xen0
>> > root=3D/dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB2D04E4CE7Y= EE-part5
>> > showopts
>> > sched=3Drrobin vga=3D0x314
>> > module /boot/initrd-2.6.18-xen0
>> >
>> > Incidentally, even if i give sched=3Dsedf, it still runs only= on credit
>> > scheduler. Please let me know your feedback on this issue. My= aim is to
>> > study the performance statistics of credit, sedf and new RR s= cheduler.
>> > It
>> > would be great if you could give me any pointers to measure s= cheduler
>> > performance or get statistics from the system.
>> >
>> > Thanks & Regards
>> > Ananth
>> >
>> > ---------- Forwarded message ----------
>> > From: Ananth <cbananth@gmail.com>
>> > Date: Mon, Apr 27, 2009 at 6:45 PM
>> > Subject: Re: [Xen-devel] Fwd: Error while compiling with new = RR
>> > scheduler
>> > To: George Dunlap <dunlapg@umich.edu>
>> > Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensour= ce.com>
>> >
>> >
>> > Hello,
>> > Thank you so much for pointing it out. How could I miss somet= hing so
>> > obvious. I am able to compile it now. I will get back to you = in case I
>> > get
>> > into any issues during run time.
>> >
>> > Thank you.
>> >
>> > Regards
>> > Ananth
>> >
>> > On Mon, Apr 27, 2009 at 6:29 PM, George Dunlap <dunlapg@umich.edu>
>> > wrote:
>> >>
>> >> The message says it pretty clearly: =A0you return the val= ue of ret, but
>> >> there are control paths in the function for which ret.tas= k is not set.
>> >> =A0Namely, if list_empty(runq) is true, then you will ret= urn an
>> >> uninitialized value, which may be anything (garbage on th= e stack,
>> >> NULL, &c). =A0This will most likely cause Xen to cras= h, as
>> >> xen/common/schedule.c assumes that ret.task will be a val= id, non-NULL
>> >> pointer.
>> >>
>> >> If you happen to know that runq is never empty, then you = don't need
>> >> the if statement. =A0If it may be empty, then you need an= else clause to
>> >> return the idle vcpu for that processor.
>> >>
>> >> =A0-George
>> >>
>> >> 2009/4/24 Ananth <cbananth@gmail.com>:
>> >> > Hi,
>> >> > I figured out that the error was because of a missin= g ' ; ' . This
>> >> > has
>> >> > been fixed now. I have attached the modified code. >> >> > While compiling I am getting the below error message= .
>> >> >
>> >> > cc1: warnings being treated as errors
>> >> > sched_rrobin.c: In function =91rrobin_schedule=92: >> >> > sched_rrobin.c:74: error: =91ret.task=92 may be used= uninitialized in
>> >> > this
>> >> > function
>> >> >
>> >> > Please guide.
>> >> >
>> >> > Thanks & Regards
>> >> > Ananth
>> >> >
>> >> >
>> >> > ---------- Forwarded message ----------
>> >> > From: Ananth <cbananth@gmail.com>
>> >> > Date: Fri, Apr 24, 2009 at 7:25 PM
>> >> > Subject: Error while compiling with new RR scheduler=
>> >> > To: "xen-devel@lists.xensource.com" <xen-devel@list= s.xensource.com>
>> >> >
>> >> >
>> >> > Hi,
>> >> > Please find attached the source code of Round Robin = scheduler which I
>> >> > am
>> >> > trying to add to Xen 3.3.1.
>> >> > I am facing the following error messages while compi= ling the same.
>> >> >
>> >> > sched_rrobin.c:31: error: two or more data types in = declaration
>> >> > specifiers
>> >> >
>> >> > sched_rrobin.c: In function =91rrobin_vcpu_init=92:<= br> >> >> >
>> >> > sched_rrobin.c:34: error: incompatible types in retu= rn
>> >> >
>> >> > sched_rrobin.c:51: error: incompatible types in retu= rn
>> >> >
>> >> > sched_rrobin.c:94: error: initialization from incomp= atible pointer
>> >> > type
>> >> >
>> >> > I believe the error in line 94 is causing the rest o= f the error
>> >> > messages. I have checked with the structure definiti= on in sched-if.h
>> >> > as well
>> >> > as the implementation of the same in other scheduler= s such as SEDF
>> >> > and
>> >> > Credit.
>> >> >
>> >> > Request you to kindly provide your feedback regardin= g the same.
>> >> >
>> >> > Thanks & Regards
>> >> > Ananth
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Xen-devel mailing list
>> >> > Xen-devel@lists.xensource.com
>> >> > http://lists.xensource.com/xen-devel
>> >> >
>> >> >
>> >
>> >
>> >
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen= -devel@lists.xensource.com
> htt= p://lists.xensource.com/xen-devel
>
>

--001636e0b4f1e202930468ccd1df-- --===============1592332585== 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 --===============1592332585==--