Solved

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

Posted on 2008-10-31
5
346 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

617 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