This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: vmstat
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 4 Jul 2002 15:47:15 -0400
- Subject: Re: vmstat
- References: <OF9302AC86.0EB950DE-ON85256BE4.005579C2@isn.instinet.com> <00b901c21df9$1c9e3df0$0100a8c0@advent02> <20020627163750.GA27819@redhat.com> <010901c21dfa$de6d74e0$0100a8c0@advent02> <3D1B5A59.7090609@ece.gatech.edu> <3D248D26.6030404@netscape.net> <000b01c22393$305b4e10$0100a8c0@advent02>
- Reply-to: cygwin-apps at cygwin dot com
On Thu, Jul 04, 2002 at 08:44:19PM +0100, Chris January wrote:
>> >>>>>Hello Chris,
>> >>>>>
>> >>>>>Wednesday, July 03, 2002, 12:21:42 AM, you wrote:
>> >>>>>
>> >>>>>CJ> Will this package actually appear on the mirrors in future or are
>there
>> >>>>>
>> >>>>>CJ> issues I am not aware of preventing this from happening?
>> >>>>>
>> >>>>>Have you tried running the procps tools on current stock dll
>> >>>>>(1.3.12-1) ? For me most of them seem to just hang - top, procps,
>> >>>>>uptime, vmstat, w... havent tried the others.
>> >>>>>
>> >>>>>Maybe this problem corelates with the fact that some of the /proc
>> >>>>>files no longer contain information - see below:
>> >>>>>Perhaps it has to do something with your last patch. I don't have
>time
>> >>>>>to look at this right now though. I can send strace if you want.
>> >>>>>
>> >>>>>The procps tools I'm using were downloaded from your site following
>> >>>>>their anouncement on cygwin-apps.
>> >>>>>
>> >>>>This is caused by the default alignment changing from 4 bytes to 8
>bytes, as
>> >>>>
>> >>>>far as i can tell. Basically the size of structure passed to the NT
>system
>> >>>>
>> >>>>calls is not the size of structure the call expects, so it fails and
>the
>> >>>>program (top, uptime, etc.) gets stuck in a loop trying to read data.
>> >>>>I did add macros to ntdll.h to make sure the structures were aligned
>> >>>>correctly, but then Chris changed the alignment back so I removed
>them. I
>> >>>>
>> >>>>shall let Chris comment on this.
>> >>>>
>> >>>Huh? What alignments have I changed? Pointers please.
>> >>>
>> >>I suspect that this must have something to do with binutils. I changed
>the
>> >>
>> >>alignments at David Billinghurst's suggestion to accommodate java. If
>> >>this is causing problems, however, I'll change them back.
>> >>
>> >That's what I was referring to.
>> >
>> Is it possible for you to work around this? I believe the alignment
>> change is necessary for a working libgcj/gcj suite. It would be nice to
>> have both working properly...
>I can, but it's messy and I don't know how many other windows structures are
>affected.
Can you give an example of how you fixed things in this case?
cgf