Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424393 - app-emulation/qemu-kvm - --enable-tcg-interpreter cause massive slowdown at least on x86_64 without vmx support
Summary: app-emulation/qemu-kvm - --enable-tcg-interpreter cause massive slowdown at l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-01 13:26 UTC by Yaroslav Isakov
Modified: 2012-07-08 22:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info app-emulation/qemu-kvm (em-info,5.78 KB, text/plain)
2012-07-08 20:42 UTC, Yaroslav Isakov
Details
"cat /proc/cpuinfo" result (cpuinfo,1.45 KB, text/plain)
2012-07-08 20:43 UTC, Yaroslav Isakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yaroslav Isakov 2012-07-01 13:26:37 UTC
Hello! I start qemu-kvm-1.0.1 and found that iso with sysrescd boots very slowly. I found that without --enable-tcg-interpreter line in ebuild there is huge speed boost. So, I am suggesting to disable TCI on x86_64 and x86 arches.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 20:31:44 UTC
Please attach emerge --info for the package, cat /proc/cpuinfo, your USE flags set for qemu-kvm.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 20:33:23 UTC
TCI is only used when executing x86 code on an ARM processor for example. Not when you're running x86 code on a native x86, which is using the previous TCG. Which is why I believe there's something further going wrong here.
Comment 3 Yaroslav Isakov 2012-07-08 20:42:17 UTC
Created attachment 317608 [details]
emerge --info app-emulation/qemu-kvm
Comment 4 Yaroslav Isakov 2012-07-08 20:43:31 UTC
Created attachment 317610 [details]
"cat /proc/cpuinfo" result
Comment 5 Yaroslav Isakov 2012-07-08 20:45:46 UTC
I found this slowness even if I compile qemu-kvm by hand and enable TCI with configure script.
Comment 6 Yaroslav Isakov 2012-07-08 20:53:32 UTC
BTW, I found this in tcg/tci/README:
For hosts with native TCG, the interpreter TCI can be enabled by

        configure --enable-tcg-interpreter

The only difference from running QEMU with TCI to running without TCI
should be speed.
Comment 7 Yaroslav Isakov 2012-07-08 21:16:28 UTC
And this:
* It might be useful to have a runtime option which selects the native TCG
  or TCI, so QEMU would have to include two TCGs. Today, selecting TCI
  is a configure option, so you need two compilations of QEMU.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 22:06:22 UTC
Well the qemu-kvm-1.1.0 ebuild has a USE=tci use flag for controlling this but its not yet unmasked, when it is you can use that.