Skip Menu |

This queue is for tickets about the Sys-Statistics-Linux CPAN distribution.

Report information
The Basics
Id: 39451
Status: resolved
Priority: 0/
Queue: Sys-Statistics-Linux

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.37
Fixed in: (no value)



Subject: MemStats.pm "inactive" not available in 2.4.21-51.EL, Failed test (t/040-memstat.t at line 47)
Hello and thanks for Sys::Statistics::Linux, I'm getting the following test case failure: not ok 15 - checking memstats inactive Failed test (t/040-memstat.t at line 47) Using kernel: cat /proc/sys/kernel/osrelease 2.4.21-51.EL With a meminfo file that looks like: cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 1313763328 1159131136 154632192 0 200097792 472494080 Swap: 735305728 302223360 433082368 MemTotal: 1282972 kB MemFree: 151008 kB MemShared: 0 kB Buffers: 195408 kB Cached: 397832 kB SwapCached: 63588 kB Active: 896192 kB ActiveAnon: 478036 kB ActiveCache: 418156 kB Inact_dirty: 138632 kB Inact_laundry: 35520 kB Inact_clean: 7544 kB Inact_target: 215576 kB HighTotal: 393196 kB HighFree: 49080 kB LowTotal: 889776 kB LowFree: 101928 kB SwapTotal: 718072 kB SwapFree: 422932 kB CommitLimit: 1359556 kB Committed_AS: 1548588 kB HugePages_Total: 0 HugePages_Free: 0 Hugepagesize: 4096 kB ( note - no Inactive, but 4 Inact_* entries ) It's RedHat ES3, I found the following docs that might be useful: http://www.redhat.com/advice/tips/meminfo.html Cheers, Peter (Stig) Edwards
Hi Peter, thanks a lot for your report! I fix this issue asap - I think at monday :-) Cheers, Jonny
Hello Jonny, Thanks for the response. I wondered in what kernel version the change happened. I found: http://www.uwsg.iu.edu/hypermail/linux/kernel/0312.2/0160.html http://www.linuxhq.com/kernel/v2.4/10/fs/proc/proc_misc.c and from looking at fs/proc/proc_misc.c I think "Inactive" was introduced and "Inact_*" removed in 2.4.10. On the RHEL3 host I'm on the osrelease file has "2.4.21-51.EL". Hope this helps. Cheers, Peter (Stig) Edwards
Hi Peter, version 0.39_01 is uploaded. If the developer version is available on CPAN you can install it with #> cpan -i BLOONIX/Sys-Statistics-Linux-0.39_01.tar.gz Please run your tests and give me a feedback. If the new version runs without errors then I can upload a full version. Cheers, Jonny
Thank you very much. The new version runs without errors.