Solved

what is the command to  switchoff one processor in redhat 9Linux

Posted on 2008-10-31
5
345 Views
Last Modified: 2013-12-16
Hi,
I am Running Redhat9 in IBM Esever machine. It has two processors.Whats the command to find the two processors and how to switchoff one processor by command.
Regards,
Krishna
0
Comment
Question by:krishgudd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 3

Accepted Solution

by:
PeterHardy earned 500 total points
ID: 22849235
Try the following.

In grub.conf change/add the line with this param

maxcpus=number_of_cpus

So if you want one cpu only you will write

maxcpus=1

and so on....
0
 
LVL 3

Expert Comment

by:saurabhpendharker
ID: 22983075
Hello,
In order to see the no. of processors or details of processors, you can try:

bash# cat /proc/cpuinfo

To see physical processors:
bash# grep 'physical id' /proc/cpuinfo | sort | uniq
physical id     : 0
physical id     : 3

To see virtual processors
bash# grep "^processor" /proc/cpuinfo
processor       : 0
processor       : 1
processor       : 2
processor       : 3

In order to disable or use just 1 CPU, you may need to add or change the following line in grub.conf:
maxcpus=1
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question