🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5763

Re: NNTPSEND pre-sort patch (UNOFF4)

#5763
From: Jerry Aguirre
Date: Mon, 18 Mar 1996 00:00
40 lines
2565 bytes
In article <4ib76t$gqb@news.ims.mariposa.ca.us> mgb@ims.mariposa.ca.us (Mike Bird) writes:
>
>Here is the inn1.4unoff4 version of the nntpsend pre-sort patch.
>
>This patch enables '-b' to pre-sort the outgoing batch.

Sorting the entire batch is overkill and prone to problems.  When a site
gets behind the queue can grow to many megabytes.  With the suggested
patch the entire batch file gets sorted every time nntpsend starts a
new innxmit.  This happens more often than you may think as the
suggested parameters cause innxmit to time out after every half hour,
rewrite the queue file, and exit.

What I have done is to sort just the site.work file.  This sorts the
new articles being appended to the queue.  This combined with a longer
"-T" option results in 90% of the benifit of sorting the entire queue
with a lot less overhead.  It also doesn't need "sort -r" to avoid
giving unreasonable priority to "alt.*".  (If the suggested patch were
to become standard we could expect to see the propigation of the
"vmsnet" hierarchy greatly improved! :-)

Consider also that sorting the entire queue requires enough space
on /var/tmp to hold it.  There have been enough reports of the sort
of expire.rm failing to indicate that not every site always has this
amount of space.

The example time out of 30 minutes is one that I disagree with.  For a
site with a large backlog it results in significant IO as the batch file
gets copied and recopied.  It also creats dead time between the end
of a run and the next crontab run of nntpsend.  By example if you
only ran nntpsend every 30 minutes it would start one that would
finish just AFTER the next nntpsend run.  Then you would have 30
minutes of idle time.

I increased my time to at least an hour minus a few minutes.  That
minimizes both the copying and the dead time.  Innxmit has just enough
time to clean up and then a few minutes later the next nntpsend run
starts a new one. (-T3400 or -T7100)

Technical Details
Message-ID: <4iko90$8a2@olivea.ATC.Olivetti.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: <4ib76t$gqb@news.ims.mariposa.ca.us>

Show Full Headers
Complete Article Headers
Message-ID: <4iko90$8a2@olivea.ATC.Olivetti.Com>
Subject: Re: NNTPSEND pre-sort patch (UNOFF4)
Date: Mon, 18 Mar 1996 00:00:00 +0000
From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre)
References: <4ib76t$gqb@news.ims.mariposa.ca.us>
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: 143085031
Organization: Olivetti ATC; Cupertino, CA; USA
Newsgroups: news.software.nntp