From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,f3d3f1a2443183f6 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-28 08:29:53 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!caen!crl.dec.com!crl.dec.com!decvax.dec.com!denham From: denham@denham.zk3.dec.com (Jeffrey M. Denham) Subject: Re: [Q] about system call . Message-ID: <1994Oct28.130602.3027@decvax.dec.com> Sender: usenet@decvax.dec.com (Usenet News System) Nntp-Posting-Host: denham.zk3.dec.com Reply-To: denham@zk3.dec.com (Jeffrey M. Denham) Organization: Digital Equipment Corporation X-Newsreader: mxrn 6.18-5 References: <38j8bd$nib@news.csie.nctu.edu.tw> Date: Fri, 28 Oct 1994 13:06:02 GMT 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.....