🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50235

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

#50235
From: Charlie Channelfeed
Date: Sun, 28 Jan 2001 22:05
101 lines
6718 bytes
::  Rebecca> SparcStation LX (50 megahertz, 72 meg of RAM) under NetBSD.
::  Rebecca> I'm showing duplicate articles.  I'm accepting them, the
::  Rebecca> messages id's are duplicated in the history.  One person
::  Rebecca> suggested the OS wasn't optimized for INN.  In email, one of

:: both these suggestions are probably red herrings

AW SHADDAP!!!  Er, I mean, I still haven't slept due to a Toblerone
overdose, but, are you a participant in The Other Place?  Unfortunately
I held my tongue when Rebecca first posted here, but I couldn't control
my geeked-up posting fingers when she did complain about problems.

``[t]he OS wasn't optimized for INN'' is a poor way of saying that it
does *not* have a unified buffer cache in the 1.5-RELEASE form that
was installed on Rebecca's machines, or in the 1.5-CURRENT that I had
installed late last year on one of my test reader boxes where I saw
the results of this and quickly jumped ship.

What this means is that HAVE_MMAP is defined as true, but also NEEDS_MSYNC
and MISSES_WRITES.  Or at least NEEDS_MSYNC, which is the key bit of
config.h.

There is a unified buffer cache in 1.5-CURRENT as of today, or even
near the end of last year, after I had carried out my tests on the
reader box.  But not on Rebecca's machine.  I've told her to install
the latest -current source tarballs rather than try to get things
working on the released version without this.

What this means is that all activity done with a write to a mmap()ed
file needs an msync() call immediately following, or else the data
is not immediately available for reading.  As the dbz v3 (traditional
old-school history) lookups are first done by looking for the presence
of a hash entry in a hash table, then a positive hit is verified by
a lookup against the text file, if the newly-arrived and newly-written
history entry in the .pag file is *not* available to be read, it will
appear to the history k0de that the article has not yet been received.

What needs to be done, since the .pag file is mmap'ed, is to msync()
the file immediately following the history update, which is not done
in the history k0de.  When I was running my ill-fated NetBSD reader
machine, I would tail the last entries off the news logfile and do
grephistory lookups, and occasionally the data would return a hit,
sometimes it would not for a minute or more.

Allegedly the CNFS k0deZ and the other article spool k0deZ do make
use of msync() if config.h shows it needed.  Nonetheless, the `sm'
program which seeks to the offset in the CNFS buffer and then reads
the article very often showed old garbage that had not yet been
overwritten.  This matched what innfeed was logging the outgoing
feed, that was trying to deliver the old spool data, was seeing.
Here it could be a few minutes before the lseek+read would actually
return the new article data.  a `sync' call didn't help all the
time either.

I quickly gave up on NetBSD without UBC.  I see similar problems
with our only remaining NetBSD-1.4-current reader machine from many
months ago, not so much with duplicates since it uses the MD5-based
two-hash-table no-text-lookups history, but with apparent missing
articles.  The FreeBSD VM k0de does not have this problem, they
have had a unified buffer cache for a long time.  I've urged my
replacement to replace this machine ASAP, as I only found out about
this for certain a week or two before my departure and I had been
overwhelmed by other things.


:: 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

I've seen duplicates with alarming frequency on our 2.2 machine,
but this only seems to happen when expire runs but appears to fail
or somehow bail out, and the old history inodes are kept but are
*not* being updated -- after the failed expire, their timestamps
remain unchanged.  OF course, if history lookups are being done to
inodes that are unchanging, or to removed inodes somehow, especially
if those inodes were not properly built, then they're not seeing
recent articles and you get both a problem of duplicates, as well
as a boatload of articles that don't make it into history.

It appears that at least one way this can be triggered, out of
potentially several ways, is if INN becomes throttled during expire,
or else if INN is throttled at expire and becomes unthrottled.  I've
kept logs but I haven't analyzed them to see what's happened during
the expires followed by failed updates of the history files.

Aside from this, I haven't seen any other reason for duplicates with
the newer MD5-style history, and I've been in too much a state of
permanent sleep deprivation to be able to try to track down the
known cases where it has happened and the history files have failed
to have their timestamps updated properly.


But back to NetBSD, with what I *have* seen from the reader machine
and knowing that it does not have a unified buffer cache, I'd hardly
call that a red herring.  Anything less than a recent -current is
a waste of time with that OS for news.

Not that I want to disagree with you or anything, but I sure wish
I could kick the toblerone buzz that has me HYPER HYPER HYPER
Technical Details
Message-ID: <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!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!news.Contactel.CZ.POSTED!stavka.vszbr.cz!bofh.vszbr.cz!news.radio.cz!not-for-mail!not-for-meow!not-for-fluffy!not-for-anything
References: <m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <95253f$dpo$1@news.contactel.cz>
Subject: Re: Has anyone built INN-2.3.1 on Open BSD?
Date: Sun, 28 Jan 2001 22:05:36 +0000
From: Charlie Channelfeed <autocyberretributionmeowbot@plonk.invalid>
References: <m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.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!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!news.Contactel.CZ.POSTED!stavka.vszbr.cz!bofh.vszbr.cz!news.radio.cz!not-for-mail!not-for-meow!not-for-fluffy!not-for-anything
Newsgroups: news.software.nntp
Organization: Customer of Contactel s.r.o, Praha CZ
Lines: 100
NNTP-Posting-Host: 2dd950811eed8cd4920adef76f5c8ccd.contactel.cz
X-Trace: news.contactel.cz 980719536 b054d897c428e6ce96c614f6a75e4d8e
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