🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Rob Morelli Mon, 13 May 2002 21:36
nntp server question
#58818
Author: Rob Morelli
Date: Mon, 13 May 2002 21:36
15 lines
1428 bytes
Can someone tell me what algorithm the common nntp
servers use for deciding when to drop messages?
For instance,
    1. Is it just a function of age (and if so,  how exactly is age
    measured).
    2.  Does it depend on how often the message is requested.
    3.  Does the server decide how many messages to keep,  or
    how much disk space to use?
    4.  Does the server allocate space on a per group basis or
    globally for all groups?

Thanks


Re: nntp server question
#58819
Author: Russ Allbery
Date: Mon, 13 May 2002 21:49
30 lines
2320 bytes
Rob Morelli <morelli@cs.utah.edu> writes:

> Can someone tell me what algorithm the common nntp
> servers use for deciding when to drop messages?
> For instance,
>     1. Is it just a function of age (and if so,  how exactly is age
>     measured).
>     2.  Does it depend on how often the message is requested.
>     3.  Does the server decide how many messages to keep,  or
>     how much disk space to use?
>     4.  Does the server allocate space on a per group basis or
>     globally for all groups?

Historically, it's a function of age alone.  In newer servers, though,
it's becoming more common to use cyclic storage, in which a certain amount
of disk space is allocated and messages are dropped when that space is
consumed.  In those cases, normally space is allocated globally for all
groups or for specific (usually large) classes of groups.

Keeping articles based on how often they're requested generally isn't a
good idea for discussion groups, if you think about the normal reading
pattern for a discussion group.  I don't know what that would be like in
binary groups; it's an interesting idea.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: nntp server question
#58839
Author: Jeffrey M. Vinocur
Date: Mon, 13 May 2002 21:50
52 lines
2473 bytes
In article <3CE031C3.4654649B@cs.utah.edu>,
Rob Morelli  <morelli@cs.utah.edu> wrote:
>Can someone tell me what algorithm the common nntp
>servers use for deciding when to drop messages?

Do you mean "drop" (like a packet being dropped) or "expire" (the
message goes away after being visible on the server for some
period of time)?

Your questions make it sound like you're asking about expiration,
so that's what I'll answer.

>    1. Is it just a function of age (and if so,  how exactly is age
>    measured).

Sometimes (and it can be either from the date in the headers or
from the date the article arrives).


>    2.  Does it depend on how often the message is requested.

Not on any server that I know of.


>    3.  Does the server decide how many messages to keep,  or

Not on any server that I know of.


>    how much disk space to use?

Sometimes.


>    4.  Does the server allocate space on a per group basis or
>    globally for all groups?

Generally the newsgroups being expired automatically (i.e., when
the space fills up) are separated into a few classes.  For
example, all of the binary groups might have some amount of disk
space total, all of the alt groups some (smaller) amount of disk
space, and the Big-8 groups might not have a space limit at all
(they might expire after one month, for example).

That is, the two types of expiration can be mixed on a per-group
(or per-set-of-groups) basis.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: nntp server question
#58825
Author: Curt Welch
Date: Tue, 14 May 2002 02:58
94 lines
5793 bytes
Rob Morelli <morelli@cs.utah.edu> wrote:
> Can someone tell me what algorithm the common nntp
> servers use for deciding when to drop messages?

All the server software works slightly differently, and all
can be configured to act differently.  It's just a function
of what the admin thinks is best for his system.

> For instance,
>     1. Is it just a function of age (and if so,  how exactly is age
>     measured).

That was common in older systems and is an option in many servers
still, but it's not used as much anymore.  It was common to have options
to expire based on the time the article showed up on the server or
based on the date in the article or a combination of either.

Systems that expired based on age also tended to suport the Expires: header
which allowed articles to expire sooner or to hang around longer.  FAQs
could be posted with a one month exires: time and then reposted in one
month.

Expiring based on age worked nicely when Usenet was much smaller and tended
not to take up the entire disk space on a machine.  Back in those days,
Usenet was just one of many services which would run on one system, and it
only took up a limited amount of disk space.  But when Usenet started
taking up entire disks, expiring by time was a problem.  You wanted to use
the entire disk, but had to set the time correctly to prevent it from
filling up and loosing new messages because there was no disk space for
them.  As Usenet volume increased, you had to constantly reduce your expire
times to keep it from filling up the disks.

>     2.  Does it depend on how often the message is requested.

No.  Or only indirectly.  News admins will sometimes tend to try and
figure out which groups people want to keep longer and adjust their
configuration so the more popular groups will stay around longer, or
so the least popular expire the quikest.  But I don't recall any system
be confiugred to automatcially expire based on this type of logic.

The basic NNTP protocal prevents that type of stuff from working very
well.  It would cause problems  if you tried to do that.  The protocol
assigns consigutively higher numbers to each new article put into a group
and most servers expire articles in close to the same order they showed
up.  The NNTP "GROUP" command reports the lowest number article not yet
expired in the group as well as the highest number.  Most newsreaders
assume that "most" articles in that range have not expired.  If you expire
the article out of order, most news clients won't correctly report to the
user which articles are still on the server and which have expired.  It
can make a group "look" like it's got 100K articles when in fact there
are only 100 articles in the group.  If your server allowed groups to get
that sparse, users would get very frusted because their clients would show
a list of 100K articles, but tell you "not available" everytime you tried
to read one of the expired articles.

>     3.  Does the server decide how many messages to keep,

I don't think I've every seen it based on a count of messages.

>     or
>     how much disk space to use?

The admin that configured the server decides how much space to allocate to
the news server.  Most large servers now (i.e. anything trying to get close
to a full feed) expire based on space.

The admins create "spools" which is a collection of disk space, and then
defines which articles go into which spools (normally by newsgroup name).
The news server puts each new article it receives into one of many spools.
When the spool is full, old articles are removed as required to make room
for each new article.

>     4.  Does the server allocate space on a per group basis or
>     globally for all groups?

It's seldom done per-group, but it could be configured that way.  Though it
would be insane to try and allocate separte space for every group.

The admin can set up as many different spools as they like, and then define
(using a configuration language for the server) which articles will go to
which spools.  It's typically done by which group(s) the article is posted
to so you can put all alt.binaries.* articles into one spool, and
everything else into another if you like.  Most servers allow you to sort
articles by things like size, and number of cross posts and many other
options as well, but mostly it's done in large sets based on newsgroup
names.

In the end, every server will be different.  You just have to talk to the
admin to see how he his his server configured.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: nntp server question
#58907
Author: Kai Henningsen
Date: Sun, 19 May 2002 11:17
24 lines
1883 bytes
jeff@litech.org (Jeffrey M. Vinocur)  wrote on 13.05.02 in <abpcf3$3jm$3@marduk.litech.org>:

> In article <3CE031C3.4654649B@cs.utah.edu>,
> Rob Morelli  <morelli@cs.utah.edu> wrote:

> >    3.  Does the server decide how many messages to keep,  or
>
> Not on any server that I know of.

That is interesting, because back when I was involved in programming for a  
BBS network (late 80s, early 90s), the mechanism we built in was to expire  
based on either age (received, I think) or number (I don't recall if we  
ever added space). I think we made it configurable per group.

And this mail/newsreader I currently used has the same kind of setup, and  
I tend to configure high-traffic groups "by number". Well, sometimes also  
very-low-traffic groups.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads