Restricting number of CPUs
Young, Mike
Mike.Young at atosorigin.com
Tue Apr 10 20:52:44 UTC 2007
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
More information about the redhat-list
mailing list