From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=32913 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgFk5-00044A-US for qemu-devel@nongnu.org; Tue, 03 Aug 2010 07:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgFk4-0005ZV-H0 for qemu-devel@nongnu.org; Tue, 03 Aug 2010 07:33:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4749) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgFk4-0005Z7-AN for qemu-devel@nongnu.org; Tue, 03 Aug 2010 07:33:08 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o73BX4KJ017540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 3 Aug 2010 07:33:04 -0400 Date: Tue, 3 Aug 2010 14:33:02 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35? Message-ID: <20100803113302.GT24773@redhat.com> References: <20100803111306.GA21886@amd.home.annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100803111306.GA21886@amd.home.annexia.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org On Tue, Aug 03, 2010 at 12:13:06PM +0100, Richard W.M. Jones wrote: > > qemu compiled from today's git. Using the following command line: > > $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \ > -drive file=/dev/null,if=virtio \ > -enable-kvm \ > -nodefaults \ > -nographic \ > -serial stdio \ > -m 500 \ > -no-reboot \ > -no-hpet \ > -net user,vlan=0,net=169.254.0.0/16 \ > -net nic,model=ne2k_pci,vlan=0 \ > -kernel /tmp/libguestfsEyAMut/kernel \ > -initrd /tmp/libguestfsEyAMut/initrd \ > -append 'panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_vmchannel=tcp:169.254.2.2:35007 guestfs_verbose=1 TERM=xterm-color ' > > With kernel 2.6.35 [*], this takes about 1 min 20 s before the guest > starts. > > If I revert back to kernel 2.6.34, it's pretty quick as usual. > > strace is not very informative. It's in a loop doing select and > reading/writing from some file descriptors, including the signalfd and > two pipe fds. > > Anyone seen anything like this? > I assume your initrd is huge. In newer kernels ins/outs are much slower that they were. They are much more correct too. It shouldn't be 1 min 20 sec for 100M initrd though, but it can take 20-30 sec. This belongs to kvm list BTW. -- Gleb.