Article View: news.software.nntp
Article #93010Re: [UPDATE] cleanfeed-ng RC2: production benchmarks and a shameless request
From: Kevin Bowling
Date: Fri, 24 Jul 2026 21:51
Date: Fri, 24 Jul 2026 21:51
243 lines
10279 bytes
10279 bytes
On 7/24/26 12:13, Ivo Gandolfo wrote: > Il 12/07/2026 16:03, Ivo Gandolfo ha scritto: >> Hi everyone, > > Hello again, > > a small update about cleanfeed-ng after last patch. > > The repository has now been public for a little over a week: > > https://github.com/infybofh/cleanfeed-ng > > According to GitHub's traffic statistics for the last 14 days, it has > received: > > 72 repository clones > 46 unique cloners > 283 page views > > There was also a new peak on July 23, with 19 clones from 14 unique > cloners whn I released the latest patch. > > For a project as specialized as a Perl transit filter for INN, these > numbers are honestly much higher than I expected. > > There is, however, a slightly worrying discrepancy: > > quite a few clones, > almost no feedback. > > Apart from the invaluable testing and comments from Julien, The Doctor > and a few other people, I have very little idea whether the people who > cloned the repository: > > installed it successfully; > only looked at the source; > found it unusable; > are running it without problems; > encountered false positives; > encountered false negatives; > or silently threw it into /dev/null. I haven't had time to consider it, but I do plan to package it for FreeBSD ports once you hit a stable version. Given that it is going well, one thought in the back of my mind is maybe dropping the '-ng' suffix and taking over 'cleanfeed', even if we can't get ahold of Steve? There's probably no reason to sustain both in a distribution as long as you ship a reasonable default rule set. > > So, before begging for feedback, here are some production results from > the RC2 series. > > Production test 1: large backfill server > ---------------------------------------- > > The first server is processing a large historical backfill containing > both text and binary traffic. > > During one complete 24-hour period: > > Articles passed to the Perl filter: 4,726,375 > Average processing rate: 54.70 articles/second > Cleanfeed average processing time: 8.67 ms/article > Lowest measured hourly average: 7.86 ms/article > Highest measured hourly average: 9.52 ms/article > > Cleanfeed verdicts during the same period: > > Rejected articles: 547,158 > Structured cleanfeed_event reject lines: 547,158 > INN rejecting[perl] lines: 547,158 > > The three numbers matched exactly. No duplicated reject events and no > missing reject events were found. > > There were also no occurrences of: > > filter_art died > SERVER perl filtering disabled > cleanfeed-ng fatal > incomplete initialization > uninitialized-value errors > file descriptor exhaustion > CNFS errors > overview errors > history errors > > The server was operating near its ingestion limit. The measured time > was divided approximately as follows: > > Cleanfeed Perl filtering: 47.38% > INN history operations: 47.19% > Overview processing: 3.20% > Everything else: 2.23% > > Article storage itself accounted for only about 0.21% of the measured > processing time, so the storage subsystem was not the bottleneck. > > The backfill averaged about 4.7 million articles per day while applying > the complete filter. > > Production test 2: normal text-only server > ------------------------------------------ > > The second server has much lighter, ordinary transit traffic and is > configured to reject binary payloads categorically. > > During the measured day: > > Calls to filter_art: 7,424 > Reject verdicts: 1,184 > Audit events: 98 > > For ordinary text traffic: > > Weighted average processing time: 2.79 ms/article > Median processing time: 2.77 ms/article > Approximate 95th percentile: 6.00 ms/article > > A batch containing large binary articles took substantially longer, > typically about 80-100 ms per article, because the bodies had to be > parsed and classified. > > Even during the worst ten-minute binary burst, Cleanfeed consumed only > about 5.4% of the interval and the INN server remained approximately > 92.6% idle. > > Across the complete period, the server was about 99.5% idle. > > Again, no Cleanfeed crashes or automatic disabling of the Perl filter > were observed. LLM-assisted code generally does not hit those kinds of issues once you know how to steer it, and your included test suite are the right direction and imperative to exercise a dynamically typed language. The limitations are more difficult to spot and typically behavioral, so continue to think about designing unit tests that prove the runtime behavior is good for any new function. Then more time on integration tests that prove messages you want accepted are, and rejected aren't (perhaps even including a corpus of real usenet messages, or creating a second github project to run the 'realworld' integration tests with a large corpus of messages. > > Problems found through production testing > ----------------------------------------- > > Real-world testing has already uncovered and fixed several issues, > including: > > correct multipart yEnc size validation; > restoration of the historical allexclude behaviour; > prevention of duplicate policy reject events; > correct rule identifiers for policy rejects; > protection against an undefined MID history queue; > explicit logging when the embedded Perl version is too old; > correct statistics generation immediately after a filter reload; > correct accounting for articles accepted through allexclude; > a dedicated binary.image reason code; > warnings when INN has dontrejectfiltered enabled; > documentation for CLEANFEED_CONFIG_DIR; > automatic checking and preparation of statistics and metrics paths. > > INN's innreport support and documentation have also been updated to > recognize cleanfeed-ng events. > > > > And now the shameless request > ----------------------------- > > Please send feedback. > > Seriously. Even a one-line reply such as: > > "Installed on INN 2.x / Perl 5.x / operating system X. > Running for N days. No problems found." > > would be extremely useful. > > I am especially interested in: > > installation or migration problems; > INN and Perl versions being used; > text-only versus binary-capable servers; > false positives; > false negatives; > performance under real traffic; > confusing configuration options; > missing documentation; > unusual MIME or yEnc articles; > behaviour on systems other than Debian or Ubuntu; > successful installations with no issues at all. > > A minimal report could simply be: > > Operating system: > INN version: > Perl version: > cleanfeed-ng version: > Server type: text-only / binary / mixed > Time in production: > Result: > Problems or suspicious behaviour: > > Please do not assume that silence means I know everything is working. > > At the moment I have considerably more clone statistics than human > reports, which is a slightly unsettling way to maintain a transit > filter. > > The RC2 series is now running successfully on real production servers. > If no further discrepancies appear during the next few days, I intend > to promote it to the first non-RC cleanfeed-ng release. > > So please: if you cloned it, installed it, tested it, disliked it, > removed it, or merely discovered that one of my comments contains a > typo, tell me. > > Positive feedback is useful. > Negative feedback is more useful. > Bug reports are extremely useful. > Even "it works here" is useful. > > Silence is the only result from which I cannot learn anything. Welcome to Open Source maintainership, it can be a lonely place :) > Thanks in advance to everyone who has already tested it, and especially > to those who have taken the time to inspect logs and report actual results. > > > > Sincerely, > > -- > Ivo Gandolfo > bofh.team
Technical Details
Message-ID:
<1140mo8$pav$1@csiph.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.endofthelinebbs.com!news.nrbbs.org!csiph.com!.POSTED.172.83.103.228!not-for-mailReferences:
<11306rt$3l5ob$1@paganini.bofh.team> <1140dg1$qu29$1@paganini.bofh.team>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.endofthelinebbs.com!news.nrbbs.org!csiph.com!.POSTED.172.83.103.228!not-for-mail From: Kevin Bowling <kevin.bowling@kev009.com> Newsgroups: news.software.nntp Subject: Re: [UPDATE] cleanfeed-ng RC2: production benchmarks and a shameless request Date: Fri, 24 Jul 2026 14:51:02 -0700 Organization: csiph.com Internet News Service Message-ID: <1140mo8$pav$1@csiph.com> References: <11306rt$3l5ob$1@paganini.bofh.team> <1140dg1$qu29$1@paganini.bofh.team> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 24 Jul 2026 21:51:04 -0000 (UTC) Injection-Info: csiph.com; posting-host="172.83.103.228"; logging-data="25951"; mail-complaints-to="admin@kev009.com" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:OVALJTZHzo/yC7wErr3kMm4lwBQ= sha256:v/4Aji0pddlWP1nBF1U7d0IZU7fHdJBplfYItLqD7J0= sha1:diWGriPAQo92rmaiZ7N6YAFu+2I= sha256:TW3e4TtCTU82406f3cImZiwtT65X+1L4FhZ6uZyym9I= Content-Language: en-US In-Reply-To: <1140dg1$qu29$1@paganini.bofh.team>