You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rick Knight <ri...@rlknight.com> on 2009/10/14 18:01:52 UTC

DCCPROC and / or DCCIFD

With the help of people here, I have gotten DCCIFD working. Now I have 
another question. Should I use DCCIFD with DCCPROC or instead of 
DCCPROC? Can they work together or does one take precedence?

Thanks,
Rick

Re: DCCPROC and / or DCCIFD

Posted by RW <rw...@googlemail.com>.
On Wed, 14 Oct 2009 19:17:55 +0200
"Stefan" <st...@localside.net> wrote:


> dccifd is the demonized version of dccproc. As it starts only one
> time and then stays in the memory, it runs much faster. dccproc on
> the other hand has to be loaded to memory every time it is called
> (you process a mail).


I doubt it has much to do with loading into memory since dccproc will
be cached. The advantage this kind of thing is normally that it reduces
initialization  overheads.

According to the ddcproc manpage, "Dccifd is significantly more
efficient than dccproc", but is it still significant when compared to
SpamAssassin? 

If you run dccproc manually it sometimes takes several seconds, but
mostly it's virtually instantaneous, about half the time dig takes to
do a dns lookup (which is 2 round-trips), so it appears to be dominated
by network latency and server response time.

Compare that with the ~7 seconds of heavy cpu-usage that spamd takes
on the same machine,and dccifd begins to look like the sort of speed-up
you get from emptying the ashtrays in a Humvee. 


Re: DCCPROC and / or DCCIFD

Posted by Stefan <st...@localside.net>.
Jari Fredriksson:
<snip>
> > I have
> > DCC_HOM /var/dcc
> > DCC_DCCIFD_PATH /var/dcc/dccifd
> > DCC_PATH /usr/bin/dccproc
> >
> > in my local.cf and they are both available. My question is, should I use
> > both DCCPROC and DCCIFD together or should I be using just one of them.
> >
> > Thanks,
> > Rick
> 
> SpamAssassin uses dccifd if it is available. dccproc is a backup, used
> only when the daemonised version is not available.
> 
> You can and should configure them both, but SA only uses one of them.

dccifd is the demonized version of dccproc. As it starts only one time and 
then stays in the memory, it runs much faster. dccproc on the other hand has 
to be loaded to memory every time it is called (you process a mail). If you 
process more than ~2000 msg/h you will probably make sure to use dccifd.

regards
Stefan

Re: DCCPROC and / or DCCIFD

Posted by Rick Knight <ri...@rlknight.com>.
Jari Fredriksson wrote:
>
>
> 14.10.2009 19:52, Rick Knight kirjoitti:
>> Eduardo Casarero wrote:
>>>
>>>
>>> 2009/10/14 Rick Knight <rick_knight@rlknight.com
>>> <ma...@rlknight.com>>
>>>
>>> With the help of people here, I have gotten DCCIFD working. Now I
>>> have another question. Should I use DCCIFD with DCCPROC or instead
>>> of DCCPROC? Can they work together or does one take precedence?
>>>
>>> Thanks,
>>> Rick
>>>
>>>
>>> you have to add a dccifd_home or something like that in SA config, and
>>> SA will use the daemon automatically.
>>>
>> Eduardo, thanks for your reply.
>>
>> I have
>> DCC_HOM /var/dcc
>> DCC_DCCIFD_PATH /var/dcc/dccifd
>> DCC_PATH /usr/bin/dccproc
>>
>> in my local.cf and they are both available. My question is, should I use
>> both DCCPROC and DCCIFD together or should I be using just one of them.
>>
>> Thanks,
>> Rick
>>
>
> SpamAssassin uses dccifd if it is available. dccproc is a backup, used
> only when the daemonised version is not available.
>
> You can and should configure them both, but SA only uses one of them.
>
> -- 
> http://www.iki.fi/jarif/
>
> The human race is a race of cowards; and I am not only marching in that
> procession but carrying a banner.
>         -- Mark Twain
Jari, Stefan, thanks for your replies. I guess my system is good then. 
Since earlier this week when I got Razor2 and DCC working my spam had 
dropped to just about nothing. I almost feel lonely without, almost.

Thanks everyone,
Rick


Re: DCCPROC and / or DCCIFD

Posted by Jari Fredriksson <ja...@iki.fi>.

14.10.2009 19:52, Rick Knight kirjoitti:
> Eduardo Casarero wrote:
>>
>>
>> 2009/10/14 Rick Knight <rick_knight@rlknight.com
>> <ma...@rlknight.com>>
>>
>> With the help of people here, I have gotten DCCIFD working. Now I
>> have another question. Should I use DCCIFD with DCCPROC or instead
>> of DCCPROC? Can they work together or does one take precedence?
>>
>> Thanks,
>> Rick
>>
>>
>> you have to add a dccifd_home or something like that in SA config, and
>> SA will use the daemon automatically.
>>
> Eduardo, thanks for your reply.
>
> I have
> DCC_HOM /var/dcc
> DCC_DCCIFD_PATH /var/dcc/dccifd
> DCC_PATH /usr/bin/dccproc
>
> in my local.cf and they are both available. My question is, should I use
> both DCCPROC and DCCIFD together or should I be using just one of them.
>
> Thanks,
> Rick
>

SpamAssassin uses dccifd if it is available. dccproc is a backup, used
only when the daemonised version is not available.

You can and should configure them both, but SA only uses one of them.

--
http://www.iki.fi/jarif/

The human race is a race of cowards; and I am not only marching in that
procession but carrying a banner.
		-- Mark Twain

Re: DCCPROC and / or DCCIFD

Posted by Rick Knight <ri...@rlknight.com>.
Eduardo Casarero wrote:
>
>
> 2009/10/14 Rick Knight <rick_knight@rlknight.com 
> <ma...@rlknight.com>>
>
>     With the help of people here, I have gotten DCCIFD working. Now I
>     have another question. Should I use DCCIFD with DCCPROC or instead
>     of DCCPROC? Can they work together or does one take precedence?
>
>     Thanks,
>     Rick
>
>
> you have to add a dccifd_home or something like that in SA config, and 
> SA will use the daemon automatically.
>
Eduardo, thanks for your reply.

I have
DCC_HOM /var/dcc
DCC_DCCIFD_PATH /var/dcc/dccifd
DCC_PATH /usr/bin/dccproc

in my local.cf and they are both available. My question is, should I use 
both DCCPROC and DCCIFD together or should I be using just one of them.

Thanks,
Rick


Re: DCCPROC and / or DCCIFD

Posted by Eduardo Casarero <ec...@gmail.com>.
2009/10/14 Rick Knight <ri...@rlknight.com>

> With the help of people here, I have gotten DCCIFD working. Now I have
> another question. Should I use DCCIFD with DCCPROC or instead of DCCPROC?
> Can they work together or does one take precedence?
>
> Thanks,
> Rick
>

you have to add a dccifd_home or something like that in SA config, and SA
will use the daemon automatically.