I think this is going to wind up being machine dependant.
Solaris
Solaris::Procfs -- reads the /proc filesystem
Linux
GTop -- interfaces with libgtop (which reads the /proc filesystem)
windows
Win32::SystemInfo
There are almost certainly others. Most Unix boxen store this info in
the /proc filesystem (however, they do so in completely different ways),
so look for modules that read the /proc for your system.
On 19 Jun 2001 11:45:09 -0400, Chris Hedemark wrote:
> Howdy,
>
> I'm tearing through my O'Reilly books and the CPAN search trying to find a
> module or built-in function call that will let me get statistics back from
> the system regarding memory. I'm trying to find:
>
> 1) real memory bytes total
> 2) real memory bytes used
> 3) real memory bytes free
>
> As a secondary interest I'd like to do the same stats but for the swap
> file(s).
>
> Can anyone here point me in the right direction please?
>
> Thanks.
>
> Chris Hedemark - Hillsborough, NC
> http://yonderway.com
>
>
>
--
Today is Setting Orange, the 24th day of Confusion in the YOLD 3167
Grudnuk demand sustenance!