LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2012, 11:46 AM   #1
snasto
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
disabling processors


how can I disable processors on a 2 socket/ 4 dual cores each = 16 processors total on RHLE 5.8 server?
 
Old 06-08-2012, 11:47 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,481

Rep: Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089
Usually the BIOS will have a setting to limit the number of active cores on a proc.
 
Old 06-08-2012, 01:46 PM   #3
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
To disable processor in rhel5 you can use something like this.

Code:
# grep "processor" /proc/cpuinfo
 processor       : 0
 processor       : 1
In order to disable CPU 1, write 0 to /sys/devices/system/cpu/cpu1/online:

Code:
# echo 0 > /sys/devices/system/cpu/cpu1/online
Check /proc/cpuinfo to see if the CPU is disabled:
Code:
# grep "processor" /proc/cpuinfo
processor       : 0
Notice that there is now only one processor shown (CPU 0) instead of two.



also you can edit grub.conf and pass this "maxcpus=1" to kernel while booting
 
  


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
Doubt about physcial processors and logical processors umeshgupta1987 Solaris / OpenSolaris 5 08-10-2011 03:17 PM
Processors brickstol Linux - Hardware 1 03-21-2006 09:46 PM
Processors samjkd General 3 03-10-2005 12:26 PM
Will Linux Support Amd Processors And Other Than Intel Processors? halovivek Linux - Hardware 6 09-02-2003 01:08 PM
Processors........ vacume Linux - Hardware 3 08-07-2003 11:29 PM


All times are GMT -5. The time now is 12:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration