From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,bf035c88daa9bfde X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-08-20 14:40:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!news.pnw-gigapop.net!news.wa-k20.net!news.wsu.edu!not-for-mail From: "Xin Ai" Newsgroups: comp.unix.tru64 Subject: Re: Unix System Command Date: Tue, 20 Aug 2002 14:24:25 -0700 Organization: Washington State University Message-ID: References: NNTP-Posting-Host: mm63.mme.wsu.edu X-Trace: murrow.it.wsu.edu 1029878553 417697 134.121.73.63 (20 Aug 2002 21:22:33 GMT) X-Complaints-To: abuse@wsu.edu NNTP-Posting-Date: Tue, 20 Aug 2002 21:22:33 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.unix.tru64:8458 The "practically idle" situation is what I am really concerning on. I am running a parallel Fortan code (using openMP) on a public supercomputer. Sometimes the performance of the parallel code is even much worse than the sequential code if the computer is busy. So I am wondering if I can use some Unix system command to detect how many CPUs are really available, then I can let the parallel code to run with the maximum number of CPUs it can be. Thanks "Alan Rollow - Dr. File System's Home for Wayward Inodes." wrote in message news:Kcx89.29$x47.828576@news.cpqcorp.net... > In article , "Xin Ai" writes: > > >Is there an unix system command that can be used to check out how many > >processors are available on a supercomputer at a certain time? > > Depends on how you define "available". As someone else noted, you > can use "sizer -p" to get the number. You can use psrinfo(1) to > the state of each CPU. If online counts as available, this may > be more useful to you than sizer. If you want available to mean > "practically idle" that gets harder. > > > >Thanks > > > > > > > -- > Alan Rollow alan@nabeth.cxo.cpqcorp.net (previously .dec.com) >