* Locking Processes Into CPUs on AXP machines
@ 1995-04-25 4:00 IanMaclure
1995-04-26 4:00 ` Peter Mayne
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: IanMaclure @ 1995-04-25 4:00 UTC (permalink / raw)
On a multi-processor AXP ( 2100? ) ( under OpenVMS and OSF1 ) is
it possible to specify that a given process be loaded into a
predetermined CPU and remain there for the life of the process.
I am definitely not interested in SMP as the processes are NOT
in general symmetric.
IBM
--
################ No Times Like The Maritimes, Eh! ######################
# IBM aka # Ian_Maclure@QMGATE.arc.nasa.gov (desk) #
# Ian B MacLure # maclure@(remulak/eos).arc.nasa.gov (currently) #
########## Opinions expressed here are mine, mine, mine. ###############
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Locking Processes Into CPUs on AXP machines
1995-04-25 4:00 Locking Processes Into CPUs on AXP machines IanMaclure
@ 1995-04-26 4:00 ` Peter Mayne
1995-04-27 4:00 ` Vikas Sontakke
1995-04-28 4:00 ` Reece Hart
2 siblings, 0 replies; 5+ messages in thread
From: Peter Mayne @ 1995-04-26 4:00 UTC (permalink / raw)
In article <1995Apr25.175938.24679@eos.arc.nasa.gov>,
maclure@eos.arc.nasa.gov (IanMaclure) wrote:
> On a multi-processor AXP ( 2100? ) ( under OpenVMS and OSF1 ) is
> it possible to specify that a given process be loaded into a
> predetermined CPU and remain there for the life of the process.
> I am definitely not interested in SMP as the processes are NOT
> in general symmetric.
I'm not sure what you mean by processes not being symmetric, but
one of the benefits of SMP is being able to dynamically schedule a
process on any processor.
However, for Digital UNIX:
runon(1)
SYNOPSIS
runon cpu_num command [command_args]
DESCRIPTION
The runon utility runs command on CPU number cpu_num. The command_args
parameter indicates flags or arguments, if any, that are specified for com-
mand. All threads created by command will inherit the CPU binding cpu_num.
This includes threads created as the result of a fork.
bind_to_cpu(3)
SYNOPSIS
#include <sys/types.h>
#include <sys/resource.h>
int bind_to_cpu(
pid_t pid,
unsigned long cpu_mask ,
unsigned long flag );
DESCRIPTION
Upon return from bind_to_cpu, all threads of the target pid are running on
the target CPU. Bound threads are not eligible for execution on any other
CPU. You release CPU binding by invoking bind_to_cpu with a cpu_mask of
zero.
And if you use threads:
pthread_bind_to_cpu_np(3)
SYNOPSIS
#include <pthread.h>
int pthread_bind_to_cpu_np(
pthread_t *thread ,
unsigned long *cpu_mask );
DESCRIPTION
This routine binds a thread to a particular processor on a multiprocessor
system. Once bound, a thread will only run on the specified CPU until the
thread terminates, or the binding is changed.
Specify a cpu_mask of 0 to allow a previously bound thread to execute on
any available CPU.
PJDM
--
Peter Mayne | My statements, not Digital's.
Digital Equipment Corporation | Author of NTj.
Canberra, ACT, Australia | "Shine on, you crazy Alpha."
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Locking Processes Into CPUs on AXP machines
1995-04-25 4:00 Locking Processes Into CPUs on AXP machines IanMaclure
1995-04-26 4:00 ` Peter Mayne
@ 1995-04-27 4:00 ` Vikas Sontakke
1995-04-28 4:00 ` Reece Hart
2 siblings, 0 replies; 5+ messages in thread
From: Vikas Sontakke @ 1995-04-27 4:00 UTC (permalink / raw)
IanMaclure (maclure@eos.arc.nasa.gov) wrote:
: On a multi-processor AXP ( 2100? ) ( under OpenVMS and OSF1 ) is
: it possible to specify that a given process be loaded into a
: predetermined CPU and remain there for the life of the process.
: I am definitely not interested in SMP as the processes are NOT
: in general symmetric.
: IBM
On OSF/1, try man 4 processor_sets
or even better try man 3 bind_to_cpu
Upon return from bind_to_cpu, all threads of the target pid are running on
the target CPU. Bound threads are not eligible for execution on any other
CPU. You release CPU binding by invoking bind_to_cpu with a cpu_mask of
zero.
I am not sure if this was available in V3.0 of OSF/1 but it is there in
the latest release of it.
--
Vikas Sontakke sontakke@helix.enet.dec.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Locking Processes Into CPUs on AXP machines
1995-04-25 4:00 Locking Processes Into CPUs on AXP machines IanMaclure
1995-04-26 4:00 ` Peter Mayne
1995-04-27 4:00 ` Vikas Sontakke
@ 1995-04-28 4:00 ` Reece Hart
1995-04-29 4:00 ` Phillip Helbig
2 siblings, 1 reply; 5+ messages in thread
From: Reece Hart @ 1995-04-28 4:00 UTC (permalink / raw)
In comp.sys.dec you write:
>... is it possible to specify that a given process be loaded into a
>predetermined CPU and remain there for the life of the process.
Yes. See the man pages for runon and mpadmin.
>IBM
HAL
--
Reece Kimball Hart | Internet: reece@dasher.wustl.edu
Biophysics & Biochemistry, Box 8231 | WWW URL: http://dasher.wustl.edu/~reece/
Washington Univ. School of Medicine | Phone: (314) 362-4198 (lab)
660 South Euclid | -7183 (fax)
St. Louis, Missouri 63110 (USA) | PGP public key available by finger & WWW
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Locking Processes Into CPUs on AXP machines
1995-04-28 4:00 ` Reece Hart
@ 1995-04-29 4:00 ` Phillip Helbig
0 siblings, 0 replies; 5+ messages in thread
From: Phillip Helbig @ 1995-04-29 4:00 UTC (permalink / raw)
In <3npsn6$jbl@cerberus-138.wustl.edu> reece@dasher.wustl.edu (Reece Hart) writes:
>In comp.sys.dec you write:
>>... is it possible to specify that a given process be loaded into a
>>predetermined CPU and remain there for the life of the process.
>Yes. See the man pages for runon and mpadmin.
>>IBM
>HAL
WNT
VMS
or VMS is to WNT as HAL is to IBM!?!
>--
>Reece Kimball Hart | Internet: reece@dasher.wustl.edu
>Biophysics & Biochemistry, Box 8231 | WWW URL: http://dasher.wustl.edu/~reece/
>Washington Univ. School of Medicine | Phone: (314) 362-4198 (lab)
>660 South Euclid | -7183 (fax)
>St. Louis, Missouri 63110 (USA) | PGP public key available by finger & WWW
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1995-04-29 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-25 4:00 Locking Processes Into CPUs on AXP machines IanMaclure
1995-04-26 4:00 ` Peter Mayne
1995-04-27 4:00 ` Vikas Sontakke
1995-04-28 4:00 ` Reece Hart
1995-04-29 4:00 ` Phillip Helbig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox