Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > perl and shared memory

Thread Tools

perl and shared memory

Alex Hart
Posts: n/a
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:

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid memory corruption in shared memory used by several processes? Sune C Programming 14 08-26-2007 03:57 AM
perl variables allocated in shared memory - feasible/possible/done already? Chris Perl Misc 1 02-03-2007 06:12 PM
How far are "Shared" objects and properties shared? HmFireBall ASP .Net 2 01-02-2006 01:02 PM
Shared, why not a 'Local Shared' (re: Session and ViewState dislike) ben ASP .Net 3 11-15-2004 03:04 PM
Shared Public Variables and Shared Methods Joe Fallon ASP .Net 3 07-16-2004 07:11 AM