delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/31/07:14:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,TW_VM,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4D1DC9B4.9010409@laposte.net>
Date: Fri, 31 Dec 2010 13:16:52 +0100
From: Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: uptime not reporting CPU usage on Windows 7 (Possibly only when running in VMWare)
References: <ifhu4n$kl5$1 AT dough DOT gmane DOT org> <4D1CA8C0 DOT 9020806 AT redhat DOT com>
In-Reply-To: <4D1CA8C0.9020806@redhat.com>
X-me-spamlevel: not-spam
X-me-spamrating: 35.599998
X-me-spamcause: OK, (-110)(0000)gggruggvucftvghtrhhoucdtuddrfedtledrvdejucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecuucdlqddutddtmdenlhhinhhugiculddquddtmd
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Le 30/12/2010 16:44, Eric Blake a =E9crit :
> On 12/30/2010 05:32 AM, Andrew DeFaria wrote:
>>  Whenever I run uptime I see the load avgs all as 0.00:
>>
>> $ uptime
>>  07:29:15 up 1 day, 20:22,  3 users,  load average: 0.00, 0.00, 0.00
>>
>> Note that I'm running Cygwin 1.7.7 on Windows 7. Note that this is
>> Windows 7 running in a VMWare VM on my Ubuntu laptop. I don't have
>> Windows anymore - I only have Windows in a VM. The Ubuntu laptop running
>> the VM reports busyness via uptime on the Linux side and I can see
>> vmplayer taking up CPU. But it's as if no CPU usage or load is present
>> in the Windows 7 guest at all.
>>
>> Can somebody confirm or deny this?
>=20
> Windows does not provide this information, therefore cygwin1.dll cannot
> provide it in the syscalls that uptime uses to determine this information.
>=20

is that may help ? the gg keys where : windows avenrun :-)

http://www.opensource.apple.com/source/X11apps/X11apps-13/xload/xload-X11R7=
.0-1.0.1/get_load.c

also the cpu load may be get from wmi :

http://www.cacti.net/downloads/scripts/scripts4nt.zip

in short :

wmic cpu get LoadPercentage

Regards,

Cyrille Lefevre
--=20
mailto:Cyrille DOT Lefevre-lists AT laposte DOT net



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019