From: denham@denham.zk3.dec.com (Jeffrey M. Denham)
Subject: Re: [Q] about system call .
Date: Fri, 28 Oct 1994 13:06:02 GMT [thread overview]
Message-ID: <1994Oct28.130602.3027@decvax.dec.com> (raw)
In-Reply-To: 38j8bd$nib@news.csie.nctu.edu.tw
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1960 bytes --]
In article <38j8bd$nib@news.csie.nctu.edu.tw>, Der@aho.cis.nctu.edu.tw (�w�í^��) writes:
|>Could someone help me ?
|>I have try some system call on osf/1
|>like:
|>
|>1.processor_set_create
|>kern_return_t processor_set_create(host_t HOST,
|> processor_set_t *NEW_SET,
|> proessor_set_name_t *NEW_NAME)
|>
|>2.processor_assign
|>kern_return_t processor_assign(processor_t PROCESSOR,
|> processor_set_t NEW_SET,
|> boolean_t WAIT)
|>
|>I don't know how to use those function.
|>What kind of value the HOST and PROCESSOR will be ?
|>Teach me how to use those functions or where can find some FAQs or examples .
If you're talking about DEC OSF/1, those Mach calls do not exist.
Something similar will be available in DEC OSF/1 V3.2 (now in field test):
int create_pset(void)
returns the ID of a new processor set
int assign_cpu_to_pset(long cpu, long pset_id, long flags)
assigns the specified cpu to the specified pset; flags can be
ANY_CPU, in which case "cpu" says how many cpus to assign.
int assign_pi_to_pset(pid_t *pid_list, long npids, long pset_id, long flags)
assigns npids PIDs in the PID list to the specified pset_id; flags
can be PSET_EXCLUSIVE, which give the assigned PIDs exclusive use
of the processors in the pset.
The Mach syscalls you ask about are indeed used to support these new library
routines, but their direct use is not encouraged or supported.
V3.2 of DEC OSF/1 also supports some new commands for the administration
of MP systems:
pset_create: create a processor set
pset_destroy: nuke it
pset_assign_cpu: populate it with some processors
pset_assign_pid: populate it with some processos
pset_info: find out about psets
psrinfo: find out about processors
psradm: start or stop processors
runon: bind a command to a processor or processor set (perhaps exclusively)
Jeff
-------------------------
Speaking about Digital, but not for it, etc.....
prev parent reply other threads:[~1994-10-28 13:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-25 15:30 [Q] about system call �w�í^��
1994-10-28 13:06 ` Jeffrey M. Denham [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox