[Mimedefang] Embedded Perl problems
Lucas Albers
admin at cs.montana.edu
Fri Mar 19 18:45:34 EST 2004
Josh Kelley said:
> I'm trying to get the multiplexor's embedded Perl mode to work, since
> messages on the mailing list indicated that it would save a lot of
> memory, and our mail server (running Red Hat Enterprise Linux 3) is a
> bit limited on memory.
>
> First, a minor point: it doesn't seem to be helping the memory usage
> Second, a major point: when I enable embedded mode, slaves apparently
> tend to become busy and never report that they're done.
>
> Thanks.
>
What version of perl are you running?
Look at the shared memory, it will indicate that each slave is sharing 2/3
of it's memory with the master.
Like such:
defang 9 0 31992 31M 19972 S 0.0 6.3 0:00 mimedefang-mult
defang 9 0 31040 30M 20600 S 0.0 6.1 0:00 mimedefang-mult
defang 9 0 30220 29M 29740 S 0.0 5.9 0:00 mimedefang-mult
defang 9 0 30212 29M 29732 S 0.0 5.9 0:09 mimedefang-mult
defang 9 0 1632 1628 1408 S 0.0 0.3 0:00 mimedefang
defang 4 0 1632 1628 1408 S 0.0 0.3 0:00 mimedefang
defang 9 0 1632 1628 1408 S 0.0 0.3 0:00 mimedefang
defang 9 0 1632 1628 1408 S 0.0 0.3 0:00 mimedefang
See the number after 31m that is 20m or so?
You can see te 3rd and 4th slave aren't using any extra memory, they are
sharing all from the parent.
That is the amount of memory it is sharing, so memory usage is
(Total Mem X n-slaves - (Shared Mem X n-slaves)
31M+30M - 20M = 40M
You save about 10M per slave over non embedded.
You need to specifically enable the embedded option with the -E switch on
the multiplexor startup script.
--
Luke Computer Science System Administrator
Security Administrator,College of Engineering
Montana State University-Bozeman,Montana
More information about the MIMEDefang
mailing list