Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   perl and shared memory (http://www.velocityreviews.com/forums/t891674-perl-and-shared-memory.html)

Alex Hart 04-06-2005 06:02 AM

perl and shared memory
 
I just can't get my head around shared memory.

I am writing a mail server in perl which uses Mail::SpamAssassin.
Spamassassin adds about 9Mb to the memory size of the server. The
question is, am I duplicating this 9Mb each time I fork a new server?
Or does perl use the same memory for both processes?

This is a partial output from running top:

SIZE RSS SHARE COMMAND
15888 15M 14916 SMTP Server

Since nearly all the memory used by the server is in the share column,
does that mean that the overhead in forking a process is very low? I'm
skeptical that each new server requires less than 1Mb of memory. Will
my performance increase if I use a separate SpamAssassin server, or is
this as efficient as it gets?

- Alex Hart



All times are GMT. The time now is 12:29 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57