Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using vga passthrough for Windows 7 x64 guest and CPU performance is slow. Is this because I'm using the default 440FX chipset (machine type PC)? I'm using "host" for cpu type, and qemu-kvm.
Heard reports of 95% native performance possible but find it hard to believe. I think I'm getting around %40-%60 and maybe slower in some cases.
VGA passthrough requires an IOMMU and VT-d (Intel) or Vi (AMD) support to allow the guest VM to directly access your second graphics card. When using VGA passthrough the guest controls the actual card, not an emulated i440FX, so it will run at full speed. Instead of using -machine you will need to give the individual options to qemu including the PCI location of the VGA controller that you are passing through.
Other things I tried: Set host cpu governor to performance but it doesn't help. Also, when I run Windows 98 guest, I have a constant %100 cpu usage during idle with sluggish response. I thought maybe this had something with the watchdog timer?
EDIT:
Tried with hugetlbfs and 2048 hugepages (4GB guest ram). Didn't notice any improvement (still sluggish cpu). Also used cache=none for "Windows 7 x64" raw img file, but this slows down boot time quite a bit. I can't play HD movies without choppy performance.
Changed i/o scheduler to deadline, nested paging off, and virtual HD to vfio with cache=none. Still no improvement (maybe a hair better performance).
Also installed CPU scheduler patch for bulldozer CPU in Windows 7 x64, and disabled core parking in registry. Very minimal improvement but still terrible CPU use (hovers around %20 each core at most with demanding applications). I have a 7.4 CPU score in "Windows Experience" which doesn't seem bad IMO.
I don't understand why I get much better speeds natively? I hear claims of 95+% native performance with kvm, but this clearly isn't happening on my end. CPU consumption stays low and my GPU clearly becomes bottlenecked.
Forgot to mention I'm using piledriver with a Radeon HD 7750. Guest has 4gb RAM and 2048 hugetlbfs.
Native Windows 7 x64 I try a FPS demo-game "Alien Rage". It gets 60FPS constant. In KVM it gets only around 30-40FPS no matter how low in-game performance settings are; also, cpu usage hovers around %25. Also tried the q35 chipset, and connecting vfio GPU to ioh3420 device (wasn't using ioh3420 before). How are others getting almost native speed https://www.youtube.com/watch?v=37D2bRsthfI?
Forgot to mention I'm using FX 6300 piledriver CPU. Guest "Windows 7 x64" has 4GB of ram.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.