Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: gigantic daemons

by esh (Pilgrim)
on Sep 03, 2003 at 06:50 UTC ( [id://288525]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: gigantic daemons
in thread gigantic daemons

I gather that only one copy of perl is actually loaded, am I right?
Yes, one copy of the perl compiler/interpreter and probably one copy of your Perl source code (unless you "require", "do", or other similar things at run time).

Could it be I am misleading myself about actual memory comsumption?
Yes, it is possible that most of the parent/child memory listed by ps is shared amongst them.

I tend to use the "top" command to watch the shared memory usage. It seems that ps should have an option to show shared memory, but I couldn't get it to work right off.

What really matters is how much free memory you have on the system when everything is running. Try a before and after snapshot using something like "free" and make sure to look at the free momory +/- buffers/cache.

-- Eric Hammond

Replies are listed 'Best First'.
Re: Re: Re: Re: gigantic daemons
by Anonymous Monk on Sep 03, 2003 at 07:14 UTC
    Thanks, Eric. I seem to get similar results with "free" and "top". I do, indeed, "use" several modules in the daemons, which must explain why they aren't shared as I think they should be. (Even so, 5.6MB seems excessive...). Thanks very much for the help.
      use does its magic at compile time. If the daemons are loaded before the fork, then they should be shared. Well, as much as the main script, anyway.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found