LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-07-2011, 06:52 AM   #1
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 133

Rep: Reputation: 0
# of CPU's


Hi,

I have just installed Cent OS 6.0 on a x3850 X5 with 4 x Xeon 8C cpus.

Is it correct that the OS sees 64 cpus and not 32 ?

Also in virt-manager, I can assign up to 64 cpus for a guest.

I thought it was 4 times 8 = 32 cpus.

Regards.
 
Old 10-07-2011, 06:58 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe the system has hyper-threading enabled, so that each core is seen as 2 virtual cores. You can easily verify it using
Code:
cat /proc/cpuinfo
for each core you should see the following:
Code:
siblings	: 16
cpu cores	: 8
 
Old 10-07-2011, 07:00 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Sounds like hyperthreading is enabled. I don't know the spec's of the x3850, so I don't know whether this estimate is correct.

Hyperthreading (if supported by the CPU) can be enabled/disabled in the BIOS menu.

You might want to give some thought to whether you want it enabled.

If you have enough active software threads, then hyperthreading makes your system act like it has twice as many cores each roughly half as fast, which is not at all a win for a large number of cores (reduces latency on systems with very few cores).

With some mixes of instruction use within the threads, each virtual core runs a little faster than half as fast as a true core, so you get a net performance boost of twice as many cores each a little more than half as fast.

For some memory access patterns, using both halves of a core at the same time gives a dramatically higher cache miss rate, making each half core far slower than half of a real core.

With a hyperthreading aware OS, when you run fewer software threads than you have virtual cores, the OS should first idle one half of each core before completely idling any core. With one half of a core idle, the other half speeds up to nearly the speed it would have if hyperthreading had not been enabled.

If you virtualize a hyperthreading aware OS within another hyperthreading aware OS, I'm not sure how much of the hyperthreading awareness gets lost in the virtualization. I think you won't be able to avoid situations in which both halves of one core are in use at half speed while another core is wasted unused.

Last edited by johnsfine; 10-07-2011 at 07:13 AM.
 
Old 10-07-2011, 07:10 AM   #4
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 133

Original Poster
Rep: Reputation: 0
Yes, correct.

16 siblings and 8 cpu cores for each CPU, 0-63.

Is it okay if hyberthreading is enabled ?

The server shall act as a host for 3-4 guests.
 
Old 10-07-2011, 07:17 AM   #5
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 133

Original Poster
Rep: Reputation: 0
Thanks, johnsfine. I replied before I read your answer.

But I'm not certain if i quite understand the point.

But the server came with hyberthreading enabled by default !

Another thing is, that it says 4 network cards. eth0 - eth3. But there is only 2 physically ports in the server.
 
Old 10-07-2011, 07:19 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by ThomasRonshof View Post
Is it okay if hyberthreading is enabled ?
I was still editing details about that into my earlier reply while you were posting that question.

I think it is more likely in your case that leaving hyperthreading enabled will reduce the performance of the system. But it is very hard to make an accurate estimate of whether hyperthreading will increase or reduce performance.
 
Old 10-07-2011, 07:24 AM   #7
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by ThomasRonshof View Post
But I'm not certain if i quite understand the point.
Do you have any specific questions? I was trying to describe the reasons (depending on use) why hyperthreading might give you more or less total compute power vs. disabling hyperthreading.

Quote:
But the server came with hyberthreading enabled by default !
I still think it is just an option in BIOS setup. During a reboot, you can go into BIOS setup and change it if you want to.

Quote:
Another thing is, that it says 4 network cards. eth0 - eth3. But there is only 2 physically ports in the server.
I don't know about that one.
 
  


Reply



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
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
why does SCHED_FIFO task on one CPU affects other CPU tasks on a multy core system? reg13 Linux - Kernel 2 07-31-2011 09:48 PM
AMD CPU Generating Way More System Load Than Intel Xeon CPU? kresyzig Programming 1 10-11-2010 09:35 AM
Cpu fan stuck to the cpu, how do I get the cpu out? abefroman Linux - Hardware 16 09-04-2009 12:47 AM
cpu frequency scaling with Pentium(R) Dual-Core CPU E5200 @ 2.50GHz tramni1980 Slackware 5 08-16-2009 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration