Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Virtual Memory Usage

by tirwhan (Abbot)
on Feb 06, 2006 at 23:07 UTC ( #528370=note: print w/replies, xml ) Need Help??


in reply to Virtual Memory Usage

You didn't specify, but if you're doing this on Linux you can use /proc/self/stat (see man proc for the details).

open my $stat,"<","/proc/self/stat" or die "Can't open /proc/self/stat +"; my ($vsz,$rss)=(split ' ',<$stat>)[22,23]; print "$vsz - $rss\n"

Or you could use the ps command or Unix::Process


All dogma is stupid.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://528370]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2023-12-05 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (27 votes). Check out past polls.

    Notices?