Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Can you limit number of CPUs

Re: Can you limit number of CPUs

From: David Miller <djm_at_oregon.West.Sun.COM>
Date: Mon, 18 Sep 2000 14:32:20 -0500 (CDT)
Message-Id: <>

Hi Lisa,

There are 2 ways to do this successfully. One is to use processor sets, which are available starting in Solaris 2.6. These allow you to set aside a group of processors and then move processes into that set. No processes will run on those cpus except for the ones in the set and no processes in that set will run on any other cpus. See the "psrset" man page for how to set them up. This is a very easy way to partition a large number of cpus into subsets.

Creating, modifying and deleting processor sets can be done while things are running safely, so you can move cpus/processes into and out of processor sets as you want. This does need to be done as "root".

Also, the processor set a process is in is inherited, so you can (for example) put the oracle listener into a processor set and all new connections will also be in that set.

This is much better than binding processes to cpus (pbind) because the granularity is better.

See for more information.

A second way is to use the new (in Solaris 7) Solaris Resource Manager (SRM). This allows you to set up ways of sharing a machine where a percentage is dedicated to each subset of processes you choose to set up. Check out the blueprint at: for some more information.

The cpu_count init.ora parameter is only used to set the size of various arrays within the SGA and won't do what you want. I wouldn't recommend altering it for this.

Hope this helps.

Dave Miller
Sun Microsystems, Inc.

>Date: Thu, 14 Sep 2000 09:31:00 -0800
>To: Multiple recipients of list ORACLE-L <>
>X-Comment: Oracle RDBMS Community Forum
>X-Sender: Lisa Yttri <>
>From: Lisa Yttri <>
>Subject: Can you limit number of CPUs
>X-ListServer: v1.0f, build 69; ListGuru (c) 1996-2000 Bruce A. Bergman
>Mime-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Hi all -
>I am wondering if there is a way to limit the number of CPUs used by
>oracle on a unix machine (Sun Solaris in particular). If so, is this
>done through oracle or through unix. I have been told that it is
>possible with Solaris version 2.7, however my unix sa says it is not
>possible to do.
>Thanks in advance -
>Lisa Yttri
>Sr. DBA
>CNH Global
>Racine, Wisconsin
>Author: Lisa Yttri
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
Received on Mon Sep 18 2000 - 14:32:20 CDT

Original text of this message