[Mimedefang] Embedded Perl (continued)
skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Sep 22 11:16:28 EDT 2015
-----BEGIN PGP SIGNED MESSAGE-----
On Tue, 22 Sep 2015, Amit Gupta wrote:
> My situation is that the number of mimedefang.pl processes jumps to
> about 70 during peak loads (we are processing a couple hundres
> messages per minute on average). Our filter file is in need of some
> optimizations(since each mimedefang.pl is taking about 125mb of
> resident memory), but I'm wondering if using embedded perl will help
> in this situation. I see you mentioned using embedded perl prevents
> forking entire processes.. So does this mean each request is handled
> by a thread within the main process instead? So would my RAM
> requirements be reduced drastically?
Read Dianne's response about the garbage collector. Unless the script use
very view different values of your loaded data or use weak references, you
will not notice any reduction in long run.
I had SpamAssassin rules allocating about 100MB, the forked children only
shared the C libraries after some time. That's a problem of Perl's way to
handle rereferences to data.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
-----END PGP SIGNATURE-----
More information about the MIMEDefang