Is there a CPAN Perl module which provides total/used/free memory (like vmstat
does) on a host without running a command line through a system()
call to get the info?
Ideally it should be cross-platform (Linux and Solaris) though please provide Linux or Solaris-only ones as well.
Looks like Sys::MemInfo
is what I needed.
It is implemented in XS, using <sys/sysinfo.h>
for Linux and <sys/stat.h>
/ <sys/swap.h>
for Solaris.
Try the Sys::Statistics::Linux distrubition for linux.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With