RE: Restricting number of CPUs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]  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@xxxxxxxxxxxxxx>:

> 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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux