Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-WM-Posted-At: avacado.atomice.net; Fri, 26 Jul 02 19:15:19 +0100 Message-ID: <00f701c234d0$6611ce00$0100a8c0@atomice.net> From: "Chris January" To: References: Subject: Re: a way to read the current cpu load from the shell or via a cmdline utility in cygwin? Date: Fri, 26 Jul 2002 19:15:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > Hi there, > > I've searched through the archives but can't seem to find any mention of > this, is there a way to display the cpu load via a shell utility? > > If not, can someone point me to the posix function call (if it exists) so I > can write a little utility. I want to do some load balanced compiles across > several machines by spawning the compile across the network via "make -j", > and a wrapper for gcc, then use rsh (ssh or rexec) and network sharing to do > the compile. The thing is I only want to use machines whose loads are low. > > Of course, if a tool for this kind of thing already exists, then please give > me a pointer. The procps tools from Linux have been ported to Cygwin and are available here: http://www.doc.ic.ac.uk/~ccj00/procps-010801/ Hopefully this should be included as an official package one day (who knows when?). If you have found a version of top that doesn't work with Cygwin, than can you please e-mail it to me via private e-mail. Cygwin's /proc implementation is design to be as compatible as possible with Linux's. Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/