Re: [Mimedefang] Embedded Perl (continued)

2015-09-23 Thread Jan-Pieter Cornet
On 2015-9-22 17:16 , Steffen Kaiser wrote: > 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. It might help not to integrate SpamAssassin, but to use spamc to

Re: [Mimedefang] Embedded Perl (continued)

2015-09-22 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

Re: [Mimedefang] Embedded Perl (continued)

2015-09-22 Thread Dianne Skoll
On Tue, 22 Sep 2015 07:57:18 -0700 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). How much RAM do you have? 70 parallel scanners is

Re: [Mimedefang] Embedded Perl (continued)

2015-09-22 Thread Amit Gupta
We have 16GB of ram, though there are other processes running on this machine such as DB that will be segmented later. I'm curious how much resident memory each of your mimedefang.pl processes uses? I haven't been tracking my mimedefang.pl memory usage over time, so I was a little surprised to

Re: [Mimedefang] Embedded Perl (continued)

2015-09-22 Thread Dianne Skoll
On Tue, 22 Sep 2015 08:20:16 -0700 Amit Gupta wrote: > We have 16GB of ram, though there are other processes running on this > machine such as DB that will be segmented later. I'm curious how much > resident memory each of your mimedefang.pl processes uses? About 110MB, but

Re: [Mimedefang] Embedded Perl

2015-09-21 Thread Bill Cole
On 21 Sep 2015, at 17:04, Amit Gupta wrote: Hi, I'm using Centos7.1 and mimedefang 2.75 (still need to upgrade to latest). The documentation indicates that if you start mimedefang with the -E parameter, it uses embedded perl which is supposedly faster. I was wondering if someone could give me

Re: [Mimedefang] Embedded Perl

2015-09-21 Thread Dianne Skoll
On Mon, 21 Sep 2015 18:53:04 -0400 "Bill Cole" wrote: > As MD & Perl have matured and systems have gotten much bigger and > much faster it has become less of a burden to just fork and exec > fully independent slaves and let them live a very long time, so

Re: [Mimedefang] Embedded Perl

2015-09-21 Thread Dianne Skoll
On Mon, 21 Sep 2015 14:04:04 -0700 Amit Gupta wrote: > Hi, I'm using Centos7.1 and mimedefang 2.75 (still need to upgrade to > latest). The documentation indicates that if you start mimedefang with > the -E parameter, it uses embedded perl which is supposedly faster. I > was

Re: [Mimedefang] Embedded Perl

2015-09-21 Thread Paul Orr
If embedded perl is the same as compiled perl then I would guess the speed-up comes from not having to interpret a perl script with the perl interpreter. Or am I off-base here? -Original Message- From: mimedefang-boun...@lists.roaringpenguin.com

Re: [Mimedefang] Embedded Perl

2012-06-18 Thread David F. Skoll
On Mon, 18 Jun 2012 19:19:57 +0900 Nathan Findley nat...@zenlok.com wrote: The man pages for the multiplexer indicate that when using embedded perl the PID of the slave is not available ($$). Is there a way around this? Wow, that man page is way out of date. :) I fixed that many versions of

File::Scan (was Re: [Mimedefang] Embedded Perl multiplexor on Debian - sarge Error)

2006-07-20 Thread David F. Skoll
Kayne Kruse wrote: Now Take david, hes a rather nice person. Now that I said that, why do you support this monstrosity? :) That was some hideous code, makes me want to puke shellcodes in the morning! :D Anywho, note taken and I yanked that crap out. In fact, I'd never looked closely at

Re: File::Scan (was Re: [Mimedefang] Embedded Perl multiplexor onDebian - sarge Error)

2006-07-20 Thread Kayne Kruse
On Thu, 2006-07-20 at 10:03 -0400, David F. Skoll wrote: In fact, I'd never looked closely at File::Scan before. I have removed support for File::Scan from MIMEDefang completely; the next release won't support it. If you want to continue to use it, you'll have to write the supporting code

RE: File::Scan (was Re: [Mimedefang] Embedded Perl multiplexoronDebian - sarge Error)

2006-07-20 Thread Cormack, Ken
::snip:: Only reason I had it to begin with was as an extra scanner. Call me paranoid, but the cost of two scanners is worth the cpu time just to be extra safe. We killed-off File::Scan several months ago, when it was corrupting PDF files from some of our production batch jobs, depending upon

Re: File::Scan (was Re: [Mimedefang] Embedded Perl multiplexor onDebian - sarge Error)

2006-07-20 Thread Kayne Kruse
On Thu, 2006-07-20 at 10:03 -0400, David F. Skoll wrote: I can't in good conscience have built-in support for such a terrible module. Regards, David. Ironically, I think this has been the cause of my hanging mimedefang i hadnt posted about. Watching the logs I dont appear to have any

Re: File::Scan (was Re: [Mimedefang] Embedded Perl multiplexoronDebian - sarge Error)

2006-07-20 Thread Steve Campbell
- Original Message - From: Kayne Kruse [EMAIL PROTECTED] To: mimedefang@lists.roaringpenguin.com Sent: Thursday, July 20, 2006 3:36 PM Subject: Re: File::Scan (was Re: [Mimedefang] Embedded Perl multiplexoronDebian - sarge Error) ___ NOTE

Re: [Mimedefang] Embedded Perl multiplexor on Debian - sarge Error

2006-07-19 Thread David F. Skoll
Kayne Kruse wrote: I just noticed this error, and was curious as to what in the filter is the FD. Jul 19 17:03:02 mailfilter mimedefang-multiplexor[4711]: WARNING: Something in your Perl filter appears to have opened a file descriptor outside of any function. [...] lr-x-- 1 root root

RE: [Mimedefang] Embedded Perl multiplexor on Debian - sarge Error

2006-07-19 Thread Kayne Kruse
Remove File::Scan from your system. It's buggy and evil. Regards, David. Now Take david, hes a rather nice person. Now that I said that, why do you support this monstrosity? :) That was some hideous code, makes me want to puke shellcodes in the morning! :D Anywho, note taken and I

Re: [Mimedefang] Embedded perl problems with 2.45, again ... (reload broken)

2004-09-23 Thread Martin Blapp
+(eval 'use Net::DNS; $Features{Net::DNS} = 1;') +or $Features{Net::DNS} = 0; After looking at Net::DNS I suspect that a circular reference is the problem here. I dunno how to solve it. Martin ___ Visit http://www.mimedefang.org and

[Mimedefang] Re: MIMEDefang embedded perl stability issues

2004-06-25 Thread Jeremy Mates
* Chris Gauch [EMAIL PROTECTED] I'm on Redhat Linux 9 for the OS, latest kernel, etc. (through RHN update). MIMEDefang version is 2.43, Spamassassin 2.63, and ClamAV 0.72. This problem was fairly consistent when using the embedded perl interpreter, the MD multiplexor would crash at almost the

RE: [Mimedefang] Embedded Perl External Perl Modules

2004-05-05 Thread Michael Sims
Chris Masters wrote: I've just tested the embedded perl option and they don't seem to be functioning properly. The first module (Net::LDAP) that gets used doesn't function properly (cannot establish connections). If I change back to normal [non-embedded] mode it's fine. Are there any

RE: [Mimedefang] Embedded Perl External Perl Modules

2004-05-05 Thread Chris Masters
--- Michael Sims [EMAIL PROTECTED] wrote: Chris Masters wrote: I've just tested the embedded perl option and they don't seem to be functioning properly. The first module (Net::LDAP) that gets used doesn't function properly (cannot establish connections). If I change back to normal

RE: [Mimedefang] Embedded Perl External Perl Modules

2004-05-05 Thread David F. Skoll
On Wed, 5 May 2004, Chris Masters wrote: Hmmm. I initialise all connection handles in a getConnection function that checks the connection and opens one if necessary (because there never used to be a filter_initialize function and it's very resilient). Any other reasons? We've noticed a

RE: [Mimedefang] Embedded Perl External Perl Modules

2004-05-05 Thread Chris Masters
--- David F. Skoll [EMAIL PROTECTED] wrote: On Wed, 5 May 2004, Chris Masters wrote: Hmmm. I initialise all connection handles in a getConnection function that checks the connection and opens one if necessary (because there never used to be a filter_initialize function and it's very

RE: [Mimedefang] Embedded perl

2004-04-24 Thread David F. Skoll
On Fri, 23 Apr 2004, Henrik Schmiediche wrote: How can you test if a given implementation is safe? Look at configure.in and search for AC_MSG_CHECKING([if it is safe to destroy and recreate a Perl interpreter]) Does Perl need to be compiled in any special way to enable embedded Perl to work?

RE: [Mimedefang] Embedded perl

2004-04-24 Thread Les Mikesell
On Sat, 2004-04-24 at 09:10, David F. Skoll wrote: Yes; you need either a shared library libperl.so, or a static one (libperl.a) on your system. Would you have a lot of unnecessary overhead if, instead of writing your own multiplexing and embedded perl, you ran a stock apache/mod_perl or

Re: [Mimedefang] Embedded perl

2004-04-24 Thread David Eisner
On Fri, 23 Apr 2004, David F. Skoll wrote: On Fri, 23 Apr 2004, Henrik Schmiediche wrote: What is the advantage to Embedding Perl in the muliplexor? Faster startup time and much less memory use. The man mimedefang-multiplexor man page says: -E Specifies that the multiplexor should

RE: [Mimedefang] Embedded perl

2004-04-24 Thread David F. Skoll
On Sat, 24 Apr 2004, Les Mikesell wrote: Would you have a lot of unnecessary overhead if, instead of writing your own multiplexing and embedded perl, you ran a stock apache/mod_perl or fastcgi and a really simple front end that dispatches the jobs via http requests? I have no idea, and I

Re: [Mimedefang] Embedded perl

2004-04-23 Thread David F. Skoll
On Fri, 23 Apr 2004, Henrik Schmiediche wrote: What is the advantage to Embedding Perl in the muliplexor? Faster startup time and much less memory use. Why is it not enabled by default? Because it's broken on some platforms. It's fine on Linux, mostly fine on Solaris 9, and all bets are off

RE: [Mimedefang] Embedded perl

2004-04-23 Thread Henrik Schmiediche
, April 23, 2004 5:29 PM To: [EMAIL PROTECTED] Subject: Re: [Mimedefang] Embedded perl On Fri, 23 Apr 2004, Henrik Schmiediche wrote: What is the advantage to Embedding Perl in the muliplexor? Faster startup time and much less memory use. Why is it not enabled by default? Because it's broken

Re: [Mimedefang] Embedded Perl problems

2004-03-22 Thread Josh Kelley
Lucas Albers wrote: You should show this sort of command arguments when you run ps axuww|grep mimedefang /usr/bin/mimedefang-multiplexor -p /var/spool/MIMEDefang/mimedefang-multiplexor.pid -E -m 4 -x 9 -U defang -i 30 -b 600 -W 1 -l -q 10 -s /var/spool/MIMEDefang/mimedefang-multiplexor.sock

Re: [Mimedefang] Embedded Perl problems

2004-03-22 Thread Lucas Albers
Verify it is using the newer embedded version by calling manually. what is the full memory listing for all the mimedefang process? post the result of ps axuww | grep mimedefang cut off parts so it doesn't word wrap. Josh Kelley said: I've verified that the -E is listed in the ps auxwww listing,

Re: [Mimedefang] Embedded Perl problems

2004-03-19 Thread Lucas Albers
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

Re: [Mimedefang] Embedded Perl problems

2004-03-19 Thread Josh Kelley
Lucas Albers wrote: What version of perl are you running? 5.8.0, the version that ships with RHEL 3. 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

Re: [Mimedefang] Embedded Perl problems

2004-03-19 Thread Lucas Albers
Josh Kelley said: I'm using the provided init script for Red Hat, so I can set the appropriate option in /etc/sysconfig/mimedefang to make the init script pass the -E option. I've confirmed that ps lists the children as mimedefang-multiplexor rather than perl mimedefang.pl, which should