delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 21:46:19 +0100 |
Message-ID: | <004201c234e5$7ec72250$0100a8c0@atomice.net> |
From: | "Chris January" <chris AT atomice DOT net> |
To: | <cygwin AT cygwin DOT com> |
References: | <31CB870AD5AA384BB5419025DD9F7A84104345 AT dailymail DOT cfs DOT ac DOT uk> |
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 21:46:19 +0100 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
> 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. The values seem to be a factor of 10 out. This is because Linux uses a value of 100 for HZ, whereas Cygwin has this defined as 1000. The /proc implementation uses 100 and ignores the Cygwin value. 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |