[Bug 568647] New: kqemu (from openSUSE Build Service) makes qemu execution much slower
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c0 Summary: kqemu (from openSUSE Build Service) makes qemu execution much slower Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: i686 OS/Version: openSUSE 11.2 Status: NEW Severity: Critical Priority: P5 - None Component: 3rd party software AssignedTo: seife@novell.slipkontur.de ReportedBy: robermann@gmail.com QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: No Running qemu with -kernel-kqemu option (after loaded the kqemu module) the overall speed is much slower than running qemu without kqemu. Note that /dev/shm is set and I've tried also to set max_user_freq to 1024, without success. Some more information: linux:# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 6 cpu MHz : 697.515 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pse36 mmx fxsr sse up bogomips : 1395.03 clflush size : 32 power management: linux:# uname -ar Linux linux 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 i686 i686 i386 GNU/Linux linux:# rpm -qa | grep qemu qemu-0.11.0-5.5.i586 kqemu-kmp-desktop-1.4.0pre1_2.6.31.5_0.1-3.1.i586 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c1 --- Comment #1 from Roberto Mannai <robermann@gmail.com> 2010-01-06 17:42:05 UTC --- linux:# cat /proc/cmdline root=/dev/sda1 ide=nodma apm=power-off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317 acpi=off -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c2 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kernel-maintainers@forge.pr | |ovo.novell.com --- Comment #2 from Stefan Seyfried <seife@novell.slipkontur.de> 2010-01-07 10:54:33 CET --- I guess you are using the packages from my buildservice home project (otherwise you wouldn't have assigned the bug to me)? I am not patching anything in that package, so I'd kindly ask you to report this bug upstream to the qemu developers. One thing to check though is, if you have sufficient permissions on the kqemu device. It would be interesting to start qemu like that: qemu -monitor stdio -cdrom openSUSE.iso -boot d -kernel-kqemu (no need to boot the system, just stop it at the boot screen). Then enter in your terminal where you started qemu "info kqemu". The result for me is: QEMU 0.11.0 monitor - type 'help' for more information (qemu) info kqemu kqemu support: enabled for user and kernel code Also, you start the system with "failsafe" kernel options. Please try without. It might well be that some of them interfere with kqemu (but I am not sure about that). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c3 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |robermann@gmail.com --- Comment #3 from Stefan Seyfried <seife@novell.slipkontur.de> 2010-01-07 11:35:10 CET --- BTW: I can confirm that "-kernel-kqemu" is slower here on my machine processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Pentium(R) M processor 1.70GHz stepping : 6 cpu MHz : 1700.000 cache size : 2048 KB for a specific testcase: start the memtest86 from 11.2 CD, and the memory test speed with "-kernel-kqemu" is ~128MB/second, with "-enable-kqemu" (and without kqemu at all) it is ~440MB/second. But for other test cases it seems to perform mostly as expected: Booting an 11.2 rescue system without kqemu took 4:55 minutes, with "-enable-kqemu" it took 2:13 minutes, with "-kernel-kqemu" it did not find the CD drive, so there are other problems with "-kernel-kqemu". Then I measured how long it took until "starting udev... ok" and "loading basic drivers... ok" appeared during rescue system boot: starting udev | loading basic drivers kernel-kqemu: 28 seconds 0:51 minutes enable-kqemu: 26 seconds 1:24 minutes no kqemu: 37 seconds 2:49 minutes Those measurements were taken with a stopwatch and run only once, so they are not too exact, but generally it seems to work as expected. kernel-kqemu seems to be negatively impact some of the workloads (starting udev) and hugely improve some of the others (loading modules), but that's probably also to be expected. So unless you can show me more facts, I'm inclined to close this as "worksforme". Note: all tests were run on FACTORY, but I dont think too much has changed wrt. kqemu since 11.2. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c4 --- Comment #4 from Roberto Mannai <robermann@gmail.com> 2010-01-07 10:53:29 UTC --- Hello Yes I'm using your build service's package. My test case was the following: 1. Prepare a bootable USB key with a QEMU image 1.1 this is a quick step, follow my post of "Wed 16 Dec 2009, 16:35" on http://www.murga-linux.com/puppy/viewtopic.php?t=29107&start=30 2. my test was the post on "Sat 19 Dec 2009, 18:05": I ran the linqemu.sh script starting from the boot until the poweroff of the VM. Just the drawing of the Unetbootin's grub menu is much slower. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c5 --- Comment #5 from Roberto Mannai <robermann@gmail.com> 2010-01-07 10:57:03 UTC --- Regarding "failsafe" mode: I did tried "qemu -kernel-kqemu" also in normal mode, with the same results. As of the other questions, as soon I'll return to my opensuse box I'll give you the answers. Thanks for the quick feedback. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c6 --- Comment #6 from Stefan Seyfried <seife@novell.slipkontur.de> 2010-01-07 13:30:03 CET --- There are some workloads that are slower with -kernel-kqemu - my memtest86 example shows this, but overall, the performance with "-enable-kqemu" should be much better than without kqemu, and kernel-kqemu will help with some workloads (mostly kernel-intensive ones, like loading lots of modules, probably also with encrypted filesystems etc). It brings other problems (like the failure to detect the CDROM for the openSUSE 11.2 live iso, which I seem to remember happeninge since a long time with kernel-kqemu). OTOH, IIRC I had windows 2000 problems under qemu that were solved with using "-kernel-kqemu", but that was years ago and my memory might be wrong on that. It will be interesting to see if the device permissions are correct and if kqemu is used at all, which we will see from the output of "info kqemu" in the qemu console. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c7 Roberto Mannai <robermann@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|robermann@gmail.com | --- Comment #7 from Roberto Mannai <robermann@gmail.com> 2010-01-07 18:57:19 UTC --- Requested info: linux:/media/IBM_NTFS # ll /dev/kqemu crw-rw---- 1 root root 10, 58 2010-01-07 19:53 /dev/kqemu (and I'm running my tests as root) The support is enabled: QEMU 0.11.0 monitor - type 'help' for more information (qemu) info kqemu kqemu support: enabled for user and kernel code (qemu) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c8 --- Comment #8 from Roberto Mannai <robermann@gmail.com> 2010-01-07 19:06:54 UTC --- What kernel type are you using? Mine is "desktop" (note: I've updated it yesterday): Linux linux 2.6.31.8-0.1-desktop #1 SMP PREEMPT 2009-12-15 23:55:40 +0100 i686 i686 i386 GNU/Linux -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c9 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |ASSIGNED Severity|Critical |Normal --- Comment #9 from Stefan Seyfried <seife@novell.slipkontur.de> 2010-01-07 21:40:10 CET --- I'm using the default kernel. Anyway, I suggest that you take that upstream to the qemu developers. If it is not just the weird pathetic workload where "kernel-kqemu" is simply slower. But that's also something that qemu experts can answer you (I know almost nothing about qemu, so I cannot help you there). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=568647 http://bugzilla.novell.com/show_bug.cgi?id=568647#c10 --- Comment #10 from Roberto Mannai <robermann@gmail.com> 2010-01-08 09:16:54 UTC --- The odd is that when using the VMKnoppix 5.3.1 CD Live (http://www.rcis.aist.go.jp/project/knoppix/vmknoppix/index-en.html) (which contains qemu (v0.9.1)) the same test with kernel-kqemu gives really more speed. Finally, when running just qemu without kqemu, I have: - on VMKnoppix (v0.9.1): 5 minutes - on OpenSuse (v0.11.0): 15 minutes (!) It would be interesting to have a qemu 0.9.1 for opensuse 11.2 too. Anyway, we can close the ticket, it seems an implementation issue. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=568647 https://bugzilla.novell.com/show_bug.cgi?id=568647#c11 Greg Kroah-Hartman <gregkh@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID --- Comment #11 from Greg Kroah-Hartman <gregkh@suse.com> 2011-08-31 19:51:17 UTC --- Ok, thanks, closing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com