From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: credit2 BUG_ON triggered Date: Wed, 20 Apr 2011 10:36:09 +0100 Message-ID: References: <4DADF781.7070004@nuclearfallout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4DADF781.7070004@nuclearfallout.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Weekes Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org Can you give the changset number / hash of your tip? In the current unstable tip, line 1606 is in the middle of a printk... -George On Tue, Apr 19, 2011 at 9:58 PM, John Weekes wrote: > I am testing credit2 on a dual Xeon L5640 machine. I have an HVM Debian > Squeeze domU that reliably leads to a panic when it's run with the credit= 2 > scheduler, but not with credit. > > The reproduction steps on this machine are simple: > > 1. Fully boot up the machine. > 2. Enter commands that cause dom0 to use 100% CPU. For instance: > > screen -AmdS burn1 perl -e 'while(1) {}' > screen -AmdS burn2 perl -e 'while(1) {}' > screen -AmdS burn3 perl -e 'while(1) {}' > screen -AmdS burn4 perl -e 'while(1) {}' > > 3. Start up the prepared Squeeze domU (which is a stock install), with "x= m" > ("xl" doesn't work with debug=3Dy because of a spurious assert, but has t= he > same problem with debug=3Dn): > > cd /servers/customers > xm create testvds4.cfg > > The serial console then shows this: > > (XEN) irq.c:324: Dom1 callback via changed to Direct Vector 0xe9 > (XEN) Xen BUG at sched_credit2.c:1606 > (XEN) ----[ Xen-4.1.1-rc1-pre =A0x86_64 =A0debug=3Dy =A0Not tainted ]---- > (XEN) CPU: =A0 =A012 > (XEN) RIP: =A0 =A0e008:[] csched_schedule+0xdb/0xab1 > (XEN) RFLAGS: 0000000000010082 =A0 CONTEXT: hypervisor > (XEN) rax: ffff830c2246c000 =A0 rbx: ffff830c2246bd10 =A0 rcx: 0000000000= 000000 > (XEN) rdx: 0000000000000001 =A0 rsi: ffff82c480241680 =A0 rdi: ffff8300bf= 74c000 > (XEN) rbp: ffff83043b28fe38 =A0 rsp: ffff83043b28fd58 =A0 r8: =A000000000= 00000002 > (XEN) r9: =A0000000000000003e =A0 r10: 0000000000000018 =A0 r11: 00000000= 000186a0 > (XEN) r12: 0000000000000000 =A0 r13: ffff83043ffe02d0 =A0 r14: 0000000000= 00000c > (XEN) r15: ffff83043ffe0010 =A0 cr0: 000000008005003b =A0 cr4: 0000000000= 0026f0 > (XEN) cr3: 0000000c22436000 =A0 cr2: 0000000000000000 > (XEN) ds: 0000 =A0 es: 0000 =A0 fs: 0000 =A0 gs: 0000 =A0 ss: 0000 =A0 cs= : e008 > (XEN) Xen stack trace from rsp=3Dffff83043b28fd58: > (XEN) =A0 =A0ffff82c4801bc822 ffff83043b298040 0000000000000282 ffff83043= b28fd88 > (XEN) =A0 =A0ffff82c48012248f ffff8300bf74c000 ffff83043b28fdb8 ffff82c48= 01b59bd > (XEN) =A0 =A000000014c77c5137 ffff83043b28fe68 ffff82c480241680 000000000= 0000001 > (XEN) =A0 =A000007cfbc4d70217 ffff82c48014b2c0 ffff83043b298060 ffff83043= b28fde8 > (XEN) =A0 =A0ffff82c480124345 ffff83043b298060 ffff83043b28fe38 000000000= 0000082 > (XEN) =A0 =A000000000000186a0 0000000000000082 000000000000000c ffff8300b= f74c000 > (XEN) =A0 =A00000000000000000 ffff82c480241680 ffff83043b298040 ffff83043= b298060 > (XEN) =A0 =A0ffff83043b28feb8 ffff82c48012061c ffff83043b28feb8 00000014c= 77c5137 > (XEN) =A0 =A00000000000000293 ffff8300bf74d868 ffff82c48012248f ffff8300b= f74c000 > (XEN) =A0 =A0ffff83043b28fe98 ffff82c4801b19d0 ffff8300bf74c000 ffff82c48= 02a8e80 > (XEN) =A0 =A000000000ffffffff ffff82c4802a8880 ffff83043b28ff18 fffffffff= fffffff > (XEN) =A0 =A0ffff83043b28fef8 ffff82c480121caf 0440080000000001 ffff8300b= f74c000 > (XEN) =A0 =A00000000000000046 ffff8800018501a0 ffffffff81311470 000000000= 0000092 > (XEN) =A0 =A0ffff83043b28ff08 ffff82c480121d0c ffff88000184c600 ffff82c48= 01bb3f1 > (XEN) =A0 =A00000000000000092 ffffffff81311470 ffff8800018501a0 000000000= 0000046 > (XEN) =A0 =A0ffff88000184c600 0000000000000001 00000000000186a0 000000000= 0000008 > (XEN) =A0 =A00000000000000200 0000000000000008 0000000000000000 000000000= 0000002 > (XEN) =A0 =A00000000000000000 0000000000000002 0000000000000007 0000beef0= 000beef > (XEN) =A0 =A0ffffffff81009308 0000beef0000beef 0000000000000046 ffff88003= 1e63e58 > (XEN) =A0 =A0000000000000beef 000000000000beef 000000000000beef 000000000= 000beef > (XEN) Xen call trace: > (XEN) =A0 =A0[] csched_schedule+0xdb/0xab1 > (XEN) =A0 =A0[] schedule+0x122/0x60c > (XEN) =A0 =A0[] __do_softirq+0x8d/0x9e > (XEN) =A0 =A0[] do_softirq+0x4c/0x4e > (XEN) > (XEN) > (XEN) **************************************** > (XEN) Panic on CPU 12: > (XEN) Xen BUG at sched_credit2.c:1606 > (XEN) **************************************** > (XEN) > (XEN) Reboot in five seconds... > > Where do we go from here? > > -John > > For reference, xl info output: > > dallas-dodec226-5 ~ # xl info > host =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 : dallas-dodec226-5 > release =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 2.6.32.37-gbe57219 > version =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: #1 SMP Tue Apr 19 00:14:46 CDT 2= 011 > machine =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: x86_64 > nr_cpus =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 24 > nr_nodes =A0 =A0 =A0 =A0 =A0 =A0 =A0 : 2 > cores_per_socket =A0 =A0 =A0 : 6 > threads_per_core =A0 =A0 =A0 : 2 > cpu_mhz =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 2266 > hw_caps =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: > bfebfbff:2c100800:00000000:00003f40:009ee3fd:00000000:00000001:00000000 > virt_caps =A0 =A0 =A0 =A0 =A0 =A0 =A0: hvm hvm_directio > total_memory =A0 =A0 =A0 =A0 =A0 : 49143 > free_memory =A0 =A0 =A0 =A0 =A0 =A0: 47106 > free_cpus =A0 =A0 =A0 =A0 =A0 =A0 =A0: 0 > xen_major =A0 =A0 =A0 =A0 =A0 =A0 =A0: 4 > xen_minor =A0 =A0 =A0 =A0 =A0 =A0 =A0: 1 > xen_extra =A0 =A0 =A0 =A0 =A0 =A0 =A0: .1-rc1-pre > xen_caps =A0 =A0 =A0 =A0 =A0 =A0 =A0 : xen-3.0-x86_64 xen-3.0-x86_32p hvm= -3.0-x86_32 > hvm-3.0-x86_32p hvm-3.0-x86_64 > xen_scheduler =A0 =A0 =A0 =A0 =A0: credit2 > xen_pagesize =A0 =A0 =A0 =A0 =A0 : 4096 > platform_params =A0 =A0 =A0 =A0: virt_start=3D0xffff800000000000 > xen_changeset =A0 =A0 =A0 =A0 =A0: Thu Apr 07 15:26:58 2011 +0100 23025:d= bf2ddf652dc > xen_commandline =A0 =A0 =A0 =A0: dom0_mem=3D1500M dom0_max_vcpus=3D4 > iommu=3Ddom0-passthrough sched=3Dcredit2 loglvl=3Dall guest_loglvl=3Dall > com2=3D115200,8n1 console=3Dcom2 > cc_compiler =A0 =A0 =A0 =A0 =A0 =A0: gcc version 4.4.5 (Gentoo 4.4.5 p1.2= , pie-0.4.5) > cc_compile_by =A0 =A0 =A0 =A0 =A0: root > cc_compile_domain =A0 =A0 =A0: nuclearfallout.net > cc_compile_date =A0 =A0 =A0 =A0: Tue Apr 19 14:26:02 CDT 2011 > xend_config_format =A0 =A0 : 4 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >