Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-31
5
Medium Priority
?
347 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 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

730 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