LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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

Reply
 
Search this Thread
Old 02-15-2013, 04:15 AM   #1
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 602

Rep: Reputation: 49
LibVirt/KVM: HyperThreading On or Off?


Hi,

We have serveral servers with Intel i7 2600 quad core processors all running Ubuntu 12.04 LTS and they are used as hosts of virtual machines on libvirt/kvm.

My question is, should we turn hyper-threading on? From experience, if it is on, we see 8 CPUs on the host, if it is off, we see 4. We cannot see any noticable differences in performance so I was wandering if any of you have made some benchmarks or have some experience or other usefull information w.r.t. HT and KVM?

Thanks a lot,
Robert
 
Old 02-16-2013, 12:49 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
If Hyperthreading is beneficial for you depends highly on your type of workload, only you with your specific mix of applications can determine that reliably.
 
Old 02-16-2013, 08:13 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,594

Rep: Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419
Hyperthreading was a mess when it was first introduced. Many if not most of the tests would show that there was a performance hit when enabled. My opinion is that if you are using modern distro and up to date apps and you need many cpu's either virtual or real then use hyperthreading. Most of the early problems that were common have been resolved. Most of the apps are smp aware and HT aware. You won't really have an 8 core but for most smp aware apps it should help. Many apps are still only good for a couple of cores. I never turn it off anymore for my uses.

TobiSGD brings up a good point about use as the basis for answer.
 
Old 02-17-2013, 11:49 PM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 837

Rep: Reputation: 91
it depends on the workload. generally speaking, HT helps when you have IO bound loads and/or heavily congested CPU. If you are not overcomitting your CPU and have no disk/network bottlenecks, HT will probably not provide any advantages, and might, under certain conditions, even hinder performance
 
  


Reply

Tags
ht, hyperthreading, kvm, performance


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kvm/libvirt bridge etheraap Linux - Server 0 02-04-2013 08:44 PM
libvirt install with kvm (from source) guardian1 Linux - Virtualization and Cloud 2 12-07-2012 05:07 PM
Which version kvm/libvirt on which distros? Nick_C Linux - Virtualization and Cloud 11 03-07-2012 10:14 AM
LXer: Scripting KVM with Python, Part 2: Add a GUI to manage KVM with libvirt and Python LXer Syndicated Linux News 0 01-17-2012 08:11 PM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 12:00 AM


All times are GMT -5. The time now is 07:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration