LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-31-2013, 08:33 AM   #1
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 92

Rep: Reputation: 3
Reduced CPU cores to 4, but Linux says there are still 8


We have a test server running RHEL 5.8. The platform is a HP BL460c blade server with 2x 4-core Xeon CPUs.

The server was set up with all 8 cores enabled, but we now wish to reduce the number of cores to 4 on this test system, in order to simulate a lower powered server.

I have reduced the number of active cores to 4 in the machine's BIOS, and it reports that there are 4 cores total available on boot (previously it reported a total of 8).

But when Linux comes up, it still shows 8 CPUs (in /proc/cpuinfo, /var/log/messages, dmidecode, top, etc.).

I'm looking for some help as to how I can have Linux correctly identify the number of cores that the machine it is running on has?

(NB. we chose to limit the cores in the BIOS, rather than as an OS boot option.)

Thanks for looking!
 
Old 01-31-2013, 09:32 AM   #2
hamlindsza
Member
 
Registered: Aug 2012
Distribution: Debian, CentOS
Posts: 74

Rep: Reputation: Disabled
Its due to hyper-threading, it enables each CPU to handle two threads simultaneosly.
 
Old 01-31-2013, 11:26 AM   #3
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 92

Original Poster
Rep: Reputation: 3
Thanks - I was getting there...

On looking back through syslog files, Linux was listing 16 "CPU"s when there were 8 cores configured, so reducing the cores to 4 with 2 threads per core gives 8 "CPU"s.
 
Old 01-31-2013, 11:33 AM   #4
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,051

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
If you choose, you can disable hyperthreading in the BIOS.

Do you want to "simulate a lower powered server" that has hyperthreading enabled, or one that doesn't?
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux not using all cpu cores saiyen2002 Linux - Hardware 6 08-17-2012 09:35 AM
Software and CPU Cores DIGITAL39 Linux - Software 8 10-10-2007 02:47 AM
Can Linux SMP Kernel Support 3 Cores CPU? btbx Linux - Kernel 1 07-26-2007 03:04 AM


All times are GMT -5. The time now is 04:26 AM.

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