Control Cores/CPUs used in Linux instance on VMware | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Control Cores/CPUs used in Linux instance on VMware

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-05-2013
RHCE RHCE is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 13 August 2014, 7:06 AM EDT
Posts: 76
Thanks: 11
Thanked 0 Times in 0 Posts
Control Cores/CPUs used in Linux instance on VMware

We have a production setup where we have RHEL instances on VMware. We have 2 RHEL instances on VMware now each having 4 CPUs/cores each. I want to put up another RHEL instance but my query is that can we allocate only 1 CPU/core for the new instance.

I hope, my query is clear that can we allocate only 1 CPU/core to the new instance.

Please revert with the reply to my query.

Regards
Sponsored Links
    #2  
Old 01-05-2013
thmnetwork thmnetwork is offline
Registered User
 
Join Date: Mar 2004
Last Activity: 13 April 2013, 4:20 PM EDT
Location: Boise, Idaho, United States
Posts: 144
Thanks: 13
Thanked 6 Times in 6 Posts
I wouldn't recommend this method for disabling CPU's at run-time since I've never tried it myself and I've had bad luck doing the same with using sysfs to remove HDD objects without a reboot (I got a Kernel Panic). There is also the "maxcpus" kernel parameter for limiting the number of CPU's available for use.

If you're going to do that last one, though, it would require a reboot obviously. But why not just shut the VM down after hours, reduce the number of CPU's on the VMWare side and then boot back again?
Sponsored Links
    #3  
Old 01-05-2013
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 15 August 2014, 8:55 AM EDT
Location: /dev/ph
Posts: 4,781
Thanks: 60
Thanked 424 Times in 393 Posts
Quote:
can we allocate only 1 CPU/core to the new instance.
Are you asking if you can allocate only one core from a host CPU to the new instance?
    #4  
Old 01-07-2013
RHCE RHCE is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 13 August 2014, 7:06 AM EDT
Posts: 76
Thanks: 11
Thanked 0 Times in 0 Posts
Yes, thanks for getting it right. I was asking if we can allocate only one core from a host CPU to the new instance.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find the number of cores in a Red Hat Linux box? bikas89 Red Hat 4 01-04-2013 10:00 AM
how to run two unix/linux programs on two different cpu cores kaaliakahn UNIX for Dummies Questions & Answers 1 08-20-2012 05:27 PM
writing a simple script to get total number of cpus/cores in server steven12 Shell Programming and Scripting 8 01-20-2012 12:12 PM
How to find VMware info from Linux? aixlover Red Hat 2 03-11-2011 05:50 PM
Detecting Vmware on Linux amittal Shell Programming and Scripting 2 04-04-2007 05:20 AM



All times are GMT -4. The time now is 10:22 PM.