Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Virtual Memory Usage

by Qiang (Friar)
on Feb 09, 2006 at 05:50 UTC ( #529003=note: print w/replies, xml ) Need Help??


in reply to Virtual Memory Usage

there was this article on memory usage on slashdot few days ago. good read.

to sum up the article, in linux, application uses shared libraries and the shared libraries are being shared among other applications. but it is still only one copy of shared library. ps aux gives you the memory usage on the process itself and the shared library too.

so, try run ps aux to grab your perl proc id.then run pmap -d Proc_ID. the mapped: result at the bottom line is the total memory usage including shared libraries. writeable/private is the one without counting the shared libraries.

my sshd pmap output:

mapped: 3652K writeable/private: 804K shared: 0K

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2023-12-02 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (16 votes). Check out past polls.

    Notices?