🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51342

Sv.: Re: Sv.: Re: Sv.: Re: Sv.: How did that happen?

#51342
From: 'BOUSWMA Barry MCSE, Te1e Denmar...
Date: Tue, 20 Mar 2001 12:48
143 lines
7986 bytes
"'jeff@litech.org'" <jeff@litech.org> skrev i en
nyhedsmeddelelse:996qd3$7uv$1@marduk.litech.org...

> >You say INN throttles itself.  How?
>
> If INN is running with overview out-of-sync with the spool, it
> attempts to use article numbers that are already taken and
> throttles itself with something like "File exists writing SMstore

Ah.  That sounds more like the old case where the numbers on
the disk for the active file got out-of-sync with what the OS
had been able to commit to disk in the spool directories, where
the article number is the name of the file and matches what is
in the active file.  Since the active file is usually mmap'ed
and only updated to disk after a certain number of writes,
which I can't remember is 200 by default or if I've bumped it
up to that, at a crash it's highly likely that some directory
entries will have been committed before the active file is
flushed.

In theory, renumbering would take care of that with old INN,
but that was working directly on the spool proper.  If the
new INN does renumbering not based on the spool, but rather
via the storage API on the contents of the overview, and that
fails to match the spool contents, then you've introduced yet
another layer of complexity to fail or go wrong, requiring a
complete rebuild of overview before the renumbering can have
a hope to match the spool contents.


> >The step I'm missing
> >is seeing INN throttle, and the step I've done is to do part of the
> >rebuild/recovery even before the throttle that never happens happens
>
> after a crash it tries to start with the corrupted data and has
> probably already throttled itself by the time sshd is ready to
> talk to me (if I'm even around).  That's the difference, I

Actually no.  The difference, or rather the reason I don't see
this, is because the `file exists' can only happen in the case
of traditional spool, and since I never was able to reach the
point of stability where I'd bother attempting a stable and
Real Configuration for the desired retentions and storage
policies, I've never gotten past the point of tossing all the
articles into a handful of equal-sized CNFS buffers.  There the
article numbers bear no relation to the storage, and the only
data used is the overview data plus the CNFS header bitmaps and
pointer, which, like the active file, are not updated after every
single article write.

The biggest problem seems to be that with a typical filesystem,
you're depending on the OS to dump things usually every thirty
seconds, while at the same time these updates are not synchronized
with the updates buffered for the active file, bitmaps, and what
have you.  And INN doesn't bother to try to think of things as
needing a log that can be checkpointed and replayed.  Basically
the new INN has attempted to re-invent a filesystem, in order to
provide more efficient access to articles in non-traditional
storage means, but hasn't reeached the maturity of your typical
filesystem when attempting to compensate for its drawbacks --
the performance degradation of a large number of files in any
directory, lack of automagic removal of the oldest partition's
contents when it fills, and so on.  Remove the intermediary
layer of the storage API and things get much simpler, even to
the point of resembing INN before the storage API, amazingly.
The bulk of the hacks I've written, and possibly the best of
the recovery tools, are based on a particular configuration
without the generalization of the storage API calls.  Faster,
but less flexible.  Pick any two.


> >rebuild/recovery while INN runs, since the machine can barely keep
> >up with the incoming feed as it is and tens of thousands of readers
> >are expecting it to be available to them, so I can't afford the
> >lengthy downtime past the history rebuild.)
>
> Ah.  Interesting.  How long does rebuilding history alone take
> relative to building overview as well (I've always done the whole

To regenerate the (corrupt due to unclean shutdown) database files
from the history text (log)file takes no more than a few minutes
even with a several gigabyte sized text file.  I have no need to
try to rebuild the text file based on the contents of the spool;
merely scanning the spool to regenerate or overwrite the overview
information took days to complete.  This of course depends on the
nature of the spool, with binariez cycbuffers taking some 20 minutes
each, but a single equally-sized text buffer taking several days.

This isn't playing back just the uncheckpointed history logfile,
but rather recreating the entire logfile contents, if you want to
continue to look at in database or filesystem terms.  All this
info is stored locally so while one does rescan the entirety
of the file, it's far quicker than any other recovery process,
be it the old makehistory or expireover that went through the
whole spool, a very expensive process.

If I wanted to be really anal about it, I would rebuild history
based on the spool (although perhaps it would be better to have
a history method where one could update entries in-place, to
preserve the cancelled/expired message IDs, updating if needed
or at least verifying the articles present in spool without the
duplicate entry problem one has today, and in case the cycbuff
bitmaps or pointers weren't updated to point at the latest of
the articles to get history entries, they could be somehow
deleted from the database to allow them to be received again if
offered) but Shirley on a spool of any size, the downtime that
this sort of recovery requires is excessive, or if there were
a way to update the history while operating, by the time it
was determined that an article had been received, committed
to history, but was not available on the spool so the history
entry should be deleted, it would be too late as the invalid
history entry would have certainly caused any other peers to
have skipped the article if it still remained unsent somewhere.


> thing at once --- none of those pesky "customers" to worry
> about --- so we're clearly in different situations)?

Yeah, if you are running a Real News Swerver, rather than
just an archive of pr0n and warez, then you can get away
with a lot.  Or if you have redundancy through reliability.
But if you have a much smaller spool then your recovery can
be fast, and the simple differences in our spool configuration
make for a lot of other differences.



Of course, I could be simply utterly incompetent.

BOUSWMA Barry, MCSE
e-commercing your future!



>
>
>
>
>



Technical Details
Message-ID: <C105B47295EFA7.396EE0F11823CD@microsoft.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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!npeer.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2news
References: <97rd0l$g3i$1@allhats.xcski.com> <E058F1785BCA19.FEED65030A508F@microsoft.com> <9955oa$233$1@marduk.litech.org> <A20304C37891BE.EF478F00D91045@microsoft.com> <996qd3$7uv$1@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <C105B47295EFA7.396EE0F11823CD@microsoft.com>
Subject: Sv.: Re: Sv.: Re: Sv.: Re: Sv.: How did that happen?
Date: Tue, 20 Mar 2001 12:48:32 +0000
From: "'BOUSWMA Barry MCSE, Te1e Denmark Internet'" <pedophile@te1edanmark.dk>
References: <97rd0l$g3i$1@allhats.xcski.com> <E058F1785BCA19.FEED65030A508F@microsoft.com> <9955oa$233$1@marduk.litech.org> <A20304C37891BE.EF478F00D91045@microsoft.com> <996qd3$7uv$1@marduk.litech.org>
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!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!npeer.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2news
Newsgroups: news.software.nntp
X-Pedophile: BARRY BOUWSMA IS AN PEDOPHILE!!!
Organization: Te1e Denmark Internet
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Mail-To-News-Contact: postmaster@nym.alias.net
Lines: 142