Re: Performance degradation in 4.0.2?

[email protected]
Newsgroups gmane.mail.spam.spamassassin.general
Message-ID <[email protected]>
On 9/3/25 9:04 AM, Tobi wrote:
> Hello list
> 
> since beginning of this week we use the new spamassassin 4.0.2 Since
> then we can see that processing time (at least for particular mails)
> massively increased. We use a timeout of 30s in our setup to
> communicate with SA.
> 
> Two mails we now have that cannot be processed anymore in that time and
> therefore get stuck in our processing.
> 
> Mail A has a huge load of links/mailtos in header and body. About 7k.
> The timing in processing with the very same rules is from 6s (in 4.0.1)
> to 2.5min (in 4.0.2). I counted the number of URI spamassassin detected
> and the number of DNS queries in both versions and they are more or
> less equal. So I guess the increase in processing time is not DNS
> related.
> 
> Mail B does not have that many URI but a quite complex HTML attachment
> with a load of styles with almost every div and span tag. The
> processing time is 4s (in 4.0.1) and about 1min (in 4.0.2).
> 
> I will check in our timings logs to see if we see a general increase in
> timings or if it's more only related to specific mails.
> 
> Have a good one
> 
Hi,
one commit that can degrade performance is this commit https://github.com/apache/spamassassin/commit/4a6643c72fe5cd6296b2e67eb0ccc368a4987caa
This tries to find CNAMEs for all hosts found in the email.
 From my tests this can slow down email processing a bit but not that much.
Could you send me those emails in private ?
  Thanks
   Giovanni
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEqg3TnG6R3qYMxl94+r7qCYlyWOUFAmi39KYFAwAAAAAACgkQ+r7qCYlyWOVx
wxAAnexw6TLgc89Xu9GS3h7n6Gd9DPvBEdqljDiS0B78RDnBYNYj65X6yqzGgBhyQaAa8XP80z3X
pVYucKHYU7L4Y8LTV2hpXnXrejnp3/T33QzXJeHqH7hHuMWo0KpTyhC2RDLM0zwdgQE0Lqb4Xaj+
QHj4LFYvHytMWLHRwG+oYOAwTEs8+VzhdiMulbYJc/PgeXZh6bW8KtL6JXm1/uOA6Vng4wENObJd
k6ky9GRy5OVVP9kLorLv3esJtTp/sq7MQYesl6EJ47bGkqpxojHB6FhY5301BBj4T/XwBuqaMo9m
IeWhCjACKQEISzG3wqygCk4NLHcVN5EswI/WHQ99fMxMZuBzPNBijQEg9PxphpPdT/48mFa53S9e
iiooyPnH/srEBk/rllKlOY4BbuICjZxZlnBEd92Zck66pHpRHCKVTXPXn9/FZ4fYnfuMfxVzuP5O
G+Rgblk/bqJ96WdRv1mSSaWxsHdvd0DFr+rU0Gc7nJXYfdbgYe9FFUl3vSFSbEQd6YOngqOht7/3
xDg99NL/mMeLzXn4ddvMYrEPBB2N9QrVo1q9B0bskavC3N9McaFbN70NN6RYx2Li90qwe88xzVGm
DJQCJvs8Gv93V631kX5o334ZjvsuyrNMu0i8v8nLO9cpJgbiQMGYIg7/Fam3cYknVhFMYo5ahKnT
mSQ=
=/VpD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.