This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, 24 Jul 2002, Jim George wrote: > On Wed, 24 Jul 2002 08:41:05 +0100 (BST) > John Morrison <john.r.morrison@ntlworld.com> wrote: > > > Does cat /proc/stat | grep cpu give you the information you want? > > > > J. > > > > On Wed, 24 Jul 2002, Dylan Cuthbert wrote: > > > 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. > > > > > > Regards > > > > > > --------------------------------- > > > Q-Games, Dylan Cuthbert. > > > http://www.q-games.com > Under Linux we had 'top'. Is there an equivalent or something that > someone is working on? > Jim Jim, I did a google search on "linux top cpu load". Here's a top from the first match: http://www.groupsys.com/topsrc/top-3.5beta9.tar.gz It took about an hour to make it compile and run under cygwin 1.3.12-2 on Win2k. The patch is attached. Note: I just compiled and ran the code; I haven't verified the correctness of the output. It seemed to work without crashing, and the output looked plausible. I also haven't tested it on any system other than mine (above). Try it at your own risk. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! It took the computational power of three Commodore 64s to fly to the moon. It takes a 486 to run Windows 95. Something is wrong here. -- SC sig file
Attachment:
top-3.5beta9-cygwin-patch
Description: Text document
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |