From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21936 invoked by alias); 25 Jul 2002 13:34:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 21924 invoked from network); 25 Jul 2002 13:34:32 -0000 Received: from unknown (HELO probity.mcc.ac.uk) (130.88.200.94) by sources.redhat.com with SMTP; 25 Jul 2002 13:34:32 -0000 Received: from gerhayn.mcc.ac.uk ([130.88.200.48]) by probity.mcc.ac.uk with esmtp (Exim 2.05 #7) id 17Xil6-0008aM-00 for cygwin@cygwin.com; Thu, 25 Jul 2002 14:34:24 +0100 Received: from aca-vnt.mcc.ac.uk ([130.88.201.150] helo=acavnt) by gerhayn.mcc.ac.uk with asmtp (TLSv1:RC4-MD5:128) (Exim 4.04) id 17Xil6-0008pG-00 for cygwin@cygwin.com; Thu, 25 Jul 2002 14:34:24 +0100 From: "Tony Arnold" To: Subject: RE: a way to read the current cpu load from the shell or via a cmdline utility in cygwin? Date: Thu, 25 Jul 2002 08:54:00 -0000 Organization: University of Manchester Message-ID: <31CB870AD5AA384BB5419025DD9F7A84104345@dailymail.cfs.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 In-reply-to: Importance: Normal X-Authenticated-Sender: Anthony C Arnold from aca-vnt.mcc.ac.uk (acavnt) [130.88.201.150] X-Authenticated-From: tony.arnold@man.ac.uk X-Scanner: exiscan *17Xil6-0008aM-00*MRICZmfzEL6* (Manchester Computing, University of Manchester) X-SW-Source: 2002-07/txt/msg02001.txt.bz2 Igor, > 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. Thanks for this, it's a good start to getting top working under Cygwin. My question is that when you run the Configure script what do give as the 'appropriate module' for the machine? I've used 'linux' but I wonder if there is a better option, or whether we should invent a Cygwin machine definition? Secondly, when it runs, I'm not convinced the figures are correct! For example, my setiathome process should show almost 100% cpu utilisation, but it shows 0%! Is this a refelction of my choice above, or problems with the /proc file system infotmation? Hints and tips on this much appreciated. Regards, Tony. -- Tony Arnold, Deputy to the Head of COS Division, Manchester Computing, University of Manchester, Oxford Road, Manchester M13 9PL. T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039 E-mail: tony.arnold@man.ac.uk, Home: http://www.man.ac.uk/Tony.Arnold -- 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/