Unix administration - Limit the number of processors

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > July 2006 > Limit the number of processors





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Limit the number of processors
jmartin

2006-06-21, 1:22 pm

Hi,

I am working on a AIX 5 system with three processors and we would like
to limit the maximum number of processors a multithread application is
allowed to use to two.

Is this possible at application level, or is it possible at user level
to limit the number of processors that the application or user is going
to use.

Thanks in advance,

Hajo Ehlers

2006-06-21, 1:22 pm

jmartin schrieb:

> Hi,
>
> I am working on a AIX 5 system with three processors and we would like
> to limit the maximum number of processors a multithread application is
> allowed to use to two.
>
> Is this possible at application level, or is it possible at user level
> to limit the number of processors that the application or user is going
> to use.


man wlm ( Work Load Manager )

The wsm has a nice interface for the work load manager ( wlm )

hth
Hajo

jmartin

2006-06-22, 7:25 am


Hi,

I have checked the WLM documentation and it seems that you can limit
the percentage of CPU that an application or user can use, but not the
number of processors that it can use. I have 3 processors but
specifying 66% or CPU usage doesn't assure that you are using 2
processors, I think.

Is there a way to limit the processors an application can use?

There is an application: LoadLeveler, anybody knows if it can be
configured to limit the number of processors an application or user can
use?

Thanks in advance,

Hajo Ehlers ha escrito:

> jmartin schrieb:
>
>
> man wlm ( Work Load Manager )
>
> The wsm has a nice interface for the work load manager ( wlm )
>
> hth
> Hajo


scott_doyland@johnlewis.co.uk

2006-06-22, 1:27 pm


jmartin wrote:[vbcol=seagreen]
> Hi,
>
> I have checked the WLM documentation and it seems that you can limit
> the percentage of CPU that an application or user can use, but not the
> number of processors that it can use. I have 3 processors but
> specifying 66% or CPU usage doesn't assure that you are using 2
> processors, I think.
>
> Is there a way to limit the processors an application can use?
>
> There is an application: LoadLeveler, anybody knows if it can be
> configured to limit the number of processors an application or user can
> use?
>
> Thanks in advance,
>
> Hajo Ehlers ha escrito:
>

Hi,

Depending on the AIX version and hardware you can disable a processor
completely.

Use the following procedure:

WARNING! The CPU can only be reenabled by rebooting!

List available processors:

$ bindprocessor -q
The available processors are: 0 1 2 3 4 5

Then use cpu_deallocate to switch one off:
cpu_deallocate requires a logical CPU number
Usage: cpu_deallocate logical_CPU_id [-P]

$ cpu_deallocate 5

Then enter the following:

$ chdev -a cpuguard=enable -l sys0
sys0 changed

And now list processors again:

$ bindprocessor -q
The available processors are: 0 1 2 3 4


I don't know what the -P flag does, so I suggest not using it (because
perhaps it means 'permanent'?)!!

Scott

jmartin

2006-06-22, 1:27 pm


Hi,

I don't want to deallocate a processor because that is for all the
applications, and we want to use them all for most applications like
oracle. The problem is that we have a licence in one application for
two processors and the machine has 3. We want to limit this only
application to two processors. Is that possible or we need to upgrade
the licence to three processors as the last chance?

Thanks in advance,

Hajo Ehlers

2006-06-23, 7:32 am

jmartin schrieb:

> Hi,
>
> I don't want to deallocate a processor because that is for all the
> applications, and we want to use them all for most applications like
> oracle. The problem is that we have a licence in one application for
> two processors and the machine has 3. We want to limit this only
> application to two processors. Is that possible or we need to upgrade
> the licence to three processors as the last chance?


Its not your last change. You should ask the software vendor that they
fix their software , so that the software uses only 2 Processors even
if a system has more.

In case the application can be run on 1 processor you might use the
bindprocessor command.
see
$ man bindprocessor
for details but it does will not help if the application will check for
the amount of processors.

In case you are running at least AIX 5.2 in an LPAR you just might
remove a CPU before you start your APP and then adding it back after
the application starts. But its more or less a work-around againt a
badly behaving application

hth
Hajo




b
Meaning its more less a software problem not a

Nigel

2006-06-23, 7:32 am

Use Workload Manager and the resource sets feature that will let you
move the processes to just 2 CPUs.
This will also let your processes move between the two CPUs i.e. load
balance.

Good starting whitepaper on WLM at
http://www-128.ibm.com/developerwor...ctical_WLM.html

jmartin

2006-06-23, 1:22 pm


Hi and thanks,

As you say the resource sets feature allows to assign two CPUs to a
process.
The link you provide is very interesting, and points to where to see
things in more detail.

I think the problem is solved,

Greetings,

Nigel ha escrito:

> Use Workload Manager and the resource sets feature that will let you
> move the processes to just 2 CPUs.
> This will also let your processes move between the two CPUs i.e. load
> balance.
>
> Good starting whitepaper on WLM at
> http://www-128.ibm.com/developerwor...ctical_WLM.html


Menno

2006-06-24, 7:28 am

On Thu, 22 Jun 2006 16:17:55 UTC, "jmartin"
<jorge.jose.martin@cgi.com> wrote:
>
> I don't want to deallocate a processor because that is for all the
> applications, and we want to use them all for most applications like
> oracle. The problem is that we have a licence in one application for
> two processors and the machine has 3. We want to limit this only
> application to two processors. Is that possible or we need to upgrade
> the licence to three processors as the last chance?


Ah, *licenses*. In my humble experience, manufacturers don't give a
toss about the number of processors you actually use. If your box has
64 processors, you will need 64 licenses, even if you are using it
only on one little u-LPAR that uses one tenth of a processor. So even
if you can guarantee that the app will only use two processors, that
doesn't help your license any.


--
/\(O_o)/\ Hot Rabbit on rabbit action!
/ / < > \ \ 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
Casper H.S. Dik

2006-06-24, 1:22 pm

"Menno" <flexor@xs4all.nl> writes:

>Ah, *licenses*. In my humble experience, manufacturers don't give a
>toss about the number of processors you actually use. If your box has
>64 processors, you will need 64 licenses, even if you are using it
>only on one little u-LPAR that uses one tenth of a processor. So even
>if you can guarantee that the app will only use two processors, that
>doesn't help your license any.


It very much depends on the vendor of the software and the
capabilities of the OS software and the system's hardware.

Typically, there's no problem getting vendors to accept hardware
partitioning (such as using a 16-CPU domain on a 72 CPU system);
more difficult is it when you use software partitioning.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Chris \Saundo\ Saunderson

2006-07-02, 7:24 pm

jmartin wrote:
> Hi,
>
> I have checked the WLM documentation and it seems that you can limit
> the percentage of CPU that an application or user can use, but not the
> number of processors that it can use. I have 3 processors but
> specifying 66% or CPU usage doesn't assure that you are using 2
> processors, I think.
>
> Is there a way to limit the processors an application can use?
>
> There is an application: LoadLeveler, anybody knows if it can be
> configured to limit the number of processors an application or user can
> use?
>
> Thanks in advance,
>


So let me see if I have this right: you have a single instance of AIX
that you are using. It has software installed on it that is
per-processor licensed. You have a 2 CPU license for one software
package, but you need all 3 CPUs available to run all of the software on
the image?

You're asking whether you can limit that piece of software inside that
running image of AIX to apparently only use 2CPUs?

The short answer is no. The longer answer depends really on whether you
have to run all the software inside the single instance of AIX. If you
don't, then something like a pair of DLPARs using WLM will likely do
what you want. You'll effectively end up licensing the 2 processor DLPAR
running your problem piece of software for less than 2 CPUs, but you'll
fit inside your parameters.

Chris
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com