🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50237

Re: Has anyone built INN-2.3.1 on Open BSD?

#50237
From: Andrew Gierth
Date: Sun, 28 Jan 2001 22:17
54 lines
3712 bytes
>>>>> "Charlie" == Charlie Channelfeed <autocyberretributionmeowbot@plonk.invalid> writes:

 Charlie> AW SHADDAP!!!  Er, I mean, I still haven't slept due to a
 Charlie> Toblerone overdose, but, are you a participant in The Other
 Charlie> Place?

not for some time - I keep meaning to ask someone for a feed, but other
matters keep getting in the way

 [non-unified buffer cache]

 Charlie> What this means is that all activity done with a write to a
 Charlie> mmap()ed file needs an msync() call immediately following,
 Charlie> or else the data is not immediately available for reading.

not immediately available for reading _via read()_. reading it back out
of the same mapped region should work fine, and that should be enough
to avoid accepting duplicates.

 Charlie> As the dbz v3 (traditional old-school history) lookups are
 Charlie> first done by looking for the presence of a hash entry in a
 Charlie> hash table, then a positive hit is verified by a lookup
 Charlie> against the text file, if the newly-arrived and
 Charlie> newly-written history entry in the .pag file is *not*
 Charlie> available to be read, it will appear to the history k0de
 Charlie> that the article has not yet been received.

This should not be the case, because the same process is doing both
the additions and the lookups, and the history text is not mmaped.

Other stuff will likely break, of course, especially stuff to do with
outward feeding or history lookups from separate processes....

 >> Getting duplicate articles in history is very common on new INN
 >> 2.x setups (at least for 2.2, this applied both to tagged-hash and
 >> the new history dbz format). My suspicion is a bug in the overflow
 >> behaviour of dbz, but I have never been able to track it down (the
 >> dbz code in

 Charlie> I've seen duplicates with alarming frequency on our 2.2
 Charlie> machine, but this only seems to happen when expire runs but
 Charlie> appears to fail or somehow bail out, and the old history
 Charlie> inodes are kept but are *not* being updated -- after the
 Charlie> failed expire, their timestamps remain unchanged.

my 2.2 box (tagged-hash) occasionally mailbombs me with news.daily
reports over 10000 lines long, where most of the content is "Duplicate
messageid found in history" errors. This was particularly noticable
when I first set it up, and I've seen the same thing from
newly-installed non-tagged-hash 2.2 fullfeed systems.

-- 
Andrew.
Technical Details
Message-ID: <87elxnqq2s.fsf@erlenstar.demon.co.uk>
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!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!upp1.onvoy!onvoy.com!newsengine.sol.net!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
References: <m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.fsf@erlenstar.demon.co.uk> <95253f$dpo$1@news.contactel.cz>

Show Full Headers
Complete Article Headers
Message-ID: <87elxnqq2s.fsf@erlenstar.demon.co.uk>
Subject: Re: Has anyone built INN-2.3.1 on Open BSD?
Date: Sun, 28 Jan 2001 22:17:31 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.fsf@erlenstar.demon.co.uk> <95253f$dpo$1@news.contactel.cz>
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!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!upp1.onvoy!onvoy.com!newsengine.sol.net!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
Newsgroups: news.software.nntp
Organization: disorganised
Lines: 53
NNTP-Posting-Host: erlenstar.demon.co.uk (66c8:041c)
X-Mayan-Date: Long count = 12.19.7.16.13; tzolkin = 12 Ben; haab = 16 Muan
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-Attribution: AG
X-P-Persistent-Headers: are a bad idea.
X-Newsreader: Gnus v5.5/Emacs 20.2
X-Complaints-To: andrew@erlenstar.demon.co.uk
X-Post-Filter: postfilter v0.6 alpha