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.