Article View: news.software.nntp
Article #21822Re: News data storage model
From: bill davidsen
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
74 lines
4434 bytes
4434 bytes
In article <60677n$h8p$1@bigred.inka.de>,
Olaf Titz <olaf@bigred.inka.de> wrote:
| bill davidsen <davidsen@tmr.com> wrote:
| > Delete the oldest *really* doesn't work! You want to be able to
| > retain by group. To this end you can do expire at the time the
| > article is received, and put it in a file which will be deleted at
| > date D. If space gets tight you can always creep up on the date. You
| > really need a way to handle minimum retension, though, so that
| > things like a FAQ don't expire prematurely.
|
| This doesn't work either because you can't tune the expire priorities
| for existing articles. This is an important maintenance operation even
| if you do dynamic expire times.
Everyone has their preferences. I don't change that often that I
can't simply expire a little faster using the old policy until the
new one takes effect. And there's no reason you can't do a dynamic
change if you're willing to do the disk i/o.
| My experience with a severely hacked
| dexpire shows that delete the oldest articles (where "age" is a
| function of the real age and the group-specific priority(*)) works much
| more smoothly, especially if implemented as a daemon process which
| runs continuously or semi-continuously. And it _does_ work. :-)
| (Articles with explicit expire times are simply ignored by this
| process. They are processed by the history file, or in my
| implementation, by a separate database of explicit expire times.)
If you don't have a requirement for articles which are "nailed up"
that works. I have just expired on effective age at some sites, and
it worked well. But as an "only option" I don't think it flies.
perhaps putting the posts with absolute expiry in other files would
be a solution.
| > I would love to get rid of the current overlap in overview files,
| > with an entry in every group of a cross post. I just haven't been
| > able to make something else run as fast in all cases. There are lots
| > of people who are really good at database stuff, who might be able
| > to meet all goals of (a) small, (b) fast in real time, and (c) low
| > use of CPU overall. I get at most two of three.
|
| If the database consisting of articles, history and overview were
| normalized as of RDBMS theory, we would just have groups as lists of
| Message-IDs and every article access via Message-ID. This is
| inefficient wrt. disk accesses and would lose crosspostings in groups
| with different expire times.
Yes, all of what you say. That's just the problem I hit, the things
which are good practice and only have the information in one place
are also much slower than having a single prebuilt file per group.
Having a group be just a list is good practice, but it often entails
i/o costs.
| Since news servers are generally I/O bound, I would place your
| condition (c) lowest on the priority list. Small number of disk
| accesses for each operation should be of greater concern, and this
| fits both (a) and (b). This requires well-constructed index
| structures.
That's only true within a small range. A lot of things are done by
each reader, so a small CPU cost gets out of hand very quickly.
Things in the daemon happen once, so tradeoffs there are easier to
make. Anything in the reader processes has a high multiplier factor,
at least in serious servers.
--
bill davidsen <davidsen@tmr.com>
The net serves four of the five physical senses. You can get sight, and
sound, and to a limited extent tactile feedback. No one would deny that
some portions of the net smell, but I see no signs that taste will ever
come to the net. -me
Technical Details
Message-ID:
<60995e$1kuo$1@newssvr03-int.news.prodigy.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-mailReferences:
<5vpddn$qlb$1@news5.ais.net> <603943$rc2$1@bigred.inka.de> <6062ll$2m0a$1@newssvr03-int.news.prodigy.com> <60677n$h8p$1@bigred.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <60995e$1kuo$1@newssvr03-int.news.prodigy.com> Subject: Re: News data storage model Date: Tue, 23 Sep 1997 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <5vpddn$qlb$1@news5.ais.net> <603943$rc2$1@bigred.inka.de> <6062ll$2m0a$1@newssvr03-int.news.prodigy.com> <60677n$h8p$1@bigred.inka.de> 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: 274936417 Keywords: filesystem optimization Originator: davidsen@darkstar.prodigy.com Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp