🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90064

Re: Not very useful logging information

#90064
From: Julien ÉLIE
Date: Fri, 03 Feb 2023 20:47
23 lines
2270 bytes
Hi Jesse,
> As Russ stated, it's the filtering that's eating up CPU cycles. I can handle
> >50Mbps of incoming and >80Mbps outgoing traffic using ~20% of the CPU without
> filtering, but when I turn on Cleanfeed or PyClean innd maxes out its core and
> upstream peers start to spool.

Do you think reordering the checks Cleanfeed does would be of help?
For instance having the is_binary() check as soon as possible instead of 
always having body parsing like:

    $body = lc substr($hdr{__BODY__}, 0, 4000);

    $state{badlines}++ while $hdr{__BODY__} =~ /[^\r]\n/g;

    $hdr{__BODY__} =~ /
       ^[Bb][Ee][Gg][Ii][Nn]$hws+[0-7]{3,4}$hws+ # begin 666
       (...long regexp for UUencoded...)
       /mx;

-- 
Julien ÉLIE

« Les grands artistes n'ont pas de patrie. » (Alfred de Musset)
Technical Details
Message-ID: <trjrs6$j087$2@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20230131155925.36dd4013@wibble.sysadmininc.com> <trionq$om1$1@nnrp.usenet.blueworldhosting.com> <triplu$1p5r$1@nnrp.usenet.blueworldhosting.com> <trjm6p$if11$1@news.trigofacile.com> <trjqja$sdm$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <trjrs6$j087$2@news.trigofacile.com>
Subject: Re: Not very useful logging information
Date: Fri, 3 Feb 2023 21:47:01 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <20230131155925.36dd4013@wibble.sysadmininc.com> <trionq$om1$1@nnrp.usenet.blueworldhosting.com> <triplu$1p5r$1@nnrp.usenet.blueworldhosting.com> <trjm6p$if11$1@news.trigofacile.com> <trjqja$sdm$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Feb 2023 20:47:02 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="622855"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1
Cancel-Lock: sha1:xmkhnUnAWQN/wliguclq3dnjheQ= sha256:02zan9aBipNpcRqDIGPfgn9L7aasWg9SJRpaIe8d16I= sha1:ztBoL6LWU5Kv5r5TjvqIpP3/B/E= sha256:KMNe3f3T/9S5IAQTKahuukiKgKlb6F3LmEvUSkySqko=
In-Reply-To: <trjqja$sdm$1@nnrp.usenet.blueworldhosting.com>