Article View: news.software.nntp
Article #50240Re: Has anyone built INN-2.3.1 on Open BSD?
From: Charlie Chocolategobbler
Date: Mon, 29 Jan 2001 00:43
Date: Mon, 29 Jan 2001 00:43
141 lines
8636 bytes
8636 bytes
:: 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
Contact the usenet contact address at tdk.net, who can give full
access to an IP of your choice, or even a feed if you're ready for
that. Ask Joachim to relay your read/post request to me an' I'll
fix ya up REEEEL good-like.
:: 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
*should* work fine, but there have been mumblings in the list about
mmap being b0rken for quite some time. I'm glad that someone who
actually knows something about this is piping up, since it's not as
though I know what I'm talking about.
Conceivably, if data that were written and then (if I trust what Russ
said about the INN k0deZ and the mmaped CNFS buffers) msync'ed was *not*
available for immediate read (or even several minutes delayed reads),
there could be b0rkenness beyond the known behaviour of a lack of a
unified buffer cache. Of course, I haven't investigated this, nor
have I studied all parts of the k0de known to be b0rken. My choice of
action was to run away, far far away, very fast.
:: 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.
Yeah, what I see is the opposite, where fewer than the expected number
of message IDs really are available, but not a problem with duplicates.
Not being a VM expert by any means, I'm wondering if somehow NetBSD's
use of trickle sync for the history.pag file throws any monkey wrenches
into the situation.
The question I have is which of the two steps in the history lookups
is at fault -- does the first check against the history.pag hash table
fail (translation: article not yet present), or does that succeed but
the following text search fail (translation: hash collision but article
still not yet present)? Or could this be a failure in general in the
text lookup if *all* message ID lookups fail, a third option which just
occurred to me right now?
If I were trying to get to the r00t of the matter, I'd add debugging
lines to Rebecca's history k0deZ to log success or failure of the .pag
hash check, as well as the text file check. And actually, I'd ask
Rebecca to do a `grephistory -l '<actual-message-ID-in-spool>' ' command
for several IDs that can be read to see if the third possibility that
I had experienced part of the time, might be at fault.
The `grephistory' output should be different for every ID. It should
partially match the `grephistory -h' output for the same ID. The `sm'
output of the last part of the `grephistory' output should retrieve the
article. If the `grephistory -l' output matches `head -1' of the
history text file, then one is seeing the same problem I had seen earlier
where I somehow had to use a (long) added to an lseek() call to get any
decent results.
Rebecca, another way to track whether your history lookups are corrupted
is to try to retrieve messages by ID. It should work, for example, by
using lynx --
lynx news://193.162.153.117:143/news.software.nntp
If you try the same thing, replacing 193...:143 with your own news
swerver's name, but all attempts to retrieve articles in The Other
Place that you'd replace n.s.nntp happen to fail `430 no such article'
which you could also see by telnet...
telnet news 119
200 foo InterNerdNuze swerver sez HIT ME (posting okie-dokie)
group your.preferred.group
(response is returned)
head #### (where #### is some number in the range of the last two numbers
in the response above)
(article header is returned, cut-n-paste the <message-ID> part of the
message-ID or any ID in the References: header)
head <message-id-cut-n-pasted-from-above>
If this works, your history lookups are okay. If you get the same
`430' error, then you have serious history problems. I use `lynx' as a
`newsreader' because it shows any history `problems' immediately, that
other `readers' using message numbers would `hide'.
:: Other stuff will likely break, of course, especially stuff to do with
:: outward feeding or history lookups from separate processes....
That is the other reason I've urged Rebecca to immediately upgrade
to NetBSD-current, with the unified buffer cache, if not abandon
ship for another operating system entirely, before putting too much
blame on INN proper. After all, if someone makes a post to that
swerver but innfeed can't retrieve the article when it tries to
send it out immediately, that's going to be cause of concern. Even
delaying the feed with innxmit wasn't enough for me to get 100%
reliable propagation out of the test box I set up when I had this
problem. And of course, reading was b0rken for the last two or
three articles in active groups most of the time.
:: 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
Hmmm. I am running a FreeBSD INN-2.4-something machine with the
old-style tagged-hash history, and while I've never paid much attention
to it, it does get redundant time-delayed feeds from all feeds due to
known innfeed crashes that result in lost articles that innxmit will
deliver. This is a prime candidate for duplicates, although I probably
have the history cache tweaked to handle dupes within a short time even
if there is history corruption proper. It gets other feeds with more
varied delays of up to several hours, so there's plenty of chance for
it to take in duplicates.
I've ignored this machine most of the time, but I've never seen any
history-related problems with it. No reports of duplicates, no nuthin.
So I'm not seeing this problem that others have reported. It's a
transit machine with three days history retention, fed by two transit
machines with up to 22 days retention and a small handful of realtime
partial feeds (which is how I see recycled Cyclone news after four
days), and downstream machines should have history equivalent to their
cutoff or spool retention. Small history chosen to keep memory needs
minimal, for the same reason I chose old-style dbz (the relatively few
text-hit lookups it would need to do was another reason).
I don't know what to say. DO NOT TEMPT ME TO BUILD ANOTHER NETBSD
RELEASE MACHINE OR BOOT A RETIRED BOX BACK INTO NETBSD AND MAKE A
FRESH INSTALL WITHOUT MY TARBALL OF PATCHES JUST TO SEE IF I CAN
REPRODUCE THESE HISTORY PROBLEMS. PLEASE, I BEG THEE. LET ME SLEEP.
Technical Details
Message-ID:
<952eb6$e22$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-03!supernews.com!newsfeed.wirehub.nl!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!news.Contactel.CZ.POSTED!stavka.vszbr.cz!bofh.vszbr.cz!news.radio.cz!news.netscum.dQ!not-forReferences:
<m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.fsf@erlenstar.demon.co.uk> <95253f$dpo$1@news.contactel.cz> <87elxnqq2s.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <952eb6$e22$1@news.contactel.cz> Subject: Re: Has anyone built INN-2.3.1 on Open BSD? Date: Mon, 29 Jan 2001 00:43:19 +0000 From: Charlie Chocolategobbler <autocyberretributionmeowbot@plonk.invalid> References: <m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.fsf@erlenstar.demon.co.uk> <95253f$dpo$1@news.contactel.cz> <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-03!supernews.com!newsfeed.wirehub.nl!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!news.Contactel.CZ.POSTED!stavka.vszbr.cz!bofh.vszbr.cz!news.radio.cz!news.netscum.dQ!not-for Newsgroups: news.software.nntp Organization: Customer of Contactel s.r.o, Praha CZ Lines: 140 NNTP-Posting-Host: 2dd950811eed8cd4920adef76f5c8ccd.contactel.cz X-Trace: news.contactel.cz 980728999 bf96952c9a2ab166bb7c6b65c4c5ac72 X-Complaints-To: Contactel Abuse <abuse@contactel.cz> X-Pedophile: BARRY BOUWSMA IS A PEDOPHILE!!! X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300