Skip Menu |

This queue is for tickets about the Process-MaxSize CPAN distribution.

Report information
The Basics
Id: 103282
Status: new
Priority: 0/
Queue: Process-MaxSize

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.04
Fixed in: (no value)



Subject: Alternative process_size impl would work on freebsd
https://metacpan.org/source/MSCHILLI/Process-MaxSize-0.04/MaxSize.pm#L74 contains inactive code with a claim that it "doesn't work on freebsd". However, I checked on a freebsd9 system, and this code seems to work. If the ->size call is replaced by a ->rss call, then the returned number is quite close to the ps numbers (except bytes vs. kilobytes). So at least the comment seems to be wrong. I also wonder if this alternative implementation could already be part of Process::MaxSize in an inlined subclass --- the source code would stay approximately the same size and the user could choose between the ps and the Proc::ProcessTable implementation.