πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90071

Re: Not very useful logging information

#90071
From: Jesse Rehmer
Date: Sat, 04 Feb 2023 17:03
49 lines
3470 bytes
On Feb 4, 2023 at 5:50:34 AM CST, "Julien Γ‰LIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Jesse,
> 
>> I'm sure it would help. If the binary detection were performed first, and an
>> article is identified as a binary then passed through without further checks
>> would eliminate a lot of unncessary cycles.
> 
> Does it mean that if you turn off binary detection in Cleanfeed or
> PyClean, there's no longer any huge CPU load?

These are good questions, and I will take some time to do testing of various
scenarios and report back with findings.

When I brought my systems back online last year I started with pyClean, no
modifications or configuration. I began backfilling my spool from commercial
entities using 10-20 instances of pullnews running at the same time. This
resulted in a very mixed article stream (lots of misplaced binaries on
commercial spools!), and is when I first noticed the filtering bottleneck.

In my observation, the more binaries going through, the worse things got. 
This is when I noticed that binaries were also going through the EMP filter as
occasionally one would be rejected by the EMP filter. That got me thinking I
just needed to add the binary patterns to emp_exclude, so I used this:

        emp_exclude = ['^alt\.anonymous\.messages',
                       '^free\.', '^local\.', '\.answers',
                       '^news\.answers', '^comp\.answers',
                       '^relcom\.', '^mailing\.', '^fa\.', '\.cvs\.',
                       '^gnu\.', 'lists\.freebsd\.ports\.bugs',
                       '^bin[a.]', '\.bin[aei.]', '\.bin$']

But that didn't help with CPU load, and binaries were still passing through
the EMP filter and sometimes rejected there.

pyClean was harder for me to understand how to turn off some filters (can you
even fully disable the EMP filter in pyClean?), so I switched to Cleanfeed
because the configuration made it obvious how to enable/disable all of the
filters.

Your suggestion of:

    emp_exclude = ['\.']

Is a good one that I didn't think to try, but will!

I didn't understand what the test groups definition in pyClean was for, so I
didn't experiment with that either.
Technical Details
Message-ID: <trm35v$1rja$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
References: <20230131155925.36dd4013@wibble.sysadmininc.com> <trjrs6$j087$2@news.trigofacile.com> <trkpl9$1vg0$1@nnrp.usenet.blueworldhosting.com> <trlgqa$kbge$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <trm35v$1rja$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: Not very useful logging information
Date: Sat, 04 Feb 2023 17:03:59 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <20230131155925.36dd4013@wibble.sysadmininc.com> <trjrs6$j087$2@news.trigofacile.com> <trkpl9$1vg0$1@nnrp.usenet.blueworldhosting.com> <trlgqa$kbge$1@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
Newsgroups: news.software.nntp
Organization: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 4 Feb 2023 17:03:59 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="61034"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:yCqHiRnXey4B4EjDh/wP3RWfTKs= sha256:37v2KPR0GJVPLmnMoA4LfYSJJYZWB1gVzg1t6LNlV/M= sha1:fi3Uw0BO5X5A2eYirkPZ/1q16ho= sha256:OhuCN53sbSFOPthV6Mttkkqq6xoPsonsqa4JghymmVM=
X-Usenapp: v1.26.1/d - Full License