Luis,

> The fact is that this appliances does not have Swap because it runs over a
> flash card. Look:
> Mem:    255692k total,   248524k used,     7168k free,        4k buffers
> Swap:        0k total,        0k used,        0k free,    27668k cached
> If I do a swat at flash card then performance will go down.  I only have 2
> amavis children.
>
> I could do amavis 2.6.2 rpm to test if it has been corrected.

The memory shortage problem won't go away with  2.6.2, it's just that
I expect you'd get a more informative error report (which is what I'd
be interested-in to get a confirmation for).

> You mean this:
> - avoid problematic perl constructs open('|-') and open('-|') which fail
>   to catch certain fork errors, or waits indefinitely when resources
>   are tight; just explicitly create a pipe and call fork in subroutines
>   run_command, run_command_consumer and in run_as_subprocess. The change
>   possibly also solves some mystery cases where amavisd would appear
>   to hang when resources are tight (running out of swap space or near a
>   maxprocesses limit) instead of reporting a fork failure. Problem with
>   fork failing without giving a reason for failure reported by Uwe Kiewel;

Yes, exactly.

> I realiza that If i put:
> vm.swappiness = 0
> Error does not seems to be present, yet.

Seems you'll have to find ways of reducing memory needs of amavisd
and SpamAssassin. If you use SARE rules, perhaps removing some
sets of these rules may be a good start. Turning off berkeley db use
(nanny + snmp statistics + cache) by  $enable_db=0;  may help a little.

  Mark

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to