perl and shared memory

Discussion in 'Perl Misc' started by Alex Hart, Apr 6, 2005.

  1. Alex Hart

    Alex Hart Guest

    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
     
    Alex Hart, Apr 6, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DJ Dev
    Replies:
    3
    Views:
    16,809
    Gandalf
    Feb 8, 2004
  2. Joe Fallon
    Replies:
    3
    Views:
    980
    =?Utf-8?B?Z3V5?=
    Jul 16, 2004
  3. ben
    Replies:
    3
    Views:
    706
    Kevin Spencer
    Nov 15, 2004
  4. tshad
    Replies:
    11
    Views:
    1,082
    tshad
    May 27, 2005
  5. HmFireBall
    Replies:
    2
    Views:
    688
    HmFireBall
    Jan 2, 2006
  6. Sune
    Replies:
    14
    Views:
    1,182
    Chris Thomasson
    Aug 26, 2007
  7. Sune
    Replies:
    5
    Views:
    665
    Darko
    Jul 13, 2007
  8. Chris
    Replies:
    1
    Views:
    234
Loading...