From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36797 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgGVF-0001Tj-4d for qemu-devel@nongnu.org; Tue, 03 Aug 2010 08:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgGJo-0003JO-9P for qemu-devel@nongnu.org; Tue, 03 Aug 2010 08:10:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33581) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgGJo-0003JG-0d for qemu-devel@nongnu.org; Tue, 03 Aug 2010 08:10:04 -0400 Date: Tue, 3 Aug 2010 13:10:00 +0100 From: "Richard W.M. Jones" Subject: Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35? Message-ID: <20100803121000.GV13789@amd.home.annexia.org> References: <20100803111306.GA21886@amd.home.annexia.org> <20100803113302.GT24773@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100803113302.GT24773@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org On Tue, Aug 03, 2010 at 02:33:02PM +0300, Gleb Natapov wrote: > 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. It's ~110MB, yes. > 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. I can't see anything about this in the kernel changelog. Can you point me to the commit or the key phrase to look for? Also, what's the point of making in/out "more correct" when they we know we're talking to qemu (eg. from the CPUID) and we know it already worked fine before with qemu? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v