🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
120 messages
120 total messages Page 2 of 3 Started by Brian Kramer Mon, 12 Feb 1996 00:00
Page 2 of 3 • 120 total messages
Re: How to do a better USENET file system
#5393
Author: James Brister
Date: Thu, 29 Feb 1996 00:00
20 lines
1456 bytes
Consider this: articles are divided into categories according to their
expire time as defined in expire.ctl. For each category you have a
single file that gets new articles appended to it. The article lookup is
fast (history search for offset then seek and then read), and expiration
is simply choping off the head of the file and adjusting seek
offsets.

There are several issues I've not really though much about yet:
articles with an Expires header; changing the expiry time of a subset of
articles in a category.

How would people feel about having multiple articles in a single file and
thus loose (easy) access via tools like find and grep etc.

James
--
James Brister                                              brister@vix.com
The Internet Software Consortium

Re: How to do a better USENET file system
#5436
Author: Evan Champion
Date: Fri, 01 Mar 1996 00:00
17 lines
1204 bytes
brister@zip.com.au (James Brister) wrote:
>How would people feel about having multiple articles in a single file and
>thus loose (easy) access via tools like find and grep etc.

Make the single file some sort of high performance commercial [O]DBMS
and have as part of the deal full text indexing etc. and we'll talk
:-)

I prefer the separate file per article but if you can prove that it is
a better system than some of the other filesystem-based solutions I'd
vote for it.

Evan



Re: How to do a better USENET file system
#5443
Author: Evan Champion
Date: Fri, 01 Mar 1996 00:00
44 lines
2645 bytes
brister@zip.com.au (James Brister) wrote:

>Bzzzt. Wrong answer :-0 Can't be anything commercial in INN. And after
>my small exposure to a couple different DBMS's I wouldn't touch one again
>with a 10-foot keyboard.

You just haven't used the right one.  Talk to Object Design Inc. in
the US...  Now there's a funky package.

It was, however, said as a joke, as I know that there will never be
anything commercial in INN and prefer to keep it that way.

>There'd be a dramatic reduction in filesystem activity--no directory
>searches for filenames etc.  It's fairly obvious (I think) that simply
>appending to one of a few files would be heaps faster than the current
>system. Finding the article would also be much faster--the same amount of
>history lookup as now, but then a simple seek into the appropriate file. 

But how is it any faster than any of the other proposed schemes
(personally I like the store-by-message ID scheme?  And what happens
if there is a bit of corruption in one of those files?  There's no
checksum'ing of news articles, so if you used a simple offset seek
then you could run in to trouble -- perhaps losing an entire newsgroup
if it was 1 file per newsgroup.

>As long as everything happens via NNTP, the news readers shouldn't care
>what the structure of the article layout is.  The real problem comes for
>those people who wont use NNTP even for articles stored locally. Also
>those people that have extensive scripts to dig through their spool for
>things (like automatically uudecoding alt.sex.pictures :-) would loose.

I personally don't see local reading as being a big problem.  All the
news readers that you'd use on a local spool work on NNTP anyway.
You'd just loose the alt.binaries crowd :-)

>It would be difficult to convince me that using raw disk i/o would be worth
>it.

Agreed.

Evan


Re: How to do a better USENET file system
#5452
Author: Evan Champion
Date: Fri, 01 Mar 1996 00:00
77 lines
3803 bytes
brad@clarinet.com (Brad Templeton) wrote:
>	b) There is no need for a free list, block allocation, or
>	   fragmentation

I disagree that you wouldn't need a free list/block allocation and
that there wouldn't be fragmentation of some sort (though the kind I'm
thinking of isn't the same as yours, I think).  Assume the worst case
expiration policy, with varying expiration policies for different
newsgroups and expiry by date the article was sent.

Assume you have a whopping :-) 5 files on your disk and that the 5
files take up the entire disk:

1 2 3 4 5

Today, articles 2 and 3 were expired:

1 [] [] 4 5

Without a free list of some sort, however, the server doesn't know
that blocks 2 and 3 were expired, and remember there's no space left
at the end of the disk.

And even if it knows that blocks 2 and 3 were expired, you've got this
hole in the middle of your disk that has to be sorted out if you are
going to have articles written contiguously.  Free space fragmentation
will be a problem even if file fragmentation is not.

>	c) News articles are written in one big write, they do not grow
>	   during creation

There are generally UNIX system calls to pre-allocate disk space (or
as a side effect pre-allocate disk space).  In my case, truncate() and
ftruncate() seem to do that nicely (4.4BSD).

You might give it a try; right after the open() statement, shove in a
ftruncate( fd, article_size) and see what happens (of course, that
assumes that your ftruncate works the same as mine).

>	a) Write a series of tools that do things like article-cat
>	   and article rm given an old style path

I think that would be a requirement, not a nice add-on (especially
article-cat; article-rm can be done through ctlinnd cancel).

>	b) If you want to really do it, write a filesystem handler that
>	   creates a read or unlink only filesystem with the articles, and
>	   then even old readers will work.

Unfortunately, that would be operating system specific (the file
system interface to the kernel).

Do the performance optimisations/assumptions made on one system work
on another?  What happens to RAID systems?  I've seen RAID systems
where you actually have to tell the RAID controller what kind of
filesystem that you're running so it will optimise itself.  There are
all kinds of wierd and wonderful things that UNIX can better take care
of than an application.  I think that is why I see database vendors
moving away from raw filesystem access; when you have to deal with so
many platforms, it is just too much trouble.  Who knows; there are
probably platforms that don't even allow raw disk writes except when
in single user mode.

I understand that doing block read/writes to a device is much more
efficient than going through a filesystem, and I'm not questioning
that in any way.  What I am questioning is if the extra effort put in
to it is worth it.

My personal opinion would side more towards writing articles by
message ID to a normal filesystem as a temporary measure until the net
decides what to do with news.

Evan



Re: How to do a better USENET file system
#5454
Author: James Brister
Date: Fri, 01 Mar 1996 00:00
38 lines
2393 bytes
Evan Champion (evanc@synapse.net) wrote:
: brister@zip.com.au (James Brister) wrote:
: >How would people feel about having multiple articles in a single file and
: >thus loose (easy) access via tools like find and grep etc.

: Make the single file some sort of high performance commercial [O]DBMS
: and have as part of the deal full text indexing etc. and we'll talk
: :-)

Bzzzt. Wrong answer :-0 Can't be anything commercial in INN. And after
my small exposure to a couple different DBMS's I wouldn't touch one again
with a 10-foot keyboard.

: I prefer the separate file per article but if you can prove that it is
: a better system than some of the other filesystem-based solutions I'd
: vote for it.

There'd be a dramatic reduction in filesystem activity--no directory
searches for filenames etc.  It's fairly obvious (I think) that simply
appending to one of a few files would be heaps faster than the current
system. Finding the article would also be much faster--the same amount of
history lookup as now, but then a simple seek into the appropriate file. 

As long as everything happens via NNTP, the news readers shouldn't care
what the structure of the article layout is.  The real problem comes for
those people who wont use NNTP even for articles stored locally. Also
those people that have extensive scripts to dig through their spool for
things (like automatically uudecoding alt.sex.pictures :-) would loose.

It would be difficult to convince me that using raw disk i/o would be worth
it.

James
--
James Brister                                              brister@vix.com
The Internet Software Consortium

Re: How to do a better USENET file system
#5455
Author: James Brister
Date: Sat, 02 Mar 1996 00:00
56 lines
3199 bytes
Evan Champion (evanc@synapse.net) wrote:
: brister@zip.com.au (James Brister) wrote:

: >Bzzzt. Wrong answer :-0 Can't be anything commercial in INN. And after
: >my small exposure to a couple different DBMS's I wouldn't touch one again
: >with a 10-foot keyboard.

: You just haven't used the right one.  Talk to Object Design Inc. in
: the US...  Now there's a funky package.

Used it. No thanks. Better than Versant though (strictly from the aspect
of making C++ code look close to 'normal').

: It was, however, said as a joke, as I know that there will never be
: anything commercial in INN and prefer to keep it that way.

OK. Good :-)

: >There'd be a dramatic reduction in filesystem activity--no directory
: >searches for filenames etc.  It's fairly obvious (I think) that simply
: >appending to one of a few files would be heaps faster than the current
: >system. Finding the article would also be much faster--the same amount of
: >history lookup as now, but then a simple seek into the appropriate file. 

: But how is it any faster than any of the other proposed schemes

I meant it would be heaps faster than the current scheme. Any sort of
log-structure article layout seems to be the way to go. I'll need to
find the previous proposals (I cam in half way through this thread) and
have a look.

: (personally I like the store-by-message ID scheme?  And what happens
: if there is a bit of corruption in one of those files?  There's no
: checksum'ing of news articles, so if you used a simple offset seek
: then you could run in to trouble -- perhaps losing an entire newsgroup
: if it was 1 file per newsgroup.

Yeah. The current scheme give you the utmost in flexibilty, but look at the
cost. When I said articles would be simply appended, that would have to be
along with some metadata to help the whole process (checksum maybe, and
article begin and/or end markers, for example).

: I personally don't see local reading as being a big problem.  All the
: news readers that you'd use on a local spool work on NNTP anyway.
: You'd just loose the alt.binaries crowd :-)

:-) Yep... I think sufficent tools could be provided to let current
spool-processing programs still be useful (they have to modified of
course).

James
--
James Brister                                              brister@vix.com
The Internet Software Consortium

Re: How to do a better USENET file system
#5459
Author: Brad Templeton
Date: Sat, 02 Mar 1996 00:00
32 lines
2194 bytes
In article <LOC.4h66bv$ib1@the-fly.zip.com.au>,
James Brister <brister@zip.com.au> wrote:
>There'd be a dramatic reduction in filesystem activity--no directory
>searches for filenames etc.  It's fairly obvious (I think) that simply
>appending to one of a few files would be heaps faster than the current
>system. Finding the article would also be much faster--the same amount of
>history lookup as now, but then a simple seek into the appropriate file. 
>
>It would be difficult to convince me that using raw disk i/o would be worth
>it.

Why?  News wants very little of what the filesystem has to offer, and even
seeking into a huge file (while certainly possible) has to go through the
filesys and it's block lists, allocation, free lists etc.   Though if the
filesystem is one of those that is good at making these files contiguous and
can use that so that seeks are fast, it's ok.

(If you build your news files right after opening a filesys then they will
be contiguous, and so this is not too bad.)

If you use the filesys you get it's cache, which is both good and bad.
You are probably smarter about what to cache.


However, individual files are not generally needed.  If the news system
is logging out direct seek addresses to the log file and to the overview
files, there is no reason to use the filesystem at all.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: How to do a better USENET file system
#5460
Author: Brad Templeton
Date: Sat, 02 Mar 1996 00:00
38 lines
2358 bytes
In article <LOC.4h8gvp$ss7@bushwire.mira.net.au>,
>	o	fsck (Agreed not at the newsfs level)
Ie. of no value for a news file system.  And such an fsys can't get
corrupted, per se, other than that the overview files and history file
can get corrupted, but fsck doesn't help with that.   You probably would
want to record certain information redundantly to allow rebuilding in
the event of damage, but you need that for the real filesys.
>
>	o	Runs over NFS and other networked FS
That I will give you is a reason to use one big file, perhaps, if you
can get it contiguous and thus have 100% efficient seeks.
>
>	o	Fairly well debugged block allocation, deallocation
>		code

There is no allocation, no deallocation in the scheme I have proposed,
except for overviews, which you might put in the regular filesys.
>
>	o	The ability to use existing Unix tools in some
>		way (Note this doesn't imply a file per article
>		implementation, just that there will be some number
>		of files > 0 that you will want to examine in multiple
>		ways without having to write a tool for *every*
>		occassion.

Almost all unix tools can work on a raw device as though it is
a big file, no difference between a big file in the filesys and a raw
disk device as far as the tools are concerned.
>
>	o	Easy backup and replication of critical bits, eg
>		an index file might be backed up often.
Put those In the filesys.  Backup of news is pointless, and better
acheived just by having two peered news servers.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: Uh, oh...Usenet has got beeg trouble....
#5469
Author: James Brister
Date: Sat, 02 Mar 1996 00:00
13 lines
1030 bytes
Jerry Aguirre (jerry@strobe.ATC.Olivetti.Com) wrote:

: Interesting idea.  Requires changing an awful lot of news readers
: though unless one absolutely limits reading to NNTP.

Now there's something I'd vote for in a New York second.

James
--
James Brister                                              brister@vix.com
The Internet Software Consortium

Re: How to do a better USENET file system
#5472
Author: James Brister
Date: Sat, 02 Mar 1996 00:00
23 lines
1620 bytes
Mark Delany (markd@mira.net.au) wrote:
: brad@clarinet.com (Brad Templeton) writes:

: >brister wrote:
: >>It would be difficult to convince me that using raw disk i/o would be worth
: >>it.

: >Why?  News wants very little of what the filesystem has to offer, and even

Everthing Mark said, plus simplicity. The code to store articles in a
few contiguous files and expire by chopping the heads off the files
would be pretty simple (this is ignoring the peripheral stuff that would
have to be added to deal with the new layout). The thought of trying to
implement that via raw i/o makes me nervous because news is such a
strain on file activity and a bug in that would much more dramatic
(plus, not everyone would be able, or want to have it use raw i/o).

James
--
James Brister                                              brister@vix.com
The Internet Software Consortium

Re: How to do a better USENET file system
#5477
Author: Mark Delany
Date: Sat, 02 Mar 1996 00:00
55 lines
2434 bytes
brad@clarinet.com (Brad Templeton) writes:

>>It would be difficult to convince me that using raw disk i/o would be worth
>>it.

>Why?  News wants very little of what the filesystem has to offer, and even

While acknowledging that a filesystem has little to offer news
especially, it does have the following:

	o	fsck (Agreed not at the newsfs level)

	o	Runs over NFS and other networked FS

	o	Fairly well debugged block allocation, deallocation
		code

	o	The ability to use existing Unix tools in some
		way (Note this doesn't imply a file per article
		implementation, just that there will be some number
		of files > 0 that you will want to examine in multiple
		ways without having to write a tool for *every*
		occassion.

	o	Easy backup and replication of critical bits, eg
		an index file might be backed up often.

Disadvantages are:

	o	Not very good if you create and remove lots of files

	o	Not very good at forcing contiguous files where
		desired

If a new news system didn't do much of the former and was designed
well, then maybe contiguousness isn't such a big win.

In general having the ability to run od, emacs, perl whatever, over
your news files for debug and fixing purposes provides a degree of
comfort and ease.

>However, individual files are not generally needed.  If the news system
>is logging out direct seek addresses to the log file and to the overview
>files, there is no reason to use the filesystem at all.

A new news file architecture might end up with a number of logical
files, perhaps 1-10 only a daily basis or expire basis, or order basis.

If that number was less than, say 100-1000 or so. Then a standard file
system might be a very convenient container.


Regards.

Re: How to do a better USENET file system
#5480
Author: Brad Templeton
Date: Sun, 03 Mar 1996 00:00
36 lines
2458 bytes
In article <LOC.4hblgn$2fk@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>brad@clarinet.com (Brad Templeton) writes:
>
>>THe big downside -- cancels do not save disk space, unless you decide to
>
>Ahh yes. Good point. I didn't read this closely enough in my earlier
>follow-up. What with the binary spamming we're seeing these days it's
>a fairly important thing to worry about too.

Also early expires do not save space.  For ClariNet news this is a problem
as we cancel half of what we issue, and have explicit expires that vary
based on source.  So this would not be very space efficient for us.
It would be more efficient for regular usenet.

However, if you think about the fact that with ordinary net software, you
need to use a regular filesys and keep it 10-20% empty for efficiency,
this may not be a waste except on ClariNet news, and not even on that
if your spool is Clarinet news plus ordinary usenet news.

Alternately if cancels are a big problem, you can write a cleaner which
compacts an area.  But that requires rewriting all overviews and history
files as you do it (since they have seek addresses).  And you have to
do this live, with locking issues, if you plan to write back on top of the
file you are compacting.  (Otherwise if you have enough free space to
generate a whole new set of files and link them in last minute, you don't
need to do the compacting!)

Frankly, at 20 cents/megabyte, this is becoming moot.  As wasteful as
ClariNet spools would be with cancels, we only waste about 5mb a day,
so 2 weeks waste costs $14.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: How to do a better USENET file system
#5481
Author: Brad Templeton
Date: Sun, 03 Mar 1996 00:00
28 lines
2022 bytes
In article <LOC.4h9put$5jd@the-fly.zip.com.au>,
James Brister <brister@zip.com.au> wrote:
>Mark Delany (markd@mira.net.au) wrote:
>Everthing Mark said, plus simplicity. The code to store articles in a
>few contiguous files and expire by chopping the heads off the files
>would be pretty simple (this is ignoring the peripheral stuff that would
>have to be added to deal with the new layout). The thought of trying to
>implement that via raw i/o makes me nervous because news is such a
>strain on file activity and a bug in that would much more dramatic
>(plus, not everyone would be able, or want to have it use raw i/o).

Huh?  What difference would there be between using one big file and
a block device, other than cache and nfs?

Putting the articles in a few contiguous files would help some reading,
but feeding would still seek all over, and there is still lots of file
opens, and writes still cost.

Doing it with raw I/O is one seek and one write per article, can you get
the real filesystem anywhere near this?

And every Unix has raw I/O and just about every other system does too,
but almost all news servers run on Unix anyway.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: Poor performance with INN and FreeBSD.
#5483
Author: Kevin Kadow
Date: Sun, 03 Mar 1996 00:00
24 lines
1951 bytes
In article <4gqvs8$7u@uriah.heep.sax.de>, J Wunsch <j@uriah.heep.sax.de> wrote:
>Geert Bosch <geert@fozzie.sun3.iaf.nl> wrote:
>I doubt anybody will be bothered enough to rewrite a file system from
>scratch just for news servers. :)  (Almost everything else doesn't
>have more than a few hundred entries per directory.)

I don't know- I've been contemplating rewriting the entire operating system
just for news servers- perhaps this is a market for the makers of the FASwerver
dedicated NFS fileserver to get in to...

Of course, I was thinking more along the lines of a log filesystem with the
overviews stored in a separate SQL-oriented database, indexed by message-id,
starting sector, and group:article#. Once the filesystem has been filled,
the oldest articles are automatically overwritten as new messages are added
to the spool.

Want to add more capacity? Stripe the data in one 'newsfs' across multiple
drives.

Need to have different expiration times for different group hierarchies?
break the spool into separate 'newsfs's by group.


Re: How to do a better USENET file system
#5487
Author: Mark Delany
Date: Sun, 03 Mar 1996 00:00
116 lines
5371 bytes
brad@clarinet.com (Brad Templeton) writes:

>What you do is just use a circular buffer.  Allocate a fixed amount of
>space for each of the classes of news, and as articles come in, stream
>them out to the 5 circular buffers.  After it loops around, it starts
>replacing old articles with new ones in the same class.

Yup.

>This actually might work efficiently in the regular filesys too, as long
>as you have contiguous buffer areas, and I will agree that in the real
>filesys, you could even have the advantage of deciding to shrink or grow
>a circular buffer file.

Or symlink one off to another spindle or three if news gets a bit
tight.

>becomes pretty good too, particularly if you have fewer than 5 classes
>or have the different blocks on different spindles.

How an article is placed in a class could easily be rule-based, much
as expire is now.

>Reading is OK, but not super efficient.  It is hard to say if you can
>optimize for reading these days, since very few people read articles
>contiguously in newsgroups.  Instead you see 100 articles and you pick 5.

Yes, reading is a tricky problem. At least we have overview to help
out here.

The other "proximity" read advantage you want to try and get is for
systems sending a significant number of relatively full feeds.
Multiple reads of the same article for each downstream site is a
significant amount of read I/O but that problem may best be handling
by a sweep-nntp (discussed in another thread here recently). But you
probably know about this problem already I imagine.

>(Note the classes need not be per newsgoup, you could do things like
>"big articles into the short class", "alt group big articles into the
>very short class" etc.)

Yup. A class is just were an article ends, based on some external
ruleset such as expire.ctl

>THe big downside -- cancels do not save disk space, unless you decide to

As someone else said. You don't need to save space. A class always
takes X amount of disk space. You buy an 8G disk and split into 4 x 2G
classes (or some such). You're not going to use the disk for anything
else, so you may as well use it all from day one. Your "expire times"
simply get shorter as the classes wrap around more quickly. All that
you need to do is time stamp the point at which you wrap and the
difference between two stamps gives you the current expire time of a
given class.

If a class was defined as either a file system file or a raw-disk,
then those who favour a raw disk for performance could do so. It's
just an open() as far as the news writing code is concerned, with a
defined class size.

class1	/dev/raw/d1	8G	alt.*
class2	/dev/d2		1G	comp.*
class3	/mnt/campus/d4	5G	campus.*
class4	/dev/null	0G	*

Oh, and in terms of fetching an article, questions arise as to whether
it's over-written. This turns out to be pretty triv to detect in a
non-locking manner if the news writing s/w uses a cycle-count that
increments everytime it wraps a class. If the current cycle-count and
next write offset are externally visible to readers, then reading goes
something like this: (assuming class, offset, size and cycle-written)
are available from an external location, such as a history or overview
db):

/* get article info */
	read(history, {class, article_offset, article_size, article_cycle});

lab1:	/* Check to see if the article has definitely been overwritten */

	if (current_cycle > (article_cycle + 1)) article_has_expired;
	if ((current_cycle == (article_cycle +1) &&
		(next_write_offset > article_offset)) article_has_expired;

/* Article hasn't been over-written yet but it may be between now and .. */

	cache_open(class);
	seek(class, article_offset);
	read(class, article_size);

/* .. now, so we'd better check again */

	if (current_cycle > (article_cycle + 1)) article_has_expired;
	if ((current_cycle == (article_cycle +1) &&
		(next_write_offset > article_offset)) article_has_expired;
	}

/* Still not over-written, what we read *must* be ok */

	article_is_good;

The writer has to be careful about update order of cycle_count and
next_write_offset (and indeed there are questions of atomicity with
these two values at the point at which cycle_count increments but
tricks are possible, eg stashing the lot in the first word or two of
the class file).

Alternatively, the cycle count can be emedded in the header of each
article - this approach lends itself to fixed-length article sizes in
the class (and the complications of wildly varying article size,
multiple segments and stuff, but that does have some merit too in
terms of robustness).


Regards.

Re: How to do a better USENET file system
#5492
Author: Mark Delany
Date: Sun, 03 Mar 1996 00:00
53 lines
2623 bytes
Mark Delany <markd@mira.net.au> writes:

>brad@clarinet.com (Brad Templeton) writes:

>>THe big downside -- cancels do not save disk space, unless you decide to

>Ahh yes. Good point. I didn't read this closely enough in my earlier
>follow-up. What with the binary spamming we're seeing these days it's
>a fairly important thing to worry about too.

So maybe policy is the best way of dealing with this? Small cancels
don't matter for space and large ones - if they are out-of-group
postings - can be put into a nasty short-lived class, eg:

# Class:dev:class-size	maxartsize:wildmat pattern

1:/dev/rdsk1:2g		60000:*binaries*
2:/dev/rdsk2:4g		20000:*
3:/dev/rdsk3:1g		20000:local.*
4:/dev/rdsk4:2g		200000:*	# Junk class
5:/dev/null:0g		-1:*		# bitbucket - unwanted && too big

Condition for entry into a class is <= maxartsize *and* match on
wildmat. The /dev/null class could be a notional thing of course.

	Class 1 is saying legit binary groups with a size of <= 60K
	per article have 2G to play with.

	Class 2 says all articles <= 20K have 4g to play with.

	Class 3 is a 1g class for local postings that are < 20K, 
	gives them much longer expire times than Class 2 would.

	Class 4 is a catch all for really large postings that are
	most likely, "out-of-group".

	Class 5 ditches huge postings in any group.

Net effect is that "out-of-class" large postings go into class 4 which
either wraps quickly or is hit with cancels from the various spambots
around the traps. In either case, who cares how quickly articles in
this category wrap?

Of course any such newsfs would live as a library for maximum
"bolt-in-ability" by readers and writers, but one thing I don't
know. Is any or all of this moot because of inn 1.5?  It may be moot
for a whole stack of other reasons, but a 1.5 reason would be one that
would stop me pretty quick.


Regards.

Re: How to do a better USENET file system
#5493
Author: Brad Templeton
Date: Sun, 03 Mar 1996 00:00
54 lines
3211 bytes
Of course, if you are willing to give up per-group expire control, or
perhaps willing to accept several "classes" of expire (ie. say 5 different
classes -- very short, short, medium, long and extremely long) then you
can implement news super-efficiently either on raw disk or the raw
filesystem.

What you do is just use a circular buffer.  Allocate a fixed amount of
space for each of the classes of news, and as articles come in, stream
them out to the 5 circular buffers.  After it loops around, it starts
replacing old articles with new ones in the same class.

This actually might work efficiently in the regular filesys too, as long
as you have contiguous buffer areas, and I will agree that in the real
filesys, you could even have the advantage of deciding to shrink or grow
a circular buffer file.

This makes incoming news blindingly efficient, and actually the feeding
becomes pretty good too, particularly if you have fewer than 5 classes
or have the different blocks on different spindles.

Reading is OK, but not super efficient.  It is hard to say if you can
optimize for reading these days, since very few people read articles
contiguously in newsgroups.  Instead you see 100 articles and you pick 5.

SO perhaps this is even better than what I proposed.

(Note the classes need not be per newsgoup, you could do things like
"big articles into the short class", "alt group big articles into the
very short class" etc.)

Note that the classes are not defined in terms of time, but of space.
You say "500mb for articles of class 2" and the expire time is whatever
fits in 500mb


THe big downside -- cancels do not save disk space, unless you decide to
have a "compactor" crunch them out, or decide that single articles will
go into slots freed by cancels, at a small cost in efficiency to save the
disk space.   The downside -- you have to do it *soon* because the new articles
get the expire time of the old article, and once a cancelled slot gets too
close to the expire line, you don't want to use it again.

Probably good to make the "very long" class have a compactor, and use it
for articles with long explicit expires, and groups you want to keep a while.

Or even have an "infinite" class that is just a big file that grows and
grows until it gets a write error, and only starts expiring then, and mails
you before that.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: How to do a better USENET file system
#5494
Author: Sean Donelan
Date: Sun, 03 Mar 1996 00:00
31 lines
2512 bytes
In article <DnoG2v.67M@clarinet.com>, brad@clarinet.com (Brad Templeton) writes:
> What you do is just use a circular buffer.  Allocate a fixed amount of
> space for each of the classes of news, and as articles come in, stream
> them out to the 5 circular buffers.  After it loops around, it starts
> replacing old articles with new ones in the same class.

The COM software (DEC-10, DEC-20 era software) worked this way.  Remember
MAILNET?  It used a circular queue of fixed sized blocks (in one monster
"file").  Each article used how ever many blocks it needed.  There were
pointers to the first block of each article.  When it reached the end, it
looped around and started "freeing" blocks by deleting the article pointers
until enough blocks were available for the next article.  It got a lot
more complicated because you could make and break links between articles
and conferences at any time.  To make a "best of" conference, you didn't
need to repost the article, just "link" the article block to the best 
of ... conference article list.  Gosh, this is starting to sound a lot
like a full-fledge file system.  It even had interesting failure modes
just like a real file system.  Yes, human programmers can write code
that messes up even a simple circular queue during power failures (and if
the programmer gets it correct, the disk controller designer that re-orders
disk writes for performance will still trash it).

News spools do have some interesting properties a file system designer
could exploit.  The write-once, never changed nature of most article files.
The bulk delete of almost every article in FIFO order allows garbage
collection possibilities.
-- 
Sean Donelan, Data Research Associates, Inc, St. Louis, MO
  Affiliation given for identification not representation

Re: How to do a better USENET file system
#5500
Author: Mark Delany
Date: Sun, 03 Mar 1996 00:00
14 lines
1013 bytes
brad@clarinet.com (Brad Templeton) writes:

>THe big downside -- cancels do not save disk space, unless you decide to

Ahh yes. Good point. I didn't read this closely enough in my earlier
follow-up. What with the binary spamming we're seeing these days it's
a fairly important thing to worry about too.


Regards.



Re: How to do a better USENET file system
#5499
Author: Brad Templeton
Date: Mon, 04 Mar 1996 00:00
33 lines
2143 bytes
In article <LOC.4hd3ds$4al@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>brad@clarinet.com (Brad Templeton) writes:
>
>>>>THe big downside -- cancels do not save disk space, unless you decide to
>
>>Also early expires do not save space.  For ClariNet news this is a problem
>
>>Frankly, at 20 cents/megabyte, this is becoming moot.  As wasteful as
>
>True enough. It's the reduction in I/O load that's more interesting,
>especially (but by no means exclusively) expires. Local policy could
>help catch the other cause for cancel space saving, namely
>inappropriate binary group postings.


Indeed, the scheme I have described with a few megs of ram for buffering,
could write out news articles at a tremendous rate -- the raw disk rate,
which on many systems today would be close to 2000 articles per second,
or 172 million per day.   In fact, news would become CPU bound instead of
I/O bound in all probablity.

The harder part is the overview files.  To do them efficiently would require
much more buffering, perhaps 4kb per active newsgroup to make it efficient,
but even that is not out of reach.

A rate of 500 articles per second is not at all out of the question, but of
course for most servers they can't even come in that fast.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: How to do a better USENET file system
#5502
Author: Mark Delany
Date: Mon, 04 Mar 1996 00:00
35 lines
2277 bytes
brad@clarinet.com (Brad Templeton) writes:

>What you do is just use a circular buffer.  Allocate a fixed amount of
>space for each of the classes of news, and as articles come in, stream
>them out to the 5 circular buffers.  After it loops around, it starts
>replacing old articles with new ones in the same class.

In addition to this, there is another consideration regarding group
access.

The standard news arrangement with one directory per group provides an
implicit access path that nnrp takes advantage of. Namely that a
directory contains the *real* definition of the articles in that
group. readdir() is used quite a bit to find which numbers are
actually there to fill in missing bits of overview, determine the
current range of articles and so on. In other words, it's definitive
whilst overview and active are treated as secondary sources of
information. A quick look at the way nnrpd processes GROUP, LISTGROUP
and XOVER demonstrates this point.

If such implicit data disappears along with the directories, then any
alternative FS has to have an associated overview mechanism which
provides the same certainty about group details as the directory
system currently does. This pretty much implies fairly tight
integration of the overview writing mechanism with the new FS writing
code. Fortunately, overchan.c is not a complicated beast, but it does
generate quite a bit of I/O, as does expireover.

Of course group and overview stuff is really only useful for readers.
Are there enough people still reading news to worry about this?


Regards.

Re: How to do a better USENET file system
#5503
Author: Mark Delany
Date: Mon, 04 Mar 1996 00:00
17 lines
1215 bytes
brad@clarinet.com (Brad Templeton) writes:

>>>THe big downside -- cancels do not save disk space, unless you decide to

>Also early expires do not save space.  For ClariNet news this is a problem

>Frankly, at 20 cents/megabyte, this is becoming moot.  As wasteful as

True enough. It's the reduction in I/O load that's more interesting,
especially (but by no means exclusively) expires. Local policy could
help catch the other cause for cancel space saving, namely
inappropriate binary group postings.


Regards.

Re: How to do a better USENET file system
#5507
Author: Karl_Kleinpaste
Date: Mon, 04 Mar 1996 00:00
10 lines
919 bytes
brad@clarinet.com (Brad Templeton) writes:
> Almost all unix tools can work on a raw device as though it is
> a big file, no difference between a big file in the filesys and a raw
> disk device as far as the tools are concerned.

"emacs /dev/rrz24"

Kinda makes you shiver, huh?

Re: How to do a better USENET file system
#5508
Author: bill davidsen
Date: Mon, 04 Mar 1996 00:00
38 lines
2516 bytes
Actually, the MBS BBS I wrote some years ago did this sort of thing,
and it worked nicely. I had a fixed block size for an article (oh
no, wasted space) and put large articles in their own files. Then
things were indexed for lookup by file and offset.

The secret of doing this for news would be to do expire at post
time. When the article is put in a file, the file chosen is by
expiration time. I think you need resolution better than one day, so
you might generate ten files for each day you want to expire. At the
appointed time you purge the index entries from the database and
release the file.

This has several advantages, one being that the cpu load of expire
(what little it is) falls over the entire day, the actual release is
the main file plus as many large articles in their own files,
typically far less disk and directory i/o than current practice.

While every UNIX I've used will allow you to truncate the end off a
file, dropping the head is another matter, with various non-portable
approaches available. Just getting rid of the entire file is easier.

If you like the "one big file" approach, then you can simply keep a
bitmap of free space, and every time you release the last article
block you check to see if a truncate is appropriate. I really like
the file as an expiration unit better.

In either case, if you get short of disk you can just expire early.

All of these approaches are based on the premise that you have
decided to use NNTP reading only, something I think is a good admin
decision in any case.
--
	-bill davidsen (davidsen@tmr.com)
Behavioral scientists at Harvard University have proven that there
are six things a man must do to keep a woman happy. They have also
determined that no one has any idea what these things are.

Re: How to do a better USENET file system
#5515
Author: Matus Uhlar
Date: Tue, 05 Mar 1996 00:00
85 lines
5058 bytes
At Sun, 25 Feb 1996 21:09:13 GMT Brad Templeton (brad@clarinet.com) wrote:
-> It's not hard to do a more efficient USENET file system.

So make it :)

-> You just take chunks of raw disk (block devices).  You need a "free"
-> list when it starts, but in truth once running there is no free list, just
-> a list of the "oldest" (least desired) articles.

That's possible, but - why don't you believe in performance of file systems?
Most of machines are running fast file systems as they have them compiled in
kernel. Do you think they are not optimized for speed ?

-> When a new article (or article batch if you want to be real efficient)
-> comes in, you scan the list of oldest articles for one near the end that
-> is of similar or slightly larger size.  You do some blocking to make this
-> very likely to be an old article.    And you then thwap your new article,
-> or batch, down on top of that old article.   A single seek and a single
-> write call.   Then you record the seek address in an overview/header
-> database that you are building elsewhere, either on your raw disk or in
-> the real filesystem.

We telkad about compression for less disk usage and maybe for faster
transferring files. Can you handle this ?

-> Big articles are the only problem, though there are enough of them that
-> this will probably work if you are willing to block big articles to larger
-> and larger blocksizes.   That wastes an amount of disk, but the disk
-> saving of the above scheme (which can probably block articles to within
-> 16 bytes) is so immense that a little wastage on the big boys is no problem.

Big articles suck ! USENET is not place for warez...if somebody can
distribute big files, he should compress them, split them, or put them on
FTP. I disabled articles with sizes over 256 kB and I'm currently thinking
about changing the limit so 128 or 64 kB.

sorry to all, but disks are not enough big for many big files. and Usenet
grows up...and it always will. we can not overload our lines/machines with
transferring of files which will nobody read.

-> Or, you can put big articles in the real filesys, or you can support
-> non-contiguous big articles.  Not exacty hard, but the above system
-> is darn close to trivial.

-> No free list.  No expire.  All the disk always used fully.  Old articles
-> disappear as new ones come in and over-write them.   All articles written
-> with a single seek and write, and read with a single seek and read, plus
-> occasional block writes to the overview database.  (With luck you can
-> cache enough of that in ram so you write it out a block at a time or during
-> idle periods on your disk at the end of batches.  It's ok if you wait a
-> few minutes before the article "appears" live.   For the outgoing batches
-> you don't need the overviews, you just write out a log file with message-ids
-> and seek addresses, and let your feeder read that)

we need expiration, anyway - dynamic expiration is great. if we get new
article, we'll remove old. But not the oldest...we should define priorities
for newsgroups...some are more important then others.

-> Of course you have to write an NNTPD to read from this, and some debug
-> tools to let people poke around articles manually.  But you simply can't
-> get any more efficient than this without going to some fancy caching.

-> (With a fancy cache, you can try to group articles, so that you do only
-> one seek and write for groups of articles, and quite possibly, also for
-> feeding.)

-> You can keep the "oldest" article list as a stream calculated as articles
-> come in, or you can write a program that recalcs it at night so that you
-> can tune parameters as you wish even after the fact.

-> This system can never run out of disk space unless you allow mega-huge
-> articles, it is always exactly full, but efficiently so.

But. when your system crashes, how would you detect and repair errors ?
When you are creating new filesystem, you must carry on many things you
don't need to cary on already existing filesystems.

good luck.
-- 
 Matus Uhlar, sysadm at Regional node of SANET in Kosice, Slovakia
 E-mail: Matus.Uhlar@tuke.sk   WWW: http://www.tuke.sk/users/uhlar
 IRC: fantomas, uhlar   PGP: finger uhlar@ccnews.ke.sanet.sk | pgp
 ...I'd like to add something cool here, but I don't know what ;-)

Re: How to do a better USENET file system
#5517
Author: Brad Templeton
Date: Tue, 05 Mar 1996 00:00
19 lines
1621 bytes
In article <4hfvti$1cv@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>In short, any discussion of "rotating classes" has to include the
>requirement for an integrated overview with a read performance that is
>no worse than the current mechanism. Also of course, write performance
>should be approximately linear with volume.
>

You must have missed the earlier parts of the thread.  Once you move
the news into one big file, and you stop using the directory structure
of the unix filesystem, then the overview *becomes* the directory structure
of the new storage method, and so of course is perfectly in sync
with itself.     This was stated from the start and there was naturally
no debate about it, so your point was confusing.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: How to do a better USENET file system
#5542
Author: Wolfgang Schelongowski
Date: Sat, 09 Mar 1996 00:00
20 lines
1355 bytes
In <4hl3hl$n17@olivea.ATC.Olivetti.Com> jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:

>In article <4hk39f$b6v@midland.co.nz> simon@omega.co.nz (Simon Lyall) writes:
>>(a) Can only work with full ip sites. No uucp etc.

>Let them eat cake :-)  

Cut her head off :-)

>Seriously, internet connectivity seems to be on
>the rise.  

Where the prices of telecommunication are zero (or practically zero), yes. 
But outside the USA it's different. _Very_ different.
-- 
Wolfgang Schelongowski  ws@xivic.ruhr.de

Mustela locuta, causa finita.   (With apologies to St. Chris)

Re: How to do a better USENET file system
#5586
Author: Alan Brown
Date: Tue, 12 Mar 1996 00:00
21 lines
1403 bytes
In article <DntILz.Atz@clarinet.com>, Brad Templeton <brad@clarinet.com> wrote:

>In fact, it's even better with big files since big files are by nature
>slow to pull down a link on demand.  *MUCH* better to send them in advance.
>This in fact is where USENET can win over the web with its distributed
>efficiency.



Three words: "Proxy Caching Webserver"

More sites should run them.

AB

-- 
"But you can't say they have arrived to classify your nervous lies
 What's right, what's not, what may not be. Don't try your tricky tests on me
 For I won't live in fear my friend - that every day could be my end"

Re: How to do a better USENET file system
#5587
Author: Brad Templeton
Date: Tue, 12 Mar 1996 00:00
27 lines
1744 bytes
In article <LOC.4i37s5$ou@papaioea.manawatu.gen.nz>,
Alan Brown <alan@papaioea.manawatu.planet.org.nz> wrote:
>In article <DntILz.Atz@clarinet.com>, Brad Templeton <brad@clarinet.com> wrote:
>
>>In fact, it's even better with big files since big files are by nature
>>slow to pull down a link on demand.  *MUCH* better to send them in advance.
>>This in fact is where USENET can win over the web with its distributed
>>efficiency.
>
>
>
>Three words: "Proxy Caching Webserver"
>
>More sites should run them.

No, this is the wrong answer, I am sure I covered it in this message or
an earlier one.

USENET is good because as the first person to read your article on my system,
I did not have to wait to fetch it from your system.  Poxy cache normally
only helps the 2nd person to read the article, unless you have forward
cache, which is what USENET is good at.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

How to do a better USENET file system
#5621
Author: Michael Shields
Date: Wed, 13 Mar 1996 00:00
23 lines
1581 bytes
In article <4hsj41$hnp@piano.synapse.net>,
Evan Champion <evanc@synapse.net> wrote:
> The only real
> problem that still poses question marks for me is what happens on
> platforms where you require root access to do raw device access.

chgrp news /dev/raw-disk
chmod 660 /dev/raw-disk

> But anyway, as far as this goes its all talk.  I suggest that people
> who want to change the Usenet filesystem send an official proposal
> something to the INN maintainers and then they can make a decision
> about which way to go on this.  Then the resources can be spent on
> coding instead of arguing :-)

I suggest people present a proof of concept running on at least a 50k
article/day feed.  That's not even close to a full feed, but it should
be enough to see where the new bottlenecks are, and whether the system
is faster overall.
-- 
Shields, CrossLink.

Re: How to do a better USENET file system
#5638
Author: Brad Templeton
Date: Thu, 14 Mar 1996 00:00
27 lines
1998 bytes
But, as I noted at the start of this debate, if the average readership of
articles in a group is higher than 1.0 at your site, or perhaps even
less than that, it is a good idea just to get a plain old feed, and bring
it to your site in advance, so you get to read it immediately.

*Especially* if it is a big article.

ClariNet publishes photos, and we provide them in two sizes.  One small
size for modem users, but the other file, usually about 60K, is there to
take advantage of what USENET does best.  Because that 60K photo is on your
own local server or disk, you don't wait for it, the way you would such
an item out there on the net, even with a T1, just because web servers
are slow.   Now the limiting factor is your own hardware, and that's how
you want it.

So you want to predict probable readership and send the article ahead.

You also want a network (we don't have one) that has the idea of idle time,
so that you can use the idle time to send stuff like forward cache material
and other stuff that you want but don't want to slow down real traffic for.

IP doesn't have packet priority though.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: How to do a better USENET file system
#5640
Author: Mark Delany
Date: Thu, 14 Mar 1996 00:00
17 lines
1238 bytes
shields@crosslink.net (Michael Shields) writes:

>I suggest people present a proof of concept running on at least a 50k

I'm having a bit of a doddle for this exact purpose. First measurable
step will be something that understands just enough nntp wrapper to
take ihaves from a local news server. No integration, no readers, no
streaming, no nuthin' except something that approximates the real I/O
impact of inbound articles. Reader load would be the second step.

I wouldn't mind knowing if anyone else is trying to get to that sort
of point.


Regards.

Re: How to do a better USENET file system
#5657
Author: Jerry Aguirre
Date: Thu, 14 Mar 1996 00:00
36 lines
2624 bytes
In article <Do66LF.7yC@clarinet.com> brad@clarinet.com (Brad Templeton) writes:
>USENET is good because as the first person to read your article on my system,
>I did not have to wait to fetch it from your system.  Poxy cache normally
>only helps the 2nd person to read the article, unless you have forward
>cache, which is what USENET is good at.

Brad, wern't you the one who worked out a demand feed scheme where
subscribing to a group caused it to start being fed?  Pretty huge delay
getting that first article though :-).

Certainly one could have look ahead caching.  Threaded reading makes
this a little more complex as people seem to jump around but there is
no reason it couldn't pre-fetch the next article in a thread.

What is really needed to make this work is regional caching.  This could
also make the current web more usable.  I find the web barely tolerable
and I think it is mostly because the sites I am going to are overloaded
either in bandwidth or system capacity.  As you say a site cache does
nothing to help if I am the first person at my site to access a URL.

I think that the various providers need to supply proxy caching service
and encourage, perhaps even force, their subscribers to use it.  The odds
of someone at my site having looked at the same data are small but the
odds of someone on the same provider are many times greater.

Providing proxy caching would be in the best interest of the providers
as it would reduce the bandwidth on their main links.  With less usage
they can have more subscribers and make more money.  (If someone is
going to say that the LD connections are a small part of the budget than
how come so many networks have overloaded LD connections?)

With regional caches the problem then changes from providing a high
performance news server to providing a high performance proxy cache.
I expect that the proxy cache server is a more tractable problem.

Re: How to do a better USENET file system
#5697
Author: Dougal Campbell
Date: Sat, 16 Mar 1996 00:00
56 lines
3709 bytes
Brad Templeton (brad@clarinet.com) proclaimed:
[....stuff about 1.0 readers/group....]

> ClariNet publishes photos, and we provide them in two sizes.  One small
> size for modem users, but the other file, usually about 60K, is there to
> take advantage of what USENET does best.  Because that 60K photo is on your
> own local server or disk, you don't wait for it, the way you would such
> an item out there on the net, even with a T1, just because web servers
> are slow.   Now the limiting factor is your own hardware, and that's how
> you want it.

I still think binaries over usenet is a bad idea.  While I understand
your reasoning behind saying that it's a good distribution medium, you
have to admit that you are saying that from the position of having the
resources to house that data.  For a small site (like mine :), it's a
lot harder to say "we need to triple the disk space on our news server
so we can pull the binaries groups, despite the fact that probably 80%
of the articles will never been downloaded by our users".

The nature of newsgroups is that they hold volatile data mirroring the
normal flows of conversations.  The data is there long enough for
people to read it and respond, then it expires.  The usual nature of
binary data is that it represents something less transient (except in
the case of all the nekkid ladies, which are viewed by the feverish
fans of alt.binaries.pictures.* then deleted when their hard drives
fill up :) [1]

I personally think that binaries have had no place on Usenet since ftp
is pretty much generally available, and email/ftp gateways exist for
those less fortunate in their connectivity.

I guess this is slightly off the topic that brought this up, which was
sucking vs. feeding and NNTP vs. HTTP.  But Brad's notions about Usenet
being a perfect distribution method for binary data has been bugging
me.  From a logical standpoint, maybe.  From a practicality standpoint,
it really blows.  Even if you *do* have the resources.

Don't get me wrong -- I'm not just trying to whine and say "I don't
have the space, so don't try to push binaries on me".  If my boss came
to me and said, "we just got a 10GB RAID system", my reaction would not
be "now we can carry binaries".  My reaction would be "Great!  Now we
can have a really loooooong expiration time!  Umm....  We need more
RAM."

[Note 1: this philosophy fully extends to comp.binaries, and not just
alt.binaries.  It's just so darned easy to pick on the
alt.binaries.pictures groups.  I object to all binaries on usenet,
regardless of hierarchy, subject matter, usefulness, race, sex, or
religion.  I'm an Equal Opportunity Elitest :)]
--
Dougal Campbell      | "Quick to judge, quick to anger. |      Rush
System Administrator |  Slow to understand.             |  "Witch Hunt"
interQuest / Hsv, AL |  Ignorance and predjudice        | Moving Pictures
dougal@iquest.com    |  And fear go hand in hand."      |      1981

Re: How to do a better USENET file system
#5722
Author: Wolfgang Schelongowski
Date: Sun, 17 Mar 1996 00:00
33 lines
1769 bytes
[Distribution: inet deleted]

In <31446C77.412@netscape.com> Brian Hernacki <bhern@netscape.com> writes:

>Has anyone seen any really good stats/numbers on the split between
>UUCP and non-UUCP sites? 

Most of the ~ 2000 sites in this and the adjacent domain use UUCP.
[They are situated less than 20 miles from where I live.] As tele-
communication prices have just _increased_ by more than 100%, NNTP is 
for the rich and/or clueless only. At least if they're connected to
Usenet via a dial-up link.

>(I assume most of the later are internet
>sites using NNTP but just in case..). 

No. It's quite common here for medium sized sites (e.g. feeding several 
hundred sites) to get news by UUCP over TCP/IP. What's more, news is 
transported by protocols which are neither UUCP nor TCP/IP, but we
shouldn't discuss ZConnect etc.







-- 
Wolfgang Schelongowski  ws@xivic.ruhr.de

Mustela locuta, causa finita.   (With apologies to St. Chris)

Re: How to do a better USENET file system
#5732
Author: Evan Champion
Date: Mon, 18 Mar 1996 00:00
40 lines
2406 bytes
Michael Shields wrote:
> > The only real
> > problem that still poses question marks for me is what happens on
> > platforms where you require root access to do raw device access.
> 
> chgrp news /dev/raw-disk
> chmod 660 /dev/raw-disk

Ack, sorry, I was thinking one thing and writing another.  What happens on platforms where you need to
be in single user mode for raw disk access?

This is going to be too wide for most browsers, but here goes:

From the BSDI BSD/OS 2.1 manpage on init:

     0     Insecure mode - immutable and append-only flags may be turned off.
           All devices may be read or written subject to their permissions.

     1     Secure mode - immutable and append-only flags may not be changed;
           disks for mounted filesystems, /dev/mem, and /dev/kmem are read-
           only.

     2     Highly secure mode - same as secure mode, plus disks are always
           read-only whether mounted or not.  This level precludes tampering
           with filesystems by unmounting them, but also inhibits running
           newfs(8) while the system is multi-user.

I am sure that there are platforms where something like init level 2 is the default, and it is possible
that you may not even be able to change that depending on what security packages you have installed.
 
> I suggest people present a proof of concept running on at least a 50k
> article/day feed.  That's not even close to a full feed, but it should
> be enough to see where the new bottlenecks are, and whether the system
> is faster overall.

Agreed.

Evan

Re: How to do a better USENET file system
#5789
Author: Jerry Aguirre
Date: Mon, 18 Mar 1996 00:00
26 lines
2100 bytes
In article <Do9xr1.z6@clarinet.com> brad@clarinet.com (Brad Templeton) writes:
>But, as I noted at the start of this debate, if the average readership of
>articles in a group is higher than 1.0 at your site, or perhaps even
>less than that, it is a good idea just to get a plain old feed, and bring
>it to your site in advance, so you get to read it immediately.

But Brad, that could be satisfied by having a daemon running in the
backgroup that would pre-fetch entire groups into the local cache.
This could be driven from a manually maintained list or automatically
take note of what groups had been recently read.

This way you get the fast response for all the groups you would normally
"subscribe" to but you can still stray off into other groups with the
only expense being slower response time.  This is certainly better than
the current scheme of having to ask your news admin to add a group you
want, waiting for him to do that, waiting for him to mail to the feed
site to add it, and then finally getting only articles posted after all
that took place.

Anyone willing to pay for the bandwidth and disk can prefetch everything.
Doubtless there would be sites for which this would be preferable.  A
provider with lots of subscribers would have someone reading just about
every group.  For them a central server could prefetch everything and
then the slaves could fetch locally from that.

Re: How to do a better USENET file system
#5790
Author: Brad Templeton
Date: Tue, 19 Mar 1996 00:00
23 lines
1835 bytes
In article <4idisk$311@polo.iquest.com>,
Dougal Campbell <dougal@vespucci.iquest.com> wrote:
>Brad Templeton (brad@clarinet.com) proclaimed:
>The nature of newsgroups is that they hold volatile data mirroring the
>normal flows of conversations.  The data is there long enough for
>people to read it and respond, then it expires.  The usual nature of
>binary data is that it represents something less transient (except in
>the case of all the nekkid ladies, which are viewed by the feverish
>fans of alt.binaries.pictures.* then deleted when their hard drives
>fill up :) [1]

True, though our example -- news photos of current events -- does match
the pattern of the text, and if there is more than one reader per machine,
it should indeed be sent ahead.

However my point stands that it is not the *size* of the data that tells
whether it makes sense bia USENET, but the usage.  And the fact that nekkid
ladies are more static data is a usage related factor.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: How to do a better USENET file system
#5800
Author: Evan Champion
Date: Tue, 19 Mar 1996 00:00
40 lines
2830 bytes
Jerry Aguirre wrote:
> But Brad, that could be satisfied by having a daemon running in the
> backgroup that would pre-fetch entire groups into the local cache.
> This could be driven from a manually maintained list or automatically
> take note of what groups had been recently read.
> 
> This way you get the fast response for all the groups you would normally
> "subscribe" to but you can still stray off into other groups with the
> only expense being slower response time.  This is certainly better than
> the current scheme of having to ask your news admin to add a group you
> want, waiting for him to do that, waiting for him to mail to the feed
> site to add it, and then finally getting only articles posted after all
> that took place.
> 
> Anyone willing to pay for the bandwidth and disk can prefetch everything.
> Doubtless there would be sites for which this would be preferable.  A
> provider with lots of subscribers would have someone reading just about
> every group.  For them a central server could prefetch everything and
> then the slaves could fetch locally from that.

I like this idea as a _future_ technology.  As I think I said to you via e-mail (and 
might as well repeat for posterity :-) the standards track can be very slow and it 
could be years before anything is agreed to (especially with something as prominent 
as news, with so many people with their fingers in the pie).

What I would like to see is:

1.  an official group be set up to look in to the future direction of news at the 
transport level
2.  those with ideas on what to do about news using existing transport methods (ie: 
storage) come forward with a proof-of-concept and then the it can be decided which 
ideas really work and thus which will be implemented in a future INN

It's all just talk for now and I think pretty much every argument has been exhausted.  
It comes down to "put your money where your mouth is" and see what actually works out 
of all the ideas floating around.

Evan

Re: How to do a better USENET file system
#5803
Author: Vincent Archer
Date: Tue, 19 Mar 1996 00:00
31 lines
1911 bytes
Jerry Aguirre (jerry@strobe.ATC.Olivetti.Com) wrote:
> But Brad, that could be satisfied by having a daemon running in the
> backgroup that would pre-fetch entire groups into the local cache.
> This could be driven from a manually maintained list or automatically
> take note of what groups had been recently read.

Pre-fetch?
If you know beforehand that you need some specific subset of articles,
a push (i.e. NNTP feed) is less ressource intensive than a pull (i.e.
suck feed).

A caching server would have thus serveral levels of feeding:
	1) on-demand article feed (user wants to read article, article gets
		read somewhere)
	2) on-demand pre-fetch (user wants group, articles in the group gets
		read somewhere before he reads)
	3) on-demand pre-fetch (group gets read regularly, articles are
		pre-fetched while a connexion is "idle")
	4) on-demand feed (group gets read regularly, server feeds normally
		caching server)

> Anyone willing to pay for the bandwidth and disk can prefetch everything.

It's no a prefetch. Better to have a standard feed.

-- 
Vincent ARCHER  -=-=-  Herve Schauer Consultants -=-=-   archer@hsc.fr.net
Tel: +33 1 46388990                                    Fax: +33 1 46380505


Re: How to do a better USENET file system
#5812
Author: James Brister
Date: Tue, 19 Mar 1996 00:00
19 lines
1480 bytes
Evan Champion (evanc@synapse.net) wrote:

: I like this idea as a _future_ technology.  As I think I said to you via
: e-mail (and might as well repeat for posterity :-) the standards track
: can be very slow and it could be years before anything is agreed to
: (especially with something as prominent as news, with so many people
: with their fingers in the pie).

This is completely off topic, but the IETF standards run at light speed
compared to others. I spent 9 months in an OSI-related environment. So many
standards, so long to produce them, and so many of them bordering on the
useless. Glad to be free of that.

James
--
James Brister                                              brister@vix.com
The Internet Software Consortium

Re: How to do a better USENET file system
#5822
Author: Robert Krten
Date: Wed, 20 Mar 1996 00:00
41 lines
2415 bytes
Evan Champion (evanc@synapse.net) wrote:
[snip]
: What I would like to see is:
: 1.  an official group be set up to look in to the future direction of news at the 
: transport level
: 2.  those with ideas on what to do about news using existing transport methods (ie: 
: storage) come forward with a proof-of-concept and then the it can be decided which 
: ideas really work and thus which will be implemented in a future INN
: It's all just talk for now and I think pretty much every argument has been exhausted.  
: It comes down to "put your money where your mouth is" and see what actually works out 
: of all the ideas floating around.
:
: Evan

I have submitted an article for publication in Doctor Dobb's Journal
that should be appearing May 1996.  It describes a news storage system
that you might find interesting.  I won't summarize the entire article
here :-) but the salient points are:

	1) news is stored in a few (very) large files, based upon its
	   expiry date,
	2) a virtual filesystem is created that maps individual news
	   articles onto portions of the few large files.

This way, expiry (on my machine, a 486/33) takes on the order of
1 to 2 SECONDS.  Access is still fast, if not faster than under
a regular filesystem based news, because the entire directory structure
is stored in cache.

If you want more information, send me an email, or look at the article
(it should be out in April), or look at the URL
http://www.parse.com/kn_README.html, it is the readme from the distribution.

I'm currently getting a newsfeed of about 70 MB/day with no major problems.
The limiting factors are disk size and modem speed :-)

Cheers,
-Robert Krten


Re: How to do a better USENET file system
#5835
Author: Evan Champion
Date: Wed, 20 Mar 1996 00:00
51 lines
3568 bytes
Jerry Aguirre wrote:
> This is contrary to what has worked in the past.  The only group set up
> like this was the NNTP V2 group.  Ever seen their report? :-)
> 
> A news was not done by a committee.
> B news was not done by a committee.
> C news was not done by a committee.
> INN was not done by a committee.
> NNTP was not done by a committee.
> 
> In each case the development had hundreds of helpful people pointing
> out design flaws and bugs.  But the development was initiated and
> controlled by one or two people.

I think that most things start off as small projects and gradually grow to something 
much larger.  I don't see most protocols starting off by committee; they start by a 
guy hacking on his computer, and then he says to his friends "heh, check this out," 
and before long it is an unofficial Internet standard :-)  But news is no longer 
just one guy hacking on his computer, and the concerns of a much larger community 
have to be addressed.  At any rate, I don't see the difference between 1 guy 
controlling the development of a project and others providing input and a committee 
chairman and a group of people providing input.  It all comes down to the same 
thing: get people talking about it in a forum designed to accomplish a goal.

> The way I see it the replacement for news will come in either of two
> ways.  One is that a sufficiently compatable system, at least to the
> point of allowing for a gateway, will be developed and gradually spread
> to replace the current scheme.  This would be similar to the way NNTP
> is replacing UUCP for transport and direct spool access for reading.
> People will change because the new scheme will offer sufficient
> benifits to be worth the effort to change.

Sure.  As soon as a version of INN supports any new transport method its use will 
grow very quickly.  But you still have to come up with what you're going to 
implement in INN :-)  I am a firm believer in "if you build it, and it is any good, 
they will come" but you have to build it if you expect anyone to come.

> The other posibility is that some new, totally independant, scheme will
> develop.  It will be so great that people will just drop that clunky
> old news and use it instead.  Before you say that is imposible consider
> the explosive growth of the web.  While not entirely replaceing news
> functionality yet it is encroaching on several areas.

Remember that the web didn't explode until Mosaic came around, and that was because 
for the first time people saw the Internet in colour.  Unfortunately, news isn't as 
glamourous :-)  There are lots of good things a new news transport system could do 
but most of them would not be visible to the end user.

Evan

Re: Poor performance with INN and FreeBSD.
#5840
Author: Karl L. Swartz
Date: Wed, 20 Mar 1996 00:00
77 lines
4762 bytes
In article <199602292319.SAA01686@po_box.cig.mot.com>,
Kevin Kadow <kadow@komondor.cig.mot.com> wrote:
>I don't know- I've been contemplating rewriting the entire operating system
>just for news servers- perhaps this is a market for the makers of the FASwerver
>dedicated NFS fileserver to get in to...

An entire news server is pretty heavy-weight, but Network Appliance, the
makers of the FAServer aka toaster, is in the news market in a sense -- their
machines make an excellent /var/spool/news.  We're in the process of
converting to such a system at SLAC, and I know of at least two other major
news sites that use them in a similar role.

Frankly, I was pretty skeptical of the idea of having an NFS-based
/var/spool/news for my news server, figuring the access over the network
would be sure death.  The appeal of having an enormous filesystem was
sufficiently tempting for me to at least give it a try, and I set up some
tests to compare a local disk with a model 1400 "toaster."  The tests
consisted of a mixture of unbatching a bunch of news and deleting selected
files in random order, with other activity running "off the clock."
Unbatching was two to three times faster using than toaster than a local
disk, while the deletes were nearly an order of magnitude faster.

One place where you probably lose (I haven't tested it yet) is with INN and
outgoing feeds which can keep up in real time.  In this case, as long as
articles stay in cache, the local disk is better, though not because of
anything to do with disk performance.

Hopefully, I'll have a paper with all the details at LISA this year.

>Of course, I was thinking more along the lines of a log filesystem with the
>overviews stored in a separate SQL-oriented database, indexed by message-id,
>starting sector, and group:article#.

I talked with Margo Seltzer a bit about news after one of her talks on the
BSD 4.4 log-structured filesystem and she thought news would be an excellent
application for LFS.  I'd like to give it a try, but so far the code is still
supposed to be pretty buggy and I haven't had the time to fiddle with it.
I've never given the NOV part of it much thought since that's never seemed to
be the bottleneck, though maybe integrating it to handle the directory
portion of the FS would be interesting.

>Once the filesystem has been filled, the oldest articles are
>automatically overwritten as new messages are added to the spool.

Nice idea, but it doesn't address varying expiration times, not to mention
seasonally varying loads.

>Want to add more capacity? Stripe the data in one 'newsfs' across multiple
>drives.

This is one of the very nice features of using a "toaster" for the job.

>Need to have different expiration times for different group hierarchies?
>break the spool into separate 'newsfs's by group.

That's awfully coarse.  What about certain subsets of hierarchies which you
want to have different expiration times, perhaps because your readers care
more about those particular groups?  There are also varying expiration
periods built into news in the form of cancelation and superseded articles
(shorter expire times) and expiration dates on individual articles
(potentially much longer expire times, such as for FAQs).

Separate filesystems also mean you have to invest more time in system
management, looking not just at how much space you expect to need overall,
but at which pockets you think you'll need it in.  One of the attractions to
the "toaster" is that you just throw more disk at it when necessary, without
worrying about where exactly it should go.  With disks being cheap and
reduction in staffing being plentiful, that's very attractive.

-- 
Karl Swartz		|INet	kls@unixhub.slac.stanford.edu
SLAC Computing Services	|	   or kls@chicago.com
1-415/926-3630		|UUCP	uunet!lll-winken!unixhub!kls  -or-  ditka!kls
(SLAC and the US Dept. of Energy don't necessarily agree with my opinions.)


Re: How to do a better USENET file system
#5844
Author: Jerry Aguirre
Date: Wed, 20 Mar 1996 00:00
34 lines
2201 bytes
In article <314EF1E4.2EEC@synapse.net> Evan Champion <evanc@synapse.net> writes:
>What I would like to see is:
>
>1.  an official group be set up to look in to the future direction of news at the 
>transport level

This is contrary to what has worked in the past.  The only group set up
like this was the NNTP V2 group.  Ever seen their report? :-)

A news was not done by a committee.
B news was not done by a committee.
C news was not done by a committee.
INN was not done by a committee.
NNTP was not done by a committee.

In each case the development had hundreds of helpful people pointing
out design flaws and bugs.  But the development was initiated and
controlled by one or two people.

The way I see it the replacement for news will come in either of two
ways.  One is that a sufficiently compatable system, at least to the
point of allowing for a gateway, will be developed and gradually spread
to replace the current scheme.  This would be similar to the way NNTP
is replacing UUCP for transport and direct spool access for reading.
People will change because the new scheme will offer sufficient
benifits to be worth the effort to change.

The other posibility is that some new, totally independant, scheme will
develop.  It will be so great that people will just drop that clunky
old news and use it instead.  Before you say that is imposible consider
the explosive growth of the web.  While not entirely replaceing news
functionality yet it is encroaching on several areas.

Re: How to do a better USENET file system
#5847
Author: Evan Champion
Date: Wed, 20 Mar 1996 00:00
37 lines
3194 bytes
James Brister wrote:

> This is completely off topic, but the IETF standards run at light speed
> compared to others. I spent 9 months in an OSI-related environment. So many
> standards, so long to produce them, and so many of them bordering on the
> useless. Glad to be free of that.

While perhaps the regulatory part is not held back by the stupidities etc. that go on in other 
organisations, you have to realise the number of people who will want to have news done "their 
way".  I think watching any parliamentary channel (ie: CSPAN in the US) proves my point :-)

There are a whole lot of issues to discuss in this.  If you push a new transport method a 
little further and include the client side, do you do something like scrap the entire NNTP 
protocol and just use web browsers with a modified news: URL?  Could news then be served by 
web servers?  If that issue ever came up, I would expect companies like Netscape to jump on it 
because they have excellent web technology but are weaker on the news front.  In the scheme 
where you distribute just URLs and overview data, do you use the present "two friends" method 
of news transport or do you move to a "centralised" data repository or do you multicast the 
information and anyone who is listening can then just pick up the URLs directly (while 
multicasting is not necessarily the most reliable or available transport method today, 
remember that news can't be reinvented every few years to match technology changes and so have 
to think of these things now) or do you do some combination or all of the above?  I only 
listed about 5 issues there, and yet I can already see the heated debate they would cause.

In addition, you have to take in to account implementation time.  How long would it take for 
people to implement a new transport method, both in code and on the net?  How long before any 
new transport method makes available the same volume of news that you can get via existing 
news transport means?

I will be pleasantly surprised if a quick solution comes from any work on news at a transport 
level.  Realistically, however, I don't think it is going to happen.  This is why I think it 
would be a good idea to run a group working on transport level issues and a group working on 
storage issues in parallel.

Evan

Re: How to do a better USENET file system
#5858
Author: Jerry Aguirre
Date: Thu, 21 Mar 1996 00:00
38 lines
2831 bytes
In article <31505E54.41B9@synapse.net> Evan Champion <evanc@synapse.net> writes:
>James Brister wrote:
>There are a whole lot of issues to discuss in this.  If you push a new transport method a 
>little further and include the client side, do you do something like scrap the entire NNTP 
>protocol and just use web browsers with a modified news: URL?  Could news then be served by 
>web servers?  If that issue ever came up, I would expect companies like Netscape to jump on it 

I would try to build on the existing web technology.  I see no reason that
the future news reader could not be a standard web browser.  The rest is
just a (small :-) matter of organizing the data.

>because they have excellent web technology but are weaker on the news front.  In the scheme 
>where you distribute just URLs and overview data, do you use the present "two friends" method 
>of news transport or do you move to a "centralised" data repository or do you multicast the 

This is a socially crucial issue.  It might be more efficient to have
central servers for the indexes but I would want to avoid that.  Look
at the problems with group moderators disappearing and sites abandoned
on autopilot!  Then there are the issues of censorship.  A site that
hosted a group might want to have some say about what was in the group
even if it was only the indexes and not the articles themselves.

I would envision something like the current store and give to two friends
scheme but only for the indexes, not the articles.  This reduces the
volume of data by an order of magnitude and resolves many of the issues
plagueing the net.  We no longer argue about storing multiple articles
in one file.  Overviews already store the entire group's data in a
single file.

Each server would have to build its own indices but you probably want
that data locally anyway for performance reasons.  You want a local
server to cache for performance reasons so requiring one for the indexes
encourages good behavior.

Much of the current research such as multicasting for news distribution
could still be applied to the distribution of the indices.

Re: How to do a better USENET file system
#5868
Author: Jerry Aguirre
Date: Thu, 21 Mar 1996 00:00
39 lines
2850 bytes
In article <315061D6.5694@synapse.net> Evan Champion <evanc@synapse.net> writes:
>have to be addressed.  At any rate, I don't see the difference between 1 guy 
>controlling the development of a project and others providing input and a committee 
>chairman and a group of people providing input.  It all comes down to the same 
>thing: get people talking about it in a forum designed to accomplish a goal.

I disagree.  One person controlling development can decide that certain
criticisms are not valid.  They can say that they are writing to solve
a particular, well defined, goal and ignore other "requirements".

On a committee you frequently have people with vested interests.  By
example Brad runs a business using the news software.  Massive changes
to the current structure are not academic to him.  The authors of C
news and INN are certainly experienced with the issues but have invested
a lot of time to the current structure.  They are remarkably civil
regarding each other's code and the benifits and problems associated
with each.  On the other hand neither has junked their code to switch to
the others.

Look at the criticism of any technique that is not a flooding store and
foward.  The UUCP crowd feel threatened.  Your almost certainly going to
have one of those on a committee to represent their interests.  Even if
you point out methods of supporting them they will still worry about
being left out or treated like 2nd class citizens.

A group effort could easily degenerate to a "fix it but don't change
anything" attitude.

>Remember that the web didn't explode until Mosaic came around, and that was because 
>for the first time people saw the Internet in colour.  Unfortunately, news isn't as 
>glamourous :-)  There are lots of good things a new news transport system could do 
>but most of them would not be visible to the end user.

But isn't that the point?  It is going to be very laborious enhancing
the current scheme to have imbedded color, automatic handling of
attachments, etc.  Look at the people who still want to limit postings
to 64K text only.  The web already has all that flashy stuff.

Re: How to do a better USENET file system
#5948
Author: Alan Brown
Date: Sun, 24 Mar 1996 00:00
52 lines
3019 bytes
In article <4i89jd$it9@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:

>Brad, wern't you the one who worked out a demand feed scheme where
>subscribing to a group caused it to start being fed?  Pretty huge delay
>getting that first article though :-).

I was thinking the same...

>What is really needed to make this work is regional caching.  This could
>also make the current web more usable.  I find the web barely tolerable
>and I think it is mostly because the sites I am going to are overloaded
>either in bandwidth or system capacity.  As you say a site cache does
>nothing to help if I am the first person at my site to access a URL.

There is such a project underway - look for the details on the 
Harvest Cache

>I think that the various providers need to supply proxy caching service
>and encourage, perhaps even force, their subscribers to use it.  The odds
>of someone at my site having looked at the same data are small but the
>odds of someone on the same provider are many times greater.

We charge our users by the Mb for international traffic. We don't need 
to force them to use a cache when access to it is half the price of going 
direct.

>Providing proxy caching would be in the best interest of the providers
>as it would reduce the bandwidth on their main links.  With less usage
>they can have more subscribers and make more money.  (If someone is
>going to say that the LD connections are a small part of the budget than
>how come so many networks have overloaded LD connections?)

Yup, and it works well for that purpose, as does getting the main feed 
in batch UUCP and the backup feeds time delayed.

>With regional caches the problem then changes from providing a high
>performance news server to providing a high performance proxy cache.
>I expect that the proxy cache server is a more tractable problem.

The cache server is quite easy actually and it's far easier to admin
than a news server.

AB


-- 
"But you can't say they have arrived to classify your nervous lies
 What's right, what's not, what may not be. Don't try your tricky tests on me
 For I won't live in fear my friend - that every day could be my end"

Re: How to do a better USENET file system
#5958
Author: Alan Brown
Date: Sun, 24 Mar 1996 00:00
21 lines
1566 bytes
In article <Do9xr1.z6@clarinet.com>, Brad Templeton <brad@clarinet.com> wrote:

>You also want a network (we don't have one) that has the idea of idle time,
>so that you can use the idle time to send stuff like forward cache material
>and other stuff that you want but don't want to slow down real traffic for.

Forward caching is already implemented in some parts of the world,
including large parts of the main USA backbones as part of the Harvest
project.

>IP doesn't have packet priority though.

IP doesn't but the routers it passes through do.

AB
-- 
"But you can't say they have arrived to classify your nervous lies
 What's right, what's not, what may not be. Don't try your tricky tests on me
 For I won't live in fear my friend - that every day could be my end"

Page 2 of 3 • 120 total messages
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