And take a look if you aren't fall in a (D)DOS attack.
Combine fail2ban with ASSP to try to mitigate this type of attack, thats
leads to a high cpu load (specially if you use ASSP to proxy 587 port to
collect whitelist/ham).

Best regards,

Alexandre

Em seg., 11 de nov. de 2019 às 04:56, Thomas Eckardt <
thomas.ecka...@thockar.com> escreveu:

> If you expect anyone can scan 30.000 mails a day without a more than idle
> CPU usage - your expectation is wrong. Depending on your assp configuration
> and system design, 180k mail/day may maxout a system.
>
> a short math:
>
> 180k mails * 10 sec/mail = 1.800 ksec
>
> 1.800 ksec / 84.600 sec /day ~ 21
>
> with 10 SMTP workers - every worker will have to handle an average of two
> mails all the time - which mean that 10 cores continuously processing mails
> + main thread + maintenance thread + rebuild thread + the threads for
> clamav, filescanner, database .... + what ever is running on the system.
>
> To be able to handle the workload peeks at a full assp configuration, I
> expect that the system will require 16GB RAM and at least 20 cores.
>
> Per default assp uses as less system resources as possible. There are
> tweaks to get a higher performance (for example the ISP-setup), but this
> will lead in to a higher system resource usage (also CPU) and requires for
> this reason a very good system design - and much more than basic knowledge
> about perl and assp.
>
> This is an older blog about assp.
>
> http://blog.aceshigh.net/2013/11/assp-anti-spam-smtp-proxy-server/
>
> But it shows, that assp can be run on a PI , if right designed. DO NOT try
> this - a PI will not be able to process more than some hundred mails a day.
> And I don't thnk, the extensive ASSP_AFC checks or OCR will work (because
> of too less RAM).
>
>
>
> Thomas
>
>
>
>
>
> Von:        "Michał Górzec" <michal.gor...@gmail.com>
> An:        "For Users of ASSP" <assp-user@lists.sourceforge.net>
> Datum:        07.11.2019 18:41
> Betreff:        Re: [Assp-user] assp is a cpu hog
> ------------------------------
>
>
>
> >> And rather than actually research/test some performance tuning options
> like database configuration
>
> Unconventional idea but ok, I've tested this now - switched assp to
> running with mysql server running on other machine. No impact on assp cpu
> usage whatsoever.
>
> czw., 7 lis 2019 o 14:13 Andre van Eyssen <*an...@purplecow.org*
> <an...@purplecow.org>> napisał(a):
>
> Congratulations. You've discovered that something written entirely in perl
> has some CPU load on your 2012-vintage CPU and probably isn't ideal for
> running 180k mails/day on vintage hardware. Are you also hitting I/O
> limits on your 2012-vintage spinning rust?
>
> And rather than actually research/test some performance tuning options
> like database configuration, you re-deployed the same thing on multiple
> Linux distributions and perl versions.
>
> Then you posted this to a list from a *gmail.com* <http://gmail.com/>
> address rather than your
> own mail platform? OK, so I'm feeding the troll at this point.
>
> I've run more throughput on ASSP on similar vintage Solaris box, and if
> you think compiling all those perl modules on Linux is a chore, try it on
> Solaris for an educational experience. I know at least one university ran
> all their student mail through ASSP without too much stress.
>
> On Thu, 7 Nov 2019, Michał Górzec wrote:
>
> > So far I've been running assp on very small mail servers. Now I've set it
> > up on a server that processes about 30 000 emails a day (whcich is not
> that
> > much, I've planed setting it for other server that processes about 180
> 000
> > emails a day). It turned that assp is real cpu hog. It consumes about
> > 40-50% of whole Xenon E3-1245 V2 cpu power (all cores) under such load. I
> > could not believe that. I've tried disabling tests in assp. Even with
> > almost everything disabled it sill consumed same amount of cpu power!
> Only
> > setting * in transparent proxy mode reduced this... but only to about
> > 10-15% cpu power! So I still cloud not believe it is assp fault. I've
> tried
> > setting this system on other operating systems - ubuntu 18.04, centos 8,
> > centos7, fedora 31, debian 10. Perl 5.30 , perl 5.28, perl 5.26 from
> repos,
> > perl 5.30, 5.24 compiled from source. Cpan modules installed from repos.
> > Cpan modules installed from source. Every single time it was exactly same
> > high cpu usage. I've wasted few days on those tests.
> >
>
> --
> Andre van Eyssen.                  Phone:     +61 417 211 788
> mail:     *an...@purplecow.org* <an...@purplecow.org>
> *http://andre.purplecow.org* <http://andre.purplecow.org/>
> About & Contact:          *http://www.purplecow.org/andre.html*
> <http://www.purplecow.org/andre.html>
> _______________________________________________
> Assp-user mailing list
> *Assp-user@lists.sourceforge.net* <Assp-user@lists.sourceforge.net>
> *https://lists.sourceforge.net/lists/listinfo/assp-user*
> <https://lists.sourceforge.net/lists/listinfo/assp-user>
> _______________________________________________
> Assp-user mailing list
> Assp-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/assp-user
>
>
>
>
> DISCLAIMER:
> *******************************************************
> This email and any files transmitted with it may be confidential, legally
> privileged and protected in law and are intended solely for the use of the
> individual to whom it is addressed.
> This email was multiple times scanned for viruses. There should be no
> known virus in this email!
> *******************************************************
>
> _______________________________________________
> Assp-user mailing list
> Assp-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/assp-user
>
_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to