Operating System - Linux
1752795 Members
6207 Online
108789 Solutions
New Discussion юеВ

Re: Reduce the no of Cores in RHEL 5.2

 
SOLVED
Go to solution
prakasse
Advisor

Reduce the no of Cores in RHEL 5.2

Hi Folks,

I am currently using DL580 with 4P/16C. Earlier i installed RHEL 4.7 and i was able to reduce the no of cores by modifying th grub file.
1) Verified the current number of cores running.
4) Modified /boot/grub/grub.conf to adjust the "maxcpus" value and set the "default" boot command as needed.
5) Rebooted the system.
6) Verified that the system was running the newly requested number of cores.

Now i installed RHEL 5.2 and followed the same steps for reducing the number of cores. But the same is not happening. Can anyone help.

Thanks in advance,
Senthil.

P.S: Am facing this critical issue and i assure that the right answer will get full 10 points.
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Reduce the no of Cores in RHEL 5.2

Shalom,

Core files can be completely prevented from being written at all.

ulimit settings can do this.

ulimit -c 0

This can be done in /etc/profile or the individual .profile for users.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vitaly Karasik_1
Honored Contributor
Solution

Re: Reduce the no of Cores in RHEL 5.2

Weird!
Do you see "maxcpus" param into "/proc/cmdline" in your running system?
prakasse
Advisor

Re: Reduce the no of Cores in RHEL 5.2

Hi SEP,

By core i meant the number of cpu and not the core files. DL580 has 16 core, 16 cpus and i need to tell RHEL to use only 12 cpu and disable the other 4 cpus's.

Thanks,
Senthil
Steven E. Protter
Exalted Contributor

Re: Reduce the no of Cores in RHEL 5.2

Oh, sorry.

RHEL ES will not support more than a certain number of cores.

The AS release will.

Note also CentOS is based on AS and will for free and out of the box support all 16 cores.

I was a little tired when I read your question. Sorry I misunderstood.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven McCoy
Valued Contributor

Re: Reduce the no of Cores in RHEL 5.2

Hey guys,

I think he's wanting to limit the amount of cores/CPUs that Linux is recognizing/using. He has 16 cores/CPUs showing up now, but wants to limit the number Linux sees to 12.

Is this correct, prakasse?
Vitaly Karasik_1
Honored Contributor

Re: Reduce the no of Cores in RHEL 5.2

yes, as far as I understand.
Steven E. Protter
Exalted Contributor

Re: Reduce the no of Cores in RHEL 5.2

Shalom,

Now I finally understand.

What is the reason for limiting the OS to 12 Cores? License by CPU costs for oracle has driven others to this solution.

Fixing this issue may require a patch.

There may be a bugzilla on this function for 5.2

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
prakasse
Advisor

Re: Reduce the no of Cores in RHEL 5.2

Thansk for the responses. "/proc/cmdline" did the trick for verification.

As mpstat gave wrong results in 5.2
prakasse
Advisor

Re: Reduce the no of Cores in RHEL 5.2

Solution found