Credit Scheduler!
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Yes, I have tried running that command 3 times and it has cropped up everytime!
And I have no idea what changesets are. I am pretty much a newbie to xen and after a long struggle did I manage to get xen-unstable working. I needed the credit scheduler for a part of my project. I had downloaded the tarball of xen-unstable yesterday and compiled it and on running the 'xm sched-credit -d vm1 -w 10' I got the error!
As for the sequence of commands.
- On one instance I ran 'xm sched-credit -d vm1' and that worked fine. It showed me the cap and weight of that domain. After that ''xm sched-credit -d vm1 -w 10' gave an error.
- On another instance I directly ran 'xm sched-credit -d vm1 -w 10' and got the same error
Please lemme kno if I need to update my unstable version and how to do it.
Regards,
Hardeep Singh
Quoted 83 lines · Emmanuel Ackaouy
That's not a known issue. I'll take a look.
Is this easily reproduceable?
What changeset are you building?
What exact sequence of "xm sched-credit" commands are you running to reproduce this?Quoted 3 lines · Hardeep Singh
Hi,
Thanks a lot with regards to my previous postings. I did a line to
line
Quoted 1 line
comparison of the .config of the xen3.0 and xen-unstable and found
the
Quoted 3 lines
appropriate disk driver required and managed to boot xen-unstable!
However, I need to run the credit scheduler. I am running
xen-unstable on
Quoted 2 lines
ubuntu distribution on a 64bit architecture. Now when I issue xen the following command I get an error as shown below. Can anyone provide
any
Quoted 7 lines
pointers on how to fix this or whether there are any patches. root@pippin:/home/hardeep# xm sched-credit -d vm1 -w 10 (XEN) BUG at sched_credit.c:757 (XEN) ----[ Xen-3.0-unstable Not tainted ]---- (XEN) CPU: 0Quoted 8 lines
(XEN) EIP: e008:[<ff10fc00>] csched_tick+0x420/0x5a0 (XEN) EFLAGS: 00010096 CONTEXT: hypervisor (XEN) eax: 00000000 ebx: 00000000 ecx: 0000000a edx: 00000000 (XEN) esi: ff192080 edi: ff192e08 ebp: ff1646e1 esp: ff19df04 (XEN) cr0: 8005003b cr3: 3e919000 (XEN) ds: e010 es: e010 fs: 0000 gs: 0000 ss: e010 cs: e008 (XEN) Xen stack trace from esp=ff19df04: (XEN) ff16419f ff1646e1 000002f5 ff12517b 00000000 ffffffff00000246
Quoted 2 lines
ff192e00 (XEN) 0000001e 0000000a 00000000 00000000 00000000 ff1a5144
0000000aQuoted 2 lines
00000000 (XEN) ff192080 ff19dfb4 00000075 ff111ef2 00000000 0000000500000002
Quoted 2 lines
ff1a6200 (XEN) ff1a6200 ffbfed80 41438ac2 ff1140f6 00000000 cd123ee800000001
Quoted 2 lines
ff125317 (XEN) ff17e080 00000000 ff1a7780 00000000 00007ff0 cee6f200
c058b030Quoted 2 lines
ff112f12 (XEN) 00007ff0 cee6f200 ff192080 ff1535d6 cd123edc 0000000100000000
Quoted 2 lines
00007ff0 (XEN) cee6f200 c058b030 00000000 000e0004 c0101347 0000006100000246
Quoted 2 lines
cd123ed8 (XEN) 00000069 0000007b 0000007b 00000000 00000000 00000000
ff192080Quoted 11 lines
(XEN) Xen call trace: (XEN) [<ff10fc00>] csched_tick+0x420/0x5a0 (XEN) [<ff12517b>] process_deferred_ops+0x9b/0x160 (XEN) [<ff111ef2>] t_timer_fn+0x72/0xc0 (XEN) [<ff1140f6>] timer_softirq_action+0xc6/0x120 (XEN) [<ff125317>] do_update_va_mapping+0xd7/0x390 (XEN) [<ff112f12>] do_softirq+0x32/0x50 (XEN) [<ff1535d6>] process_softirqs+0x6/0x10 (XEN) (XEN) ************************************ (XEN) CPU0 FATAL TRAP 6 (invalid opcode), ERROR_CODE 0000, ININTERRUPT
Quoted 11 lines
CONTEXT.
(XEN) System shutting down -- need manual reset. (XEN) ************************************Regards,
Hardeep Singh_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
Signature · 1 line
hardeep
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Emmanuel,
I modified my sched_credit.c manually and it looks like this right now..
<snip>
if ( cmd->u.credit.weight != 0 )
{
csched_priv.weight -= sdom->weight;
if ( !list_empty(&sdom->active_sdom_elem) )
{
csched_priv.weight -= sdom->weight;
csched_priv.weight += cmd->u.credit.weight;
}
sdom->weight = cmd->u.credit.weight;
csched_priv.weight += sdom->weight;
}
if ( cmd->u.credit.cap != (uint16_t)~0U )
sdom->cap = cmd->u.credit.cap;</snip>
I futher did a make clean; make; make install and tried booting into the unstable version again. I then tried setting the weight of one of the domains to 512 and it worked perfectly. The CPU distribution was also as expected!
However I next tried setting the weight to 20 and got the error shown below! I booted again in xen and tried setting the weight to 256 and it worked however when I set it to 255, xen again crashed!
(XEN) BUG at sched_credit.c:764
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 0
(XEN) EIP: e008:[<ff10fc30>] csched_tick+0x420/0x5a0
(XEN) EFLAGS: 00010096 CONTEXT: hypervisor
(XEN) eax: 00000000 ebx: 00000000 ecx: 0000000a edx: 00000000 (XEN) esi: ff1d7080 edi: ff192e08 ebp: ff164721 esp: ff19def8 (XEN) cr0: 8005003b cr3: 0fcf8000
(XEN) ds: e010 es: e010 fs: 0000 gs: 0000 ss: e010 cs: e008
(XEN) Xen stack trace from esp=ff19def8:
(XEN) ff1641df ff164721 000002fc 00000292 ff16e500 00000020 00000246
ff192e00(XEN) 0000001e 000000ff 00000000 00000000 ff16e500 ff1a5144000000ff 00000000(XEN) ff1d7080 ff19dfb4 0000002d ff111f22 00000000
00000003 00000001 ff1a6200(XEN) ff1a6200 ffbfed80 33a125ef ff114126
00000000 ff1d7080 0000002d ff11e306(XEN) ff19df7c 00000000 ff1a7780
00000000 00000000 ff1d7080 0000002d ff112f42(XEN) 00f90000 ff11a73eff19dfb4 ff11a752 00000001 000002f0 ff19dfb4 00000001(XEN) 00000000
00000000 00000001 c039e000 00000000 00000000 000d0000 c01013a7(XEN) 00000061 00000246 c039ffa4 00000069 0000007b 0000007b 00000000
00000000(XEN) 00000000 ff1d7080
(XEN) Xen call trace:
(XEN) [<ff10fc30>] csched_tick+0x420/0x5a0 (XEN) [<ff111f22>] t_timer_fn+0x72/0xc0 (XEN) [<ff114126>] timer_softirq_action+0xc6/0x120 (XEN) [<ff11e306>] apic_timer_interrupt+0x46/0x50 (XEN) [<ff112f42>] do_softirq+0x32/0x50 (XEN) [<ff11a73e>] idle_loop+0x4e/0x80 (XEN) [<ff11a752>] idle_loop+0x62/0x80
(XEN)
(XEN) ************************************
(XEN) CPU0 FATAL TRAP 6 (invalid opcode), ERROR_CODE 0000, IN INTERRUPT CONTEXT.(XEN) System shutting down -- need manual reset. (XEN) ************************************
Can you please have a look into it! I guess xen crashes only when weights less than 256 are set to a particular domain!
Thanks & Regards,
Hardeep Singh
Quoted 31 lines · Emmanuel Ackaouy
Quoted 3 lines · Hardeep Singh
root@pippin:/home/hardeep# xm sched-credit -d vm1 -w 10(XEN) BUG at sched_credit.c:757Ok I found the problem and submitted a fix to the staging tree. It should trickle out to the public tree in a couple hours when it's gone through the regression tests.
In the meantime, here's a patch if you don't want to wait.
diff -r
3dfc2583a4f1xen/common/sched_credit.cxen/common/sched_credit.c Fri Jun 30 16:56:17 2006 +0100 renamed from xen/common/sched_credit.c Thu Jun 29 16:59:47 2006 +0100 +5
-2@@ -622,9 +622,12 @@ csched_dom_cntl( if ( cmd->u.credit.weight != 0 ) { - csched_priv.weight -= sdom->weight; + if ( !list_empty(&sdom->active_sdom_elem) ) + { + csched_priv.weight -= sdom->weight; + csched_priv.weight += cmd->u.credit.weight; + } sdom->weight = cmd->u.credit.weight; - csched_priv.weight += sdom->weight; } if ( cmd->u.credit.cap != (uint16_t)~0U )
Signature · 1 line
hardeep
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 4 lines · Hardeep Singh
Can you please have a look into it! I guess xen crashes only when weights less than 256 are set to a particular domain!
I am using the credit scheduler on a production box and i am able to set weights less than 256 for any domU.
The box has centos 4.3 as dom0 and domU's and is running the 10470 changeset.
Signature · 3 lines
regards, Anand Gupta
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
Hmm... looks like i spoke too soon. I tried to test it again just in case for a domU to assign it 128 weight, the server crashed instantly :(
Since this is a remote server i didn't see what actually happened when i tried to change the weight. After the server reboots, i will try to update to the latest changeset and see if it works properly.
Quoted 7 lines · Anand Gupta
Quoted 4 lines · Hardeep Singh
Can you please have a look into it! I guess xen crashes only when weights less than 256 are set to a particular domain!
Signature · 3 lines
regards, Anand Gupta
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Upgraded to the latest unstable changeset and now weights below 128 work :)
Quoted 5 lines · Hardeep Singh
Quoted 5 lines
Quoted 4 lines
Can you please have a look into it! I guess xen crashes only when weights less than 256 are set to a particular domain!
Signature · 3 lines
regards, Anand Gupta
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
To clarify:
The bug was fixed Friday and it had nothing to do with the actual weight being set. The crash happened when setting any weight on an idle domain.
This is the changeset that fixes the problem:
changeset: 10570:64f9f308e109 user: [email protected] date: Fri Jun 30 17:12:05 2006 +0100 summary: Don't modify global active weight when changing weight of inactive domain.
Quoted 22 lines · Anand Gupta
Upgraded to the latest unstable changeset and now weights below 128 work :)
On 7/1/06, Hardeep Singh <[1][email protected]> wrote:
Can you please have a look into it! I guess xen crashes only when weights less than 256 are set to a particular domain!
-- regards, Anand GuptaReferences
Visible links
1. mailto:[email protected]_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
Hey,
Thanks a lot. Everything is perfect now! Sorry cudn't reply earlier, was out vacationing over the long weekend :D
Thanks Emmanuel!
Regards,
Hardeep
Quoted 43 lines · Emmanuel Ackaouy
To clarify:
The bug was fixed Friday and it had nothing to do with the actual weight being set. The crash happened when setting any weight on an idle domain.
This is the changeset that fixes the problem:
changeset: 10570:64f9f308e109 user: [email protected] date: Fri Jun 30 17:12:05 2006 +0100 summary: Don't modify global active weight when changing weight ofinactive domain.
Quoted 1 line · Anand Gupta
Upgraded to the latest unstable changeset and now weights below 128
work
Quoted 5 lines
:) On 7/1/06, Hardeep Singh <[1][email protected]> wrote: Can you please have a look into it! I guess xen crashes onlywhen
Quoted 16 lines
weights less than 256 are set to a particular domain!
-- regards, Anand GuptaReferences
Visible links
1. mailto:[email protected]_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
Signature · 1 line
hardeep
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel