🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71141

Re: binary segment size and storage requirements

#71141
From: Curt Welch
Date: Tue, 26 Apr 2005 16:55
96 lines
6256 bytes
Lenny_Nero@hotmail.com wrote:
> Curt Welch  said:
>
> > noreply@nohow.org wrote:
> >> I'd like help in settling an argument.
> >>
> >> My friend Lenny claims that for most nntp servers that accept articles
> >> up to 4MB, each binary segment posted takes a full 4MB on the server.
> >>
> >> I'm running an inn2 server with 4MB article limit, and on my server, a
> >> 300k binary segment takes up maybe 305k.  That's in the worst case,
> >> and it's a far cry from the claimed 4MB.
> >>
> >> Having read about other storage methods, I can't imagine how Lenny
> >> could be correct.  Can you guys help me out?  How would you even go
> >> about making a news server that inefficient?
> >
> > No server ever written wastes 4BM to store a 2K article.  Modern
> > servers waste even less space because articles are typically stored
> > end-to-end.  My server only adds 3 extra characters between articles
> > (DOT CR LF) and a single 4 byte pointer per article.  A 1000 byte
> > article only uses 1007 bytes of stoarge space on my disks (not counting
> > other general overhead which is substantial but not really important to
> > your point).
>
> As normal with kooks [s]he has bent out of shape what I said.
>
> I said, as per a thread in abnsc & afn, I thought that it is better to
> post with a larger line count than a smaller 1, ie. sub 100 line.
>
> Is this not the case ???

It's a complex trade off.  The line count and the size of the article
doesn't have any substantial effect on retention.  It makes no difference
if you post 100 100K articles or 33 300K articles.  The total size is the
same either way and the amount of disk wasted is the same either way.  So
changing the line count doesn't affect retetion.

What you do cut down however is the number of headers, and the number of
articles.  Downloading 100,000 headers takes 3 times longer than
downloading 33,333 headers.  So if you post with large line counts, you
save people time downloading headers.  And with the size of some of the
binary groups, you also need large PCs just to download and sort all those
headers.  So larger line counts helps in that way.

And, news servers have to mainatin history files which are very important
to the operation of the server. This is just an index by Message_ID of all
the articles.  The more articles you get very day, the larger your history
file has to be.  And when trying to receive 80 articles per second, news
servers have to check each against the history file, and add each new
article to the history file, that makes it a very active index - on that
typically has to be held in memory in order to keep up with a full feed.  I
for eample just had to go to 8GB servers instead of the 4GB servers I was
using simply so I could increase the size of my history file to keep up
with number of articles.

So, posting with a large line count, helps reduce total number of articles
and helps a bit with these history file problems.

However, there are negatives as well.  In NNTP, you can't resume an aborted
download of a single article.  So if you download 80% of 800KB article, and
you get cut off, you have to start over and download all that data again.
If the post was done as 8 100KB articles, then you would have 600KB
downloaded and could pick up at article 7.

Also, newsfeeds are a store and forward system.  As articles move though
the mesh of usenet servers, they don't get sent to peers, until they are
completely received.  If you post smaller articles, that heleps them to
move from server to server much faster.  It helps your large multipart post
take lots of different paths (each article takes can take a different path)
to get to all the servers.  So as articles get larger, you increase the
odds that they might get lost in transit to some servers with poor
feeds/peers, and increase the total amount of time it takes for the full
set to show up on some distant servers.  Smaller articles in general do a
better job of flowing through usenet all together.

But the negative of that same issue is that the smaller the article, the
more parts you are moving, and the higher the probability that one part out
the set might be lost.

So, what size articles to post is a complex trade off where there are no
easy answers as to what's best.  In general, I'd say larger is better
mostly because of the reduced number of articles and headers people have to
deal with.  But there are limits to how large you can post without causing
more problems than you fix.

I don't know what size is actually working best these days.  It's something
you have to experiment with in each group to try and figure out.

However, switching from 200 KB to 800 KB articles is not going to have any
effect on retention as long as you post the same total number of bytes.
The only way to improve retnetion is to post fewer total bytes each day.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20050426125547.187$MT@newsreader.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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
References: <6TVae.33928$hu5.26389@tornado.texas.rr.com> <20050425002014.392$ho@newsreader.com> <pan.2005.04.26.00.49.34.594000@DONT.change.UNDERSCORE>

Show Full Headers
Complete Article Headers
Message-ID: <20050426125547.187$MT@newsreader.com>
Subject: Re: binary segment size and storage requirements
Date: Tue, 26 Apr 2005 16:55:47 +0000
From: curt@kcwc.com (Curt Welch)
References: <6TVae.33928$hu5.26389@tornado.texas.rr.com> <20050425002014.392$ho@newsreader.com> <pan.2005.04.26.00.49.34.594000@DONT.change.UNDERSCORE>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com Fmoxy98z08looQkBd0786LmunNV4H3SeDlb./_w8xXFTOfI5m
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
 ?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 96