Guest OS boots up slowly
Hi,
I tested the latest xen-unstable (changeset: 20128) and the latest linux-2.6.18-xen (changeset: 931). A guest OS is booted up slower than before. And the following messages are shown by the guest OS.
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
***************************************************************
***************************************************************
** WARNING: Currently emulating unsupported memory accesses ** ** in /lib/tls glibc libraries. The emulation is ** ** slow. To ensure full performance you should ** ** install a 'xen-friendly' (nosegneg) version of ** ** the library, or disable tls support by executing ** ** the following as root: ** ** mv /lib/tls /lib/tls.disabled **
** Offending process: modprobe (pid=761) **
***************************************************************
***************************************************************
Pausing... 5<3>BUG: soft lockup detected on CPU#0!
[<c0151205>] softlockup_tick+0xa5/0xd0 [<c010978a>] timer_interrupt+0x2fa/0x6c0 [<c011d8c1>] __activate_task+0x21/0x40 [<c012fed0>] lock_timer_base+0x20/0x50 [<c0151563>] handle_IRQ_event+0x33/0xa0 [<c0151678>] __do_IRQ+0xa8/0x120 [<c01076e1>] do_IRQ+0x31/0x80 [<c02af6b0>] neigh_periodic_timer+0x0/0x140 [<c024ced5>] evtchn_do_upcall+0xe5/0x1f0 [<c0115fb0>] do_fixup_4gb_segment+0x0/0x170 [<c0105ba3>] hypervisor_callback+0x33/0x3b [<c0115fb0>] do_fixup_4gb_segment+0x0/0x170 [<c01ed68b>] delay_tsc+0xb/0x20 [<c01ed6d6>] __delay+0x6/0x10 [<c01160f0>] do_fixup_4gb_segment+0x140/0x170 [<c0169597>] do_munmap+0x197/0x200 [<c01ee0a4>] copy_to_user+0x34/0x70 [<c0105b6b>] error_code+0x2b/0x30
Continuing...
FYI, when I reverted changeset 20122 of xen-unstable, the guest OS is booted up as before.
Best regards,
Kan
Hi Maskai,
Thanks for the report. It's a good idea to Cc the patch author when making bug reports. In this case it's George Dunlap who I've cc'ed in this reply.
-- Keir
Quoted 58 lines · Masaki Kanno
Hi,
I tested the latest xen-unstable (changeset: 20128) and the latest linux-2.6.18-xen (changeset: 931). A guest OS is booted up slower than before. And the following messages are shown by the guest OS.
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys***************************************************************
***************************************************************** WARNING: Currently emulating unsupported memory accesses ** ** in /lib/tls glibc libraries. The emulation is ** ** slow. To ensure full performance you should ** ** install a 'xen-friendly' (nosegneg) version of ** ** the library, or disable tls support by executing ** ** the following as root: ** ** mv /lib/tls /lib/tls.disabled **** Offending process: modprobe (pid=761) **
***************************************************************
***************************************************************Pausing... 5<3>BUG: soft lockup detected on CPU#0!
[<c0151205>] softlockup_tick+0xa5/0xd0 [<c010978a>] timer_interrupt+0x2fa/0x6c0 [<c011d8c1>] __activate_task+0x21/0x40 [<c012fed0>] lock_timer_base+0x20/0x50 [<c0151563>] handle_IRQ_event+0x33/0xa0 [<c0151678>] __do_IRQ+0xa8/0x120 [<c01076e1>] do_IRQ+0x31/0x80 [<c02af6b0>] neigh_periodic_timer+0x0/0x140 [<c024ced5>] evtchn_do_upcall+0xe5/0x1f0 [<c0115fb0>] do_fixup_4gb_segment+0x0/0x170 [<c0105ba3>] hypervisor_callback+0x33/0x3b [<c0115fb0>] do_fixup_4gb_segment+0x0/0x170 [<c01ed68b>] delay_tsc+0xb/0x20 [<c01ed6d6>] __delay+0x6/0x10 [<c01160f0>] do_fixup_4gb_segment+0x140/0x170 [<c0169597>] do_munmap+0x197/0x200 [<c01ee0a4>] copy_to_user+0x34/0x70 [<c0105b6b>] error_code+0x2b/0x30Continuing...
FYI, when I reverted changeset 20122 of xen-unstable, the guest OS is booted up as before.
Best regards,
Kan_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hmm, it appears my patch still debits credits for VMs that aren't earning credits anymore; such VMs can earn an unlimited amount of negative credit before becoming active again.
Try the attached patches; if it doesn't fix the problem, please take a short trace during boot using the following command and send it to me:
# xentrace -D -e 0x2f000 -S 128 -s 1000 /tmp/sched-boot.trace
Thanks,
-George
Quoted 70 lines · Keir Fraser
Hi Maskai,
Thanks for the report. It's a good idea to Cc the patch author when making bug reports. In this case it's George Dunlap who I've cc'ed in this reply.
-- Keir
Quoted 54 lines · Masaki Kanno
Hi,
I tested the latest xen-unstable (changeset: 20128) and the latest linux-2.6.18-xen (changeset: 931). A guest OS is booted up slower than before. And the following messages are shown by the guest OS.
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys***************************************************************
***************************************************************
** WARNING: Currently emulating unsupported memory accesses ** ** in/lib/tlsglibc libraries. The emulation is ** ** slow. To ensure full performance you should ** ** install a 'xen-friendly' (nosegneg) version of ** ** the library, or disable tls support by executing ** ** the following as root: ** ** mv/lib/tls/lib/tls.disabled** ** Offending process: modprobe (pid=761) **
***************************************************************
***************************************************************Pausing... 5<3>BUG: soft lockup detected on CPU#0!
[<c0151205>] softlockup_tick+0xa5/0xd0 [<c010978a>] timer_interrupt+0x2fa/0x6c0 [<c011d8c1>] __activate_task+0x21/0x40 [<c012fed0>] lock_timer_base+0x20/0x50 [<c0151563>] handle_IRQ_event+0x33/0xa0 [<c0151678>] __do_IRQ+0xa8/0x120 [<c01076e1>] do_IRQ+0x31/0x80 [<c02af6b0>] neigh_periodic_timer+0x0/0x140 [<c024ced5>] evtchn_do_upcall+0xe5/0x1f0 [<c0115fb0>] do_fixup_4gb_segment+0x0/0x170 [<c0105ba3>] hypervisor_callback+0x33/0x3b [<c0115fb0>] do_fixup_4gb_segment+0x0/0x170 [<c01ed68b>] delay_tsc+0xb/0x20 [<c01ed6d6>] __delay+0x6/0x10 [<c01160f0>] do_fixup_4gb_segment+0x140/0x170 [<c0169597>] do_munmap+0x197/0x200 [<c01ee0a4>] copy_to_user+0x34/0x70 [<c0105b6b>] error_code+0x2b/0x30Continuing...
FYI, when I reverted changeset 20122 of xen-unstable, the guest OS is booted up as before.
Best regards,
KanQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
xen/common/sched_credit.c +2 -1
@@ -218,7 +218,8 @@/* Assert svc is current */ ASSERT (svc==CSCHED_VCPU (per_cpu (schedule_data, svc->vcpu->processor).curr)); -if (is_idle_vcpu (svc->vcpu) ) +/* Don't debit idle vcpus or inactive vcpus */ +if (is_idle_vcpu (svc->vcpu) ||list_empty (&svc->active_vcpu_elem) )return ; delta = (now - svc->start_time);
xen/common/sched_credit.c +16 -1
@@ -21,6 +21,7 @@#include <xen/softirq.h> #include <asm/atomic.h> #include <xen/errno.h> +#include <xen/trace.h> /* * CSCHED_STATS
@@ -226,7 +227,21 @@if ( delta >0 ) {atomic_sub (CSCHED_STIME_TO_CREDIT (delta)+1 , &svc->credit); svc->start_time = now; - } + } + +if ( tb_init_done ) + { +struct { +int32_t credit; +int d:16 ,v:16 ; + } t; + + t.credit =atomic_read (&svc->credit); + t.d = svc->vcpu->domain->domain_id; + t.v = svc->vcpu->vcpu_id; + +__trace_var (TRC_SCHED_CREDIT_BURN ,0 ,sizeof (t), (unsigned char *)&t); + } } static inline void
xen/include/public/trace.h +5 -0
@@ -53,8 +53,11 @@#define TRC_HVM_HANDLER 0x00082000/* various HVM handlers */ #define TRC_SCHED_MIN 0x00021000/* Just runstate changes */ +#define TRC_SCHED_SCHEDULER 0x00022000/* Scheduler-specific */ #define TRC_SCHED_VERBOSE 0x00028000/* More inclusive scheduling */ +#define TRC_SCHED_CREDIT (TRC_SCHED_SCHEDULER + 0x100)/* Credit scheduler tracing */ +/* Trace events per class */ #define TRC_LOST_RECORDS (TRC_GEN + 1)#define TRC_TRACE_WRAP_BUFFER (TRC_GEN + 2)
@@ -79,6 +82,8 @@#define TRC_SCHED_SWITCH_INFPREV (TRC_SCHED_VERBOSE + 14)#define TRC_SCHED_SWITCH_INFNEXT (TRC_SCHED_VERBOSE + 15) +#define TRC_SCHED_CREDIT_BURN (TRC_SCHED_CREDIT + 1) +#define TRC_MEM_PAGE_GRANT_MAP (TRC_MEM + 1)#define TRC_MEM_PAGE_GRANT_UNMAP (TRC_MEM + 2)#define TRC_MEM_PAGE_GRANT_TRANSFER (TRC_MEM + 3)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi George,
I will try them on today.
Kan
Quoted 95 lines · George Dunlap
Hmm, it appears my patch still debits credits for VMs that aren't earning credits anymore; such VMs can earn an unlimited amount of negative credit before becoming active again.
Try the attached patches; if it doesn't fix the problem, please take a short trace during boot using the following command and send it to me:
# xentrace -D -e 0x2f000 -S 128 -s 1000 /tmp/sched-boot.traceThanks,
-GeorgeQuoted 70 lines · Keir Fraser
Hi Maskai,
Thanks for the report. It's a good idea to Cc the patch author when making bug reports. In this case it's George Dunlap who I've cc'ed in this reply.
�-- Keir
Quoted 54 lines · Masaki Kanno
Hi,
I tested the latest xen-unstable (changeset: 20128) and the latest linux-2.6.18-xen (changeset: 931). �A guest OS is booted up slower than before. �And the following messages are shown by the guest OS.
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys� *************************************************************** � *************************************************************** � ** WARNING: Currently emulating unsupported memory accesses �** � ** � � � � �in
/lib/tlsglibc libraries. The emulation is � �** � ** � � � � �slow. To ensure full performance you should � � �** � ** � � � � �install a 'xen-friendly' (nosegneg) version of � ** � ** � � � � �the library, or disable tls support by executing ** � ** � � � � �the following as root: � � � � � � � � � � � � � ** � ** � � � � �mv/lib/tls/lib/tls.disabled� � � � � � � � � �** � ** Offending process: modprobe (pid=761) � � � � � � � � � � ** � *************************************************************** � ***************************************************************Pausing... 5<3>BUG: soft lockup detected on CPU#0! �[<c0151205>]
softlockup_tick+0xa5/0xd0�[<c010978a>]timer_interrupt+0x2fa/0x6c0�[<c011d8c1>]__activate_task+0x21/0x40�[<c012fed0>]lock_timer_base+0x20/0x50�[<c0151563>]handle_IRQ_event+0x33/0xa0�[<c0151678>]__do_IRQ+0xa8/0x120�[<c01076e1>]do_IRQ+0x31/0x80�[<c02af6b0>]neigh_periodic_timer+0x0/0x140�[<c024ced5>]evtchn_do_upcall+0xe5/0x1f0�[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170�[<c0105ba3>]hypervisor_callback+0x33/0x3b�[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170�[<c01ed68b>]delay_tsc+0xb/0x20�[<c01ed6d6>]__delay+0x6/0x10�[<c01160f0>]do_fixup_4gb_segment+0x140/0x170�[<c0169597>]do_munmap+0x197/0x200�[<c01ee0a4>]copy_to_user+0x34/0x70�[<c0105b6b>]error_code+0x2b/0x30Continuing...FYI, when I reverted changeset 20122 of xen-unstable, the guest OS is booted up as before.
Best regards,
�KanQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi George,
I tested xen-unstable (changeset: 20128) and linux-2.6.18-xen (changeset: 931) with the following cases. debit-accounted-only.diff doesn't fix the problem. I will send a trace data file to only you because the size of the file is big.
Case1 : With debit-accounted-only.diff, cpu_weight dom0:domU = 256:256
| vcpus | cpu_cap | boot-up |
| | | times[sec] |
+-------+---------+------------+
| 1 | 0 | 57 |
| 1 | 50 | 80 |
| 1 | 100 | 56 |
| 2 | 0 | 51 |
| 2 | 50 | 93 |
| 2 | 100 | 62 |
| 2 | 150 | 54 |
| 2 | 200 | 50 |Case2 : With debit-accounted-only.diff, cpu_weight dom0:domU = 256:512
| vcpus | cpu_cap | boot-up |
| | | times[sec] |
+-------+---------+------------+
| 1 | 0 | 57 |
| 1 | 50 | 725 | Slow!!
| 1 | 100 | 57 |
| 2 | 0 | 51 |
| 2 | 50 | 1,000 over | I gave up the measurement.
| 2 | 100 | 784 | Slow!!
| 2 | 150 | 567 | Slow!!
| 2 | 200 | 51 |Case3 : No patch, cpu_weight dom0:domU = 256:256
| vcpus | cpu_cap | boot-up |
| | | times[sec] |
+-------+---------+------------+
| 1 | 0 | 57 |
| 1 | 50 | 80 |
| 1 | 100 | 57 |
| 2 | 0 | 50 |
| 2 | 50 | 95 |
| 2 | 100 | 61 |
| 2 | 150 | 53 |
| 2 | 200 | 50 |Case4 : No patch, cpu_weight dom0:domU = 256:512
| vcpus | cpu_cap | boot-up |
| | | times[sec] |
+-------+---------+------------+
| 1 | 0 | 57 |
| 1 | 50 | 575 | Slow!!
| 1 | 100 | 57 |
| 2 | 0 | 50 |
| 2 | 50 | 594 | Slow!!
| 2 | 100 | 450 | Slow!!
| 2 | 150 | 290 | Slow!!
| 2 | 200 | 51 |Case5 : Without changeset 20122, cpu_weight dom0:domU = 256:256
| vcpus | cpu_cap | boot-up |
| | | times[sec] |
+-------+---------+------------+
| 1 | 0 | 57 |
| 1 | 50 | 80 |
| 1 | 100 | 56 |
| 2 | 0 | 50 |
| 2 | 50 | 95 |
| 2 | 100 | 61 |
| 2 | 150 | 53 |
| 2 | 200 | 50 |Case6 : Without changeset 20122, cpu_weight dom0:domU = 256:512
| vcpus | cpu_cap | boot-up |
| | | times[sec] |
+-------+---------+------------+
| 1 | 0 | 56 |
| 1 | 50 | 80 |
| 1 | 100 | 56 |
| 2 | 0 | 50 |
| 2 | 50 | 95 |
| 2 | 100 | 61 |
| 2 | 150 | 53 |
| 2 | 200 | 50 |Best regards,
Kan
Quoted 109 lines · Masaki Kanno
Hi George,
I will try them on today.
Kan
Quoted 90 lines · George Dunlap
Hmm, it appears my patch still debits credits for VMs that aren't earning credits anymore; such VMs can earn an unlimited amount of negative credit before becoming active again.
Try the attached patches; if it doesn't fix the problem, please take a short trace during boot using the following command and send it to me:
# xentrace -D -e 0x2f000 -S 128 -s 1000 /tmp/sched-boot.traceThanks,
-GeorgeQuoted 70 lines · Keir Fraser
Hi Maskai,
Thanks for the report. It's a good idea to Cc the patch author when making bug reports. In this case it's George Dunlap who I've cc'ed in this reply.
�-- Keir
Quoted 54 lines · Masaki Kanno
Hi,
I tested the latest xen-unstable (changeset: 20128) and the latest linux-2.6.18-xen (changeset: 931). �A guest OS is booted up slower than before. �And the following messages are shown by the guest OS.
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys� *************************************************************** � *************************************************************** � ** WARNING: Currently emulating unsupported memory accesses �** � ** � � � � �in
/lib/tlsglibc libraries. The emulation is � �** � ** � � � � �slow. To ensure full performance you should � � �** � ** � � � � �install a 'xen-friendly' (nosegneg) version of � ** � ** � � � � �the library, or disable tls support by executing ** � ** � � � � �the following as root: � � � � � � � � � � � � � ** � ** � � � � �mv/lib/tls/lib/tls.disabled� � � � � � � � � �** � ** Offending process: modprobe (pid=761) � � � � � � � � � � ** � *************************************************************** � ***************************************************************Pausing... 5<3>BUG: soft lockup detected on CPU#0! �[<c0151205>]
softlockup_tick+0xa5/0xd0�[<c010978a>]timer_interrupt+0x2fa/0x6c0�[<c011d8c1>]__activate_task+0x21/0x40�[<c012fed0>]lock_timer_base+0x20/0x50�[<c0151563>]handle_IRQ_event+0x33/0xa0�[<c0151678>]__do_IRQ+0xa8/0x120�[<c01076e1>]do_IRQ+0x31/0x80�[<c02af6b0>]neigh_periodic_timer+0x0/0x140�[<c024ced5>]evtchn_do_upcall+0xe5/0x1f0�[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170�[<c0105ba3>]hypervisor_callback+0x33/0x3b�[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170�[<c01ed68b>]delay_tsc+0xb/0x20�[<c01ed6d6>]__delay+0x6/0x10�[<c01160f0>]do_fixup_4gb_segment+0x140/0x170�[<c0169597>]do_munmap+0x197/0x200�[<c01ee0a4>]copy_to_user+0x34/0x70�[<c0105b6b>]error_code+0x2b/0x30Continuing...FYI, when I reverted changeset 20122 of xen-unstable, the guest OS is booted up as before.
Best regards,
�KanQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Thanks Masaki! I've taken a quick look at the trace and haven't seen anything really obvious. Unfortunately I have some urgent work to do for XenServer, so this will have to take a back burner for a week or so.
If anyone else is willing to investigate the problem, I certainly won't object. :-)
-George
2009/9/1 Masaki Kanno <[email protected]>:
Quoted 203 lines
Hi George,
I tested xen-unstable (changeset: 20128) and linux-2.6.18-xen (changeset: 931) with the following cases. debit-accounted-only.diff doesn't fix the problem. I will send a trace data file to only you because the size of the file is big.
Case1 : With debit-accounted-only.diff,
cpu_weightdom0:domU = 256:256| vcpus | cpu_cap | boot-up | | | | times[sec] | +-------+---------+------------+ | 1 | 0 | 57 | | 1 | 50 | 80 | | 1 | 100 | 56 | | 2 | 0 | 51 | | 2 | 50 | 93 | | 2 | 100 | 62 | | 2 | 150 | 54 | | 2 | 200 | 50 |Case2 : With debit-accounted-only.diff,
cpu_weightdom0:domU = 256:512| vcpus | cpu_cap | boot-up | | | | times[sec] | +-------+---------+------------+ | 1 | 0 | 57 | | 1 | 50 | 725 | Slow!! | 1 | 100 | 57 | | 2 | 0 | 51 | | 2 | 50 | 1,000 over | I gave up the measurement. | 2 | 100 | 784 | Slow!! | 2 | 150 | 567 | Slow!! | 2 | 200 | 51 |Case3 : No patch,
cpu_weightdom0:domU = 256:256| vcpus | cpu_cap | boot-up | | | | times[sec] | +-------+---------+------------+ | 1 | 0 | 57 | | 1 | 50 | 80 | | 1 | 100 | 57 | | 2 | 0 | 50 | | 2 | 50 | 95 | | 2 | 100 | 61 | | 2 | 150 | 53 | | 2 | 200 | 50 |Case4 : No patch,
cpu_weightdom0:domU = 256:512| vcpus | cpu_cap | boot-up | | | | times[sec] | +-------+---------+------------+ | 1 | 0 | 57 | | 1 | 50 | 575 | Slow!! | 1 | 100 | 57 | | 2 | 0 | 50 | | 2 | 50 | 594 | Slow!! | 2 | 100 | 450 | Slow!! | 2 | 150 | 290 | Slow!! | 2 | 200 | 51 |Case5 : Without changeset 20122,
cpu_weightdom0:domU = 256:256| vcpus | cpu_cap | boot-up | | | | times[sec] | +-------+---------+------------+ | 1 | 0 | 57 | | 1 | 50 | 80 | | 1 | 100 | 56 | | 2 | 0 | 50 | | 2 | 50 | 95 | | 2 | 100 | 61 | | 2 | 150 | 53 | | 2 | 200 | 50 |Case6 : Without changeset 20122,
cpu_weightdom0:domU = 256:512| vcpus | cpu_cap | boot-up | | | | times[sec] | +-------+---------+------------+ | 1 | 0 | 56 | | 1 | 50 | 80 | | 1 | 100 | 56 | | 2 | 0 | 50 | | 2 | 50 | 95 | | 2 | 100 | 61 | | 2 | 150 | 53 | | 2 | 200 | 50 |Best regards,
KanQuoted 105 lines · Masaki Kanno
Hi George,
I will try them on today.
Kan
Quoted 90 lines · George Dunlap
Hmm, it appears my patch still debits credits for VMs that aren't earning credits anymore; such VMs can earn an unlimited amount of negative credit before becoming active again.
Try the attached patches; if it doesn't fix the problem, please take a short trace during boot using the following command and send it to me:
# xentrace -D -e 0x2f000 -S 128 -s 1000 /tmp/sched-boot.traceThanks,
-GeorgeQuoted 70 lines · Keir Fraser
Hi Maskai,
Thanks for the report. It's a good idea to Cc the patch author when making bug reports. In this case it's George Dunlap who I've cc'ed in this reply.
�-- Keir
Quoted 54 lines · Masaki Kanno
Hi,
I tested the latest xen-unstable (changeset: 20128) and the latest linux-2.6.18-xen (changeset: 931). �A guest OS is booted up slower than before. �And the following messages are shown by the guest OS.
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys� *************************************************************** � *************************************************************** � ** WARNING: Currently emulating unsupported memory accesses �** � ** � � � � �in
/lib/tlsglibc libraries. The emulation is � �** � ** � � � � �slow. To ensure full performance you should � � �** � ** � � � � �install a 'xen-friendly' (nosegneg) version of � ** � ** � � � � �the library, or disable tls support by executing ** � ** � � � � �the following as root: � � � � � � � � � � � � � ** � ** � � � � �mv/lib/tls/lib/tls.disabled� � � � � � � � � �** � ** Offending process: modprobe (pid=761) � � � � � � � � � � ** � *************************************************************** � ***************************************************************Pausing... 5<3>BUG: soft lockup detected on CPU#0! �[<c0151205>]
softlockup_tick+0xa5/0xd0�[<c010978a>]timer_interrupt+0x2fa/0x6c0�[<c011d8c1>]__activate_task+0x21/0x40�[<c012fed0>]lock_timer_base+0x20/0x50�[<c0151563>]handle_IRQ_event+0x33/0xa0�[<c0151678>]__do_IRQ+0xa8/0x120�[<c01076e1>]do_IRQ+0x31/0x80�[<c02af6b0>]neigh_periodic_timer+0x0/0x140�[<c024ced5>]evtchn_do_upcall+0xe5/0x1f0�[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170�[<c0105ba3>]hypervisor_callback+0x33/0x3b�[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170�[<c01ed68b>]delay_tsc+0xb/0x20�[<c01ed6d6>]__delay+0x6/0x10�[<c01160f0>]do_fixup_4gb_segment+0x140/0x170�[<c0169597>]do_munmap+0x197/0x200�[<c01ee0a4>]copy_to_user+0x34/0x70�[<c0105b6b>]error_code+0x2b/0x30Continuing...FYI, when I reverted changeset 20122 of xen-unstable, the guest OS is booted up as before.
Best regards,
�KanQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi George, Keir,
I confirmed the problem was fixed by changeset 20270. Thanks, Keir!!
Best regards,
Kan
Quoted 221 lines · George Dunlap
Thanks Masaki! I've taken a quick look at the trace and haven't seen anything really obvious. Unfortunately I have some urgent work to do for XenServer, so this will have to take a back burner for a week or so.
If anyone else is willing to investigate the problem, I certainly won't object. :-)
-George
2009/9/1 Masaki Kanno <[email protected]>:
Quoted 210 lines
Hi George,
I tested xen-unstable (changeset: 20128) and linux-2.6.18-xen (changeset: 931) with the following cases. debit-accounted-only.diff doesn't fix the problem. I will send a trace data file to only you because the size of the file is big.
Case1 : With debit-accounted-only.diff,
cpu_weightdom0:domU = 256:256? ? ?| vcpus | cpu_cap | boot-up ? ?| ? ? ?| ? ? ? | ? ? ? ? | times[sec] | ? ? ?+-------+---------+------------+ ? ? ?| ? 1 ? | ? ? 0 ? | ? ? 57 ? ? | ? ? ?| ? 1 ? | ? ?50 ? | ? ? 80 ? ? | ? ? ?| ? 1 ? | ? 100 ? | ? ? 56 ? ? | ? ? ?| ? 2 ? | ? ? 0 ? | ? ? 51 ? ? | ? ? ?| ? 2 ? | ? ?50 ? | ? ? 93 ? ? | ? ? ?| ? 2 ? | ? 100 ? | ? ? 62 ? ? | ? ? ?| ? 2 ? | ? 150 ? | ? ? 54 ? ? | ? ? ?| ? 2 ? | ? 200 ? | ? ? 50 ? ? |Case2 : With debit-accounted-only.diff,
cpu_weightdom0:domU = 256:512? ? ?| vcpus | cpu_cap | boot-up ? ?| ? ? ?| ? ? ? | ? ? ? ? | times[sec] | ? ? ?+-------+---------+------------+ ? ? ?| ? 1 ? | ? ? 0 ? | ? ? 57 ? ? | ? ? ?| ? 1 ? | ? ?50 ? | ? ?725 ? ? | Slow!! ? ? ?| ? 1 ? | ? 100 ? | ? ? 57 ? ? | ? ? ?| ? 2 ? | ? ? 0 ? | ? ? 51 ? ? | ? ? ?| ? 2 ? | ? ?50 ? | 1,000 over | I gave up the measurement. ? ? ?| ? 2 ? | ? 100 ? | ? ?784 ? ? | Slow!! ? ? ?| ? 2 ? | ? 150 ? | ? ?567 ? ? | Slow!! ? ? ?| ? 2 ? | ? 200 ? | ? ? 51 ? ? |Case3 : No patch,
cpu_weightdom0:domU = 256:256? ? ?| vcpus | cpu_cap | boot-up ? ?| ? ? ?| ? ? ? | ? ? ? ? | times[sec] | ? ? ?+-------+---------+------------+ ? ? ?| ? 1 ? | ? ? 0 ? | ? ? 57 ? ? | ? ? ?| ? 1 ? | ? ?50 ? | ? ? 80 ? ? | ? ? ?| ? 1 ? | ? 100 ? | ? ? 57 ? ? | ? ? ?| ? 2 ? | ? ? 0 ? | ? ? 50 ? ? | ? ? ?| ? 2 ? | ? ?50 ? | ? ? 95 ? ? | ? ? ?| ? 2 ? | ? 100 ? | ? ? 61 ? ? | ? ? ?| ? 2 ? | ? 150 ? | ? ? 53 ? ? | ? ? ?| ? 2 ? | ? 200 ? | ? ? 50 ? ? |Case4 : No patch,
cpu_weightdom0:domU = 256:512? ? ?| vcpus | cpu_cap | boot-up ? ?| ? ? ?| ? ? ? | ? ? ? ? | times[sec] | ? ? ?+-------+---------+------------+ ? ? ?| ? 1 ? | ? ? 0 ? | ? ? 57 ? ? | ? ? ?| ? 1 ? | ? ?50 ? | ? ?575 ? ? | Slow!! ? ? ?| ? 1 ? | ? 100 ? | ? ? 57 ? ? | ? ? ?| ? 2 ? | ? ? 0 ? | ? ? 50 ? ? | ? ? ?| ? 2 ? | ? ?50 ? | ? ?594 ? ? | Slow!! ? ? ?| ? 2 ? | ? 100 ? | ? ?450 ? ? | Slow!! ? ? ?| ? 2 ? | ? 150 ? | ? ?290 ? ? | Slow!! ? ? ?| ? 2 ? | ? 200 ? | ? ? 51 ? ? |Case5 : Without changeset 20122,
cpu_weightdom0:domU = 256:256? ? ?| vcpus | cpu_cap | boot-up ? ?| ? ? ?| ? ? ? | ? ? ? ? | times[sec] | ? ? ?+-------+---------+------------+ ? ? ?| ? 1 ? | ? ? 0 ? | ? ? 57 ? ? | ? ? ?| ? 1 ? | ? ?50 ? | ? ? 80 ? ? | ? ? ?| ? 1 ? | ? 100 ? | ? ? 56 ? ? | ? ? ?| ? 2 ? | ? ? 0 ? | ? ? 50 ? ? | ? ? ?| ? 2 ? | ? ?50 ? | ? ? 95 ? ? | ? ? ?| ? 2 ? | ? 100 ? | ? ? 61 ? ? | ? ? ?| ? 2 ? | ? 150 ? | ? ? 53 ? ? | ? ? ?| ? 2 ? | ? 200 ? | ? ? 50 ? ? |Case6 : Without changeset 20122,
cpu_weightdom0:domU = 256:512? ? ?| vcpus | cpu_cap | boot-up ? ?| ? ? ?| ? ? ? | ? ? ? ? | times[sec] | ? ? ?+-------+---------+------------+ ? ? ?| ? 1 ? | ? ? 0 ? | ? ? 56 ? ? | ? ? ?| ? 1 ? | ? ?50 ? | ? ? 80 ? ? | ? ? ?| ? 1 ? | ? 100 ? | ? ? 56 ? ? | ? ? ?| ? 2 ? | ? ? 0 ? | ? ? 50 ? ? | ? ? ?| ? 2 ? | ? ?50 ? | ? ? 95 ? ? | ? ? ?| ? 2 ? | ? 100 ? | ? ? 61 ? ? | ? ? ?| ? 2 ? | ? 150 ? | ? ? 53 ? ? | ? ? ?| ? 2 ? | ? 200 ? | ? ? 50 ? ? |Best regards,
?KanQuoted 107 lines · Masaki Kanno
Hi George,
I will try them on today.
Kan
Quoted 92 lines · George Dunlap
Hmm, it appears my patch still debits credits for VMs that aren't earning credits anymore; such VMs can earn an unlimited amount of negative credit before becoming active again.
Try the attached patches; if it doesn't fix the problem, please take a short trace during boot using the following command and send it to me:
# xentrace -D -e 0x2f000 -S 128 -s 1000 /tmp/sched-boot.traceThanks,
-GeorgeQuoted 72 lines · Keir Fraser
Hi Maskai,
Thanks for the report. It's a good idea to Cc the patch author when making
bug reports. In this case it's George Dunlap who I've cc'ed in this reply.?-- Keir
Quoted 54 lines · Masaki Kanno
Hi,
I tested the latest xen-unstable (changeset: 20128) and the latest linux-2.6.18-xen (changeset: 931). ?A guest OS is booted up slower than before. ?And the following messages are shown by the guest OS.
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys? *************************************************************** ? *************************************************************** ? ** WARNING: Currently emulating unsupported memory accesses ?** ? ** ? ? ? ? ?in
/lib/tlsglibc libraries. The emulation is ? ?** ? ** ? ? ? ? ?slow. To ensure full performance you should ? ? ?** ? ** ? ? ? ? ?install a 'xen-friendly' (nosegneg) version of ? ** ? ** ? ? ? ? ?the library, or disable tls support by executing ** ? ** ? ? ? ? ?the following as root: ? ? ? ? ? ? ? ? ? ? ? ? ? ** ? ** ? ? ? ? ?mv/lib/tls/lib/tls.disabled? ? ? ? ? ? ? ? ? ?** ? ** Offending process: modprobe (pid=761) ? ? ? ? ? ? ? ? ? ? ** ? *************************************************************** ? ***************************************************************Pausing... 5<3>BUG: soft lockup detected on CPU#0! ?[<c0151205>]
softlockup_tick+0xa5/0xd0?[<c010978a>]timer_interrupt+0x2fa/0x6c0?[<c011d8c1>]__activate_task+0x21/0x40?[<c012fed0>]lock_timer_base+0x20/0x50?[<c0151563>]handle_IRQ_event+0x33/0xa0?[<c0151678>]__do_IRQ+0xa8/0x120?[<c01076e1>]do_IRQ+0x31/0x80?[<c02af6b0>]neigh_periodic_timer+0x0/0x140?[<c024ced5>]evtchn_do_upcall+0xe5/0x1f0?[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170?[<c0105ba3>]hypervisor_callback+0x33/0x3b?[<c0115fb0>]do_fixup_4gb_segment+0x0/0x170?[<c01ed68b>]delay_tsc+0xb/0x20?[<c01ed6d6>]__delay+0x6/0x10?[<c01160f0>]do_fixup_4gb_segment+0x140/0x170?[<c0169597>]do_munmap+0x197/0x200?[<c01ee0a4>]copy_to_user+0x34/0x70?[<c0105b6b>]error_code+0x2b/0x30Continuing...FYI, when I reverted changeset 20122 of xen-unstable, the guest OS is booted up as before.
Best regards,
?KanQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel