perl and shared memory

A

Alex Hart

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top