Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, is there a simple way to get back the CPU and memory usage on a NT or W2K machine? I looked at Win32::Perflib but got lost pretty fast....

Replies are listed 'Best First'.
Re: How to find out the load on a PC?
by tachyon (Chancellor) on Mar 15, 2002 at 20:14 UTC

    There are plenty of simple ways to get the information using pre written software (not generally perl). Google search for "cpu memory usage winNT"

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      I did try the mem command with various options, but it just says there are 650K bytes of memory available in the kernel, no matter what machine I run it on. Not very useful. I looked through the google search, but everything is graphically based. Is there a command-line tool that returns text data?
Re: How to find out the load on a PC?
by thunders (Priest) on Mar 15, 2002 at 21:05 UTC
    pslist from the free Pstools suite, does what you describe for all running processes. Are you looking for the total memory usage for all processes put together?