Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Unix System Command
Date: Wed, 21 Aug 2002 19:58:58 GMT	[thread overview]
Message-ID: <6iS89.36$3%7.760930@news.cpqcorp.net> (raw)
In-Reply-To: ajubup$cnt1$1@murrow.it.wsu.edu

In article <ajubup$cnt1$1@murrow.it.wsu.edu>, "Xin Ai" <xai@mail.wsu.edu> 
>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."
><alan@nabeth.cxo.cpqcorp.net> wrote in message
>news:Kcx89.29$x47.828576@news.cpqcorp.net...
>> In article <ajttr2$c9g6$1@murrow.it.wsu.edu>, "Xin Ai" <xai@mail.wsu.edu>
>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)



  reply	other threads:[~2002-08-21 19:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-20 17:23 Unix System Command Xin Ai
2002-08-20 18:23 ` Marre des Spameurs qui prennent les add dans les news [SauroN]
2002-08-20 19:59 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2002-08-20 21:24   ` Xin Ai
2002-08-21 19:58     ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
2002-08-21  8:45 ` Ralf Eichmann
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