All of lore.kernel.org
 help / color / mirror / Atom feed
* crash due to frequent access to csched_dom
@ 2011-07-13 16:54 David Xu
  2011-07-14  9:52 ` George Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: David Xu @ 2011-07-13 16:54 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap


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

Hi,

I am changing the credit1 scheduler. But I encountered a problem that the
system will crash if I use some fileds  of struct csched_dom (e.t.
sdom->weight, sdom->credit ) frequently in the csched_vcpu_acct() or
csched_runq_sort(). It seems strange. Can anyone give me some suggestion or
share your experience? Thanks.

Regards,
Cong

[-- Attachment #1.2: Type: text/html, Size: 373 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] 4+ messages in thread

* Re: crash due to frequent access to csched_dom
  2011-07-13 16:54 crash due to frequent access to csched_dom David Xu
@ 2011-07-14  9:52 ` George Dunlap
  2011-07-14 18:42   ` David Xu
  0 siblings, 1 reply; 4+ messages in thread
From: George Dunlap @ 2011-07-14  9:52 UTC (permalink / raw)
  To: David Xu; +Cc: xen-devel, George Dunlap

On Wed, Jul 13, 2011 at 5:54 PM, David Xu <davidxu06@gmail.com> wrote:
> Hi,
>
> I am changing the credit1 scheduler. But I encountered a problem that the
> system will crash if I use some fileds  of struct csched_dom (e.t.
> sdom->weight, sdom->credit ) frequently in the csched_vcpu_acct() or
> csched_runq_sort(). It seems strange. Can anyone give me some suggestion or
> share your experience? Thanks.

Did you get any output on the serial console?

If you don't have a serial console set up, that's the first thing to
do.  It's immensely helpful when doing Xen debugging, especially
scheduler stuff.

You can learn more about setting up a Xen serial console here:

http://wiki.xensource.com/xenwiki/XenSerialConsole

 -George

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

* Re: crash due to frequent access to csched_dom
  2011-07-14  9:52 ` George Dunlap
@ 2011-07-14 18:42   ` David Xu
  2011-07-15 17:14     ` George Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: David Xu @ 2011-07-14 18:42 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap


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

Sorry, I do not have the serial port device now. It seems I can not access
to csched_dom struct frequently during scheduling tick. For example, in each
schedule tick, I will adjust the runqueue sequence according to the latency
(another parameter added by myself) and remained credits of each domainU.
This part code is added to the csched_vcpu_acct() or csched_runq_sort(). I
also try accessing to sdom->weight, it also does not work. OK, I will try to
set up a serial console firstly. Thanks very much.

Regards,
Cong

2011/7/14 George Dunlap <George.Dunlap@eu.citrix.com>

> On Wed, Jul 13, 2011 at 5:54 PM, David Xu <davidxu06@gmail.com> wrote:
> > Hi,
> >
> > I am changing the credit1 scheduler. But I encountered a problem that the
> > system will crash if I use some fileds  of struct csched_dom (e.t.
> > sdom->weight, sdom->credit ) frequently in the csched_vcpu_acct() or
> > csched_runq_sort(). It seems strange. Can anyone give me some suggestion
> or
> > share your experience? Thanks.
>
> Did you get any output on the serial console?
>
> If you don't have a serial console set up, that's the first thing to
> do.  It's immensely helpful when doing Xen debugging, especially
> scheduler stuff.
>
> You can learn more about setting up a Xen serial console here:
>
> http://wiki.xensource.com/xenwiki/XenSerialConsole
>
>  -George
>

[-- Attachment #1.2: Type: text/html, Size: 1929 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] 4+ messages in thread

* Re: crash due to frequent access to csched_dom
  2011-07-14 18:42   ` David Xu
@ 2011-07-15 17:14     ` George Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: George Dunlap @ 2011-07-15 17:14 UTC (permalink / raw)
  To: David Xu; +Cc: xen-devel, George Dunlap

On Thu, Jul 14, 2011 at 7:42 PM, David Xu <davidxu06@gmail.com> wrote:
> Sorry, I do not have the serial port device now. It seems I can not access
> to csched_dom struct frequently during scheduling tick. For example, in each
> schedule tick, I will adjust the runqueue sequence according to the latency
> (another parameter added by myself) and remained credits of each domainU.
> This part code is added to the csched_vcpu_acct() or csched_runq_sort(). I
> also try accessing to sdom->weight, it also does not work. OK, I will try to
> set up a serial console firstly. Thanks very much.

What's probably happening is that you're breaking invariants, and
hitting a "BUG_ON" or "ASSERT" somewhere else in the code.  While
you're getting your serial card set up, you could look at those
statements and see if your changes might be triggering any of them.

 -George

>
> Regards,
> Cong
>
> 2011/7/14 George Dunlap <George.Dunlap@eu.citrix.com>
>>
>> On Wed, Jul 13, 2011 at 5:54 PM, David Xu <davidxu06@gmail.com> wrote:
>> > Hi,
>> >
>> > I am changing the credit1 scheduler. But I encountered a problem that
>> > the
>> > system will crash if I use some fileds  of struct csched_dom (e.t.
>> > sdom->weight, sdom->credit ) frequently in the csched_vcpu_acct() or
>> > csched_runq_sort(). It seems strange. Can anyone give me some suggestion
>> > or
>> > share your experience? Thanks.
>>
>> Did you get any output on the serial console?
>>
>> If you don't have a serial console set up, that's the first thing to
>> do.  It's immensely helpful when doing Xen debugging, especially
>> scheduler stuff.
>>
>> You can learn more about setting up a Xen serial console here:
>>
>> http://wiki.xensource.com/xenwiki/XenSerialConsole
>>
>>  -George
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

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

end of thread, other threads:[~2011-07-15 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 16:54 crash due to frequent access to csched_dom David Xu
2011-07-14  9:52 ` George Dunlap
2011-07-14 18:42   ` David Xu
2011-07-15 17:14     ` George Dunlap

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.