From: Masaki Kanno Subject: Re: Guest OS boots up slowly Date: Tue, 01 Sep 2009 17:31:05 +0900 Message-ID: <78CA2ADE8C4A87kanno.masaki@jp.fujitsu.com> References: <74CA2A0748C2CBkanno.masaki@jp.fujitsu.com> <76CA2A9495EA9Ckanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <76CA2A9495EA9Ckanno.masaki@jp.fujitsu.com> 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 , Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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 Tue, 01 Sep 2009 08:41:39 +0900, Masaki Kanno wrote: >Hi George, > >I will try them on today. > > Kan > >Mon, 31 Aug 2009 14:10:47 +0100, George Dunlap wrote: > >>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 >> >>On Mon, Aug 31, 2009 at 9:34 AM, Keir Fraser >>wrote: >>> 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. >>> >>> (I (B-- Keir >>> >>> On 31/08/2009 07:50, "Masaki Kanno" wrote: >>> >>>> Hi, >>>> >>>> I tested the latest xen-unstable (changeset: 20128) and the latest >>>> linux-2.6.18-xen (changeset: 931). (I (BA guest OS is booted up slower >>>> than before. (I (BAnd 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 >>>> >>>> (I (B *************************************************************** >>>> (I (B *************************************************************** >>>> (I (B ** WARNING: Currently emulating unsupported memory accesses (I (B** >>>> (I (B ** (I (B (I (B (I (B (I (B (I (Bin /lib/tls glibc libraries. The emulation is (I (B (I (B** >>>> (I (B ** (I (B (I (B (I (B (I (B (I (Bslow. To ensure full performance you should (I (B (I (B (I (B** >>>> (I (B ** (I (B (I (B (I (B (I (B (I (Binstall a 'xen-friendly' (nosegneg) version of (I (B ** >>>> (I (B ** (I (B (I (B (I (B (I (B (I (Bthe library, or disable tls support by executing ** >>>> (I (B ** (I (B (I (B (I (B (I (B (I (Bthe following as root: (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B ** >>>> (I (B ** (I (B (I (B (I (B (I (B (I (Bmv /lib/tls /lib/tls.disabled (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B** >>>> (I (B ** Offending process: modprobe (pid=761) (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B (I (B ** >>>> (I (B *************************************************************** >>>> (I (B *************************************************************** >>>> >>>> Pausing... 5<3>BUG: soft lockup detected on CPU#0! >>>> (I (B[] softlockup_tick+0xa5/0xd0 >>>> (I (B[] timer_interrupt+0x2fa/0x6c0 >>>> (I (B[] __activate_task+0x21/0x40 >>>> (I (B[] lock_timer_base+0x20/0x50 >>>> (I (B[] handle_IRQ_event+0x33/0xa0 >>>> (I (B[] __do_IRQ+0xa8/0x120 >>>> (I (B[] do_IRQ+0x31/0x80 >>>> (I (B[] neigh_periodic_timer+0x0/0x140 >>>> (I (B[] evtchn_do_upcall+0xe5/0x1f0 >>>> (I (B[] do_fixup_4gb_segment+0x0/0x170 >>>> (I (B[] hypervisor_callback+0x33/0x3b >>>> (I (B[] do_fixup_4gb_segment+0x0/0x170 >>>> (I (B[] delay_tsc+0xb/0x20 >>>> (I (B[] __delay+0x6/0x10 >>>> (I (B[] do_fixup_4gb_segment+0x140/0x170 >>>> (I (B[] do_munmap+0x197/0x200 >>>> (I (B[] copy_to_user+0x34/0x70 >>>> (I (B[] error_code+0x2b/0x30 >>>> Continuing... >>>> >>>> >>>> FYI, when I reverted changeset 20122 of xen-unstable, the guest OS >>>> is booted up as before. >>>> >>>> Best regards, >>>> (I (BKan >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >>> >> >>-------------------------------text/plain------------------------------- >>_______________________________________________ >>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