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-21 12:52:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Newsgroups: comp.unix.tru64 From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world References: Reply-To: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Unix System Command Message-ID: <6iS89.36$3%7.760930@news.cpqcorp.net> Date: Wed, 21 Aug 2002 19:58:58 GMT NNTP-Posting-Host: 16.112.5.128 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1029959938 16.112.5.128 (Wed, 21 Aug 2002 12:58:58 PDT) NNTP-Posting-Date: Wed, 21 Aug 2002 12:58:58 PDT Organization: Compaq, part of the new hp Xref: archiver1.google.com comp.unix.tru64:8473 In article , "Xin Ai" >The "practically idle" situation is what I am really concerning on. > [ remainder deleted for brevity... ] I > >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. There are a number of ways to look at the current load on each CPU, though vmstat and iostat aren't among them. There is a program called cpuinfo that is part of the one of the programming example subsets, that displays the per-CPU data graphically. Monitor will display it via Curses. Collect, mostly likely collects CPU data per-CPU, so it probably displays it as well. I have a recollection of a dbx(1) command that can be used on the kernel to print the per- CPU stats. The tuning guide might offer a hint. The underlying information used by these problems is available using either table(2) or getsysinfo(2) (I don't recall which). The per-CPU load data is stored as the number of soft clock ticks spent in each of the different modes since the system booted; user mode, nice, kernel, wait and idle. A custom program to collect it and display it in some desired format be non-trivial, but not hard. Especially since the source to cpuinfo is part of the subset. The Monitor distribution also include sources. >> >Thanks -- Alan Rollow alan@nabeth.cxo.cpqcorp.net (previously .dec.com)