Article View: comp.sys.transputer
Article #1050Re: Monitoring CPU Load?
From: Steven Ericsson Zenith
Date: Wed, 17 Oct 1990 21:48
Date: Wed, 17 Oct 1990 21:48
34 lines
1814 bytes
1814 bytes
In article <1990Oct17.110318.9927@specialix.co.uk>, iann@specialix.co.uk
(Ian Nandhra) writes:
> dario@techunix.BITNET (Dario Ringach) writes:
> >Is there any way to monitor the percent of usage of a
> >Transputer by running an OCCCAM process in PAR-rallel
> >with an application? Thanks. -Dario
>
>
> A monitoring process could be written to examine the process
> queue[s] and to determine how many processes are waiting to run
> (and being prevented from doing so by this monitoring process).
> [...]
Sheesh, that's tougher than it need be. Hossein and I used to just sit
a process on a v.short timer and allow it to maintain a counter.
TIMER t:
WHILE forever
SEQ
t ? AFTER zip.nada
c := c + 1
This process will now effectively provide a count which represents the
idle time on the processor - since it'll keep geting rescheduled if the
processor is idle.
Steven
--
Steven Ericsson Zenith * email:
zenith@cs.yale.edu
Fax: (203) 466 2768 | voice: (203) 466 2587
"All see beauty as beauty only because they see ugliness" LaoTzu
Yale University Dept of Computer Science 51 Prospect St New Haven CT
06520 USA
Technical Details
Message-ID:
<1990Oct17.174800@cs.yale.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cs.yale.edu!zenith-stevenReferences:
<9801@discus.technion.ac.il> <1990Oct17.110318.9927@specialix.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cs.yale.edu!zenith-steven From: zenith-steven@cs.yale.edu (Steven Ericsson Zenith) Newsgroups: comp.sys.transputer Subject: Re: Monitoring CPU Load? Message-ID: <1990Oct17.174800@cs.yale.edu> Date: 17 Oct 90 21:48:00 GMT References: <9801@discus.technion.ac.il> <1990Oct17.110318.9927@specialix.co.uk> Sender: news@cs.yale.edu Reply-To: zenith-steven@cs.yale.edu (Steven Ericsson Zenith) Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 34 Nntp-Posting-Host: king.systemsy.cs.yale.edu