Skip Menu |
 

This queue is for tickets about the Proc-ProcessTable CPAN distribution.

Report information
The Basics
Id: 2204
Status: resolved
Priority: 0/
Queue: Proc-ProcessTable

People
Owner: Nobody in particular
Requestors: Daniel.Brown [...] AscentialSoftware.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.38
Fixed in: (no value)

Attachments
aix.c.diff



MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Subject: pctmem problem on AIX
Content-Type: multipart/mixed; boundary="----------=_1047321414-21471-1"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1251
Download (untitled) / with headers
text/plain 1.2k
I use Proc-ProcessTable-0.38 on several platforms, but have found a problem during testing on AIX. The problem relates to the size of the Sysmem variable as declared in aix.h. My AIX test environment has 8GB of main memory, and Sysmem ends up being 0 from overflow. This results in the Perl pctmem entry being null for all processes. I was (I think) properly able to modify a couple things and 'make test' now reports a reasonable pctmem value instead of null. My diffs are below for aix.h and aix.c. (These should also be attached as separate files). ----------aix.h diff-------------- 4a5 Show quoted text
> #include <stdlib.h>
71c72 < static long Sysmem; --- Show quoted text
> static unsigned long long Sysmem;
---------end aix.h diff---------- ----------aix.c diff-------------- 26c26 < Sysmem = atol(obj->value); --- Show quoted text
> Sysmem = strtoull(obj->value, 0, 10);
---------end aix.c diff---------- If you can use this patch, great. If there's something wrong with this and you'd prefer not to put it in, I would be happy to make further modifications that might be incorporated if you have any suggestions. Additional info: Proc::ProcessTable version: 0.38 perl -v: This is perl, v5.6.1 built for aix uname -a: AIX mahe 1 5 000372FA4C00 Thanks. Dan Brown
Content-Type: application/octet-stream; name="aix.c.diff"
Content-Disposition: inline; filename="aix.c.diff"
Content-Transfer-Encoding: base64
Content-Length: 0


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.