🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9264

Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)

#9264
From: John Milburn
Date: Fri, 12 Jul 1996 00:00
43 lines
2723 bytes
jollie@worf.netins.net (Jeffrey C. Ollie) writes:

>>My impression is that most news servers are IO bound rather than CPU bound.  So
>>if local criteria via TCL leads to discarding a few more articles, you're likely
>>to come out ahead.

>Yes, most news servers are I/O bound right now. That's certainly the case with
>both of my news servers right now. But if I have to run a TCL (or even PERL)
>function over every article I think that would quickly change. My servers
>process around 150K articles per day - I don't think that they could keep up.

>If someone has empirical evidence that points to the contrary, I'd love to
>hear it...

I do have some experience in using a perl script, run as an exploder
feed from innd, to process every article.  The script contains about
350 rules, some (about 60%) which check only the headers of an
article, others which check the full body.

The program is rather well optimized (as well as one can do with
perl), and scans only a few hundred lines of binary posts.  Since it
runs as an exploder, in the normal state, all article reads come from
cache.  It really bogs down if it gets behind, and has to go to disk.
So, I added a cron job to flush the channel once per hour, which lets
the old process (any backlog) run until completion, while allowing
newly arriving articles to be processed from cache.  Clearly, this is
not an issue with an embedded processor.

I have run this, with various rule changes, on an HP720 (50 MHz
PA7000), HP712 (80 MHz PA7100), HP735 (125 MHz PA 7150), and Linux
(P150).  Only the later two machines are able to keep up with recent
news flows (avg 170,000 article/day here).  Do not run a program like
this on a reader machine.  It eats up so much cpu time that the users
will absolutely notice it.

-jem

>>Besides, maybe it'll be easy to substitute embedded perl for embedded TCL ;-)

>I don't think that even that will help.

Technical Details
Message-ID: <8765765$kjbh@xpat.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4qs8mb$abu@fugue.clari.net> <slrn44u7efn.cqc.jollie@worf.netins.net> <4s0r61$d7h@necco.harvard.edu> <slrn44u89o2.u6d.jollie@worf.netins.net>

Show Full Headers
Complete Article Headers
Message-ID: <8765765$kjbh@xpat.com>
Subject: Re: TCL in INN 1.5 (Was: Re: Let's put compression into NNTP -- I am willing to pay)
Date: Fri, 12 Jul 1996 00:00:00 +0000
From: jem@xpat.com (John Milburn)
References: <4qs8mb$abu@fugue.clari.net> <slrn44u7efn.cqc.jollie@worf.netins.net> <4s0r61$d7h@necco.harvard.edu> <slrn44u89o2.u6d.jollie@worf.netins.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 167950700
Distribution: inet
Sender: jem@xpat.postech.ac.kr
Organization: Xpat, Pohang, Korea
Reply-to: jem@xpat.com (John Milburn)
Newsgroups: news.software.nntp