www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/09/04:31:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 9 Jun 2009 10:31:15 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Cannot read /proc/stat
Message-ID: <20090609083115.GB25832@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4A2D3C62 DOT 40408 AT users DOT sourceforge DOT net> <20090608171454 DOT GA25642 AT calimero DOT vinschen DOT de> <4A2D4F87 DOT 1090407 AT users DOT sourceforge DOT net>
MIME-Version: 1.0
In-Reply-To: <4A2D4F87.1090407@users.sourceforge.net>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Jun  8 12:51, Yaakov S wrote:
> On 08/06/2009 12:14, Corinna Vinschen wrote:
>> Confirmed.  The reason is that a datastructure on the NT level has
>> another size on 64 bit systems, and the WOW64 layer doesn't translate
>> the structure into the 32 bit format.  The function is unsupported, so
>> that makes sort of sense.  I'll create another solution using the
>> official function for to fetch that information.  Unfortunaltey it
>> doesn't exist on NT4, so I have to sp3cial case that(*)
>
> Thanks.

This is fixed in -49.  Note, however, that not all information in
/proc/stat is available on 64 bit machines.  Some of the information
printed in /proc/stat, namely the swap_in/swap_out pages, require access
to the SystemPerformanceInformation category in a call to
NtQuerySystemInformation.  The structure returned by this call is also
different on 64 bit systems, even when running under WOW64.  The
SYSTEM_PERFORMANCE_INFORMATION structure was already undocumented on 32
bit systems, and on 64 bit systems it's even more undocumented, if
that's possible :)  Unfortunately, to date there's no official
replacement function which provides the page read/write count.  So, on
64 bit systems, this information is set to 0 in /proc/stat.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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