Restricting number of CPUs

Wilson, Craig wilson.craig at hp.com
Tue Apr 10 21:59:24 UTC 2007


Hi Guys,

On CPU's, does Red Hat count duel core as 1 CPU or 2 and what about
Quad's?

Cheers

Craig.

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Young, Mike
Sent: Wednesday, April 11, 2007 6:53 AM
To: General Red Hat Linux discussion list
Subject: RE: Restricting number of CPUs

Excellent!  I thought there was something like that.  I'll try that
first, then get physical if it doesn't work.

Thanks,
Mike.

 -----Original Message-----
From: 	redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]  On Behalf Of Barry Brimer
Sent:	Tuesday, April 10, 2007 3:47 PM
To:	General Red Hat Linux discussion list
Subject:	Re: Restricting number of CPUs

Quoting "Young, Mike" <Mike.Young at atosorigin.com>:

> Hello,
>
> We have 4 CPUs installed in a server, but would like to limit it to
only 2,
> since an application is priced per CPU.  Rather than taking the CPUs
out of
> the box physically, is there a way to lower the CPU count - maybe in
> /etc/sysctl.conf?

To limit the entire system to a certain number of CPUs, add "maxcpus=X"
to your
kernel line in your grub.conf (without the quotes) and replace "X" with
the
number of CPUs you want the kernel to see.

<http://kbase.redhat.com/faq/FAQ_80_602.shtm>

To limit an application to a certain number of CPUs, use the taskset
program
included in RHEL.

<http://kbase.redhat.com/faq/FAQ_43_3918.shtm>

HTH,
Barry

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list