🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
99 messages
99 total messages Page 1 of 2 Started by R. Joyner Wed, 17 Sep 1997 00:00
Page 1 of 2 • 99 total messages
*NEW* News Server Software!
#21640
Author: R. Joyner
Date: Wed, 17 Sep 1997 00:00
49 lines
2687 bytes


HighWind Software (the Cyclone folks) have a new product in BETA that
handles news READING! It doesn't do everything you need yet, but what it
does, it does VERY well.

I've got it running on a couple test boxes (one a Sparc, the other an Intel
box running Solaris x86), and the thing screams!  I'm sending it a full feed
from my Cyclone server (yes, all 33,000+ groups and between 750k - 1 Million
articles per day).  Even with all that, there are NO BACKLOGS! (on a single
Pentium with EIDE disks??? yep!) I was truly amazed that a relay system
(Cyclone) could be as fast as it is, and so far, it looks like they
(HighWind) have outdone themselves again.  My INN box took days to weeks of
tweaking to make it accept this kind of volume.  The HighWind product took
minutes (no joke, it took 6 minutes) to install, and has yet to show any
backlog at all.

If you are looking for a commercial solution for news reading, this could be
it.

I can say from past experiences with Cyclone, the folks at HighWind don't
mess around.  The code has been rock solid, and has had a frighteningly
small number of bugs (all of which were fixed in a matter of days -
sometimes hours). Their customer support is the best I've seen in years!

While not yet available for public consumption, this product should be a
good alternative to INN for folks that need to process all million+
articles/day and still have spare CPU.

I believe the basic version of this is going to start at around $500 (cheap,
in my estimation!).  For those wanting the more feature rich versions (lots
more bells & whistles), the price does go up somewhat.  The basic
functionality and performance is the same between the two, however.

No, I don't work for HighWind, and I'm not one of their sales folks. I have
no connections to them at all (other than being a very satisfied customer!)
I just wanted to pass along everyone what is on the horizon.  Maybe we can
all stop pulling our hair out sometime soon. Help is one the way! :)

/rsj
----
Reece Joyner
info@jdc.com (a new email address to confuse the spammers)




Re: *NEW* News Server Software!
#21604
Author: Joe Greco
Date: Wed, 17 Sep 1997 00:00
51 lines
2877 bytes

In news.software.nntp article <34207A23.20DB86A3@spinne.com>, Jeff Garzik <jeff.garzik@spinne.com> wrote:
:Rahul Dhesi wrote:
:> Inn's strength is that it supports a per-article file organization.
:> This is also inn's weakness.  You get more functionality and less speed.
:
:I don't see per-article storage methods a strength.  It just makes the
:articles easier to work with, if you're doing a custom news solution. 
:For 90% of ISPs doing news, I'd say all they ever do is NNTP reading and
:feeding, which doesn't require per-article files at all...

I'd have to second this.

Besides, even if you do more than just reading news, it's not really
horribly hard to write some code that goes and fetches an article.
I've done this with both INN-CNFS and Diablo.  It's easy.  It's fast.

The per-article storage methods do have the benefit of being easier
to debug, I suppose, but for the kind of stuff I do (I often like to
be able to look up by Message-ID rather than filename), I've written
a few basic programs over the years to do this for me anyways, and
it's not any harder to use the storage methods offered by CNFS or
Diablo.

The main problem with INN-CNFS and Diablo have been their lack of a
mechanism to support per-group article retrieval, which would be
needed to do an NNRP session.  That's an implementation issue, not
a fundamental fault of the storage paradigm.

I've even written a UUCP batcher for Diablo.  :-)

I think the main thing that has held back INN's development has been
the per-article storage.  Once you change the paradigm, you need to
develop other ways to know what articles are in a group.

The most obvious (to me at least) way would be to include that data 
as a "separate entry" in the NOV database.  This increases the 
importance of the NOV database, but you'd have to maintain a database 
for per-group article associations anyways.  

Once you do this, you have a fundamentally trivial way to divorce
the news transit system from the news reading system.

With such a concept, it would be easy to go one step further and
write a reader system for Diablo that involved ZERO changes to the
existing Diablo code base, for example.

... JG

Re: *NEW* News Server Software!
#21615
Author: R. Joyner
Date: Wed, 17 Sep 1997 00:00
58 lines
2932 bytes
 Rahul Dhesi wrote in article <5vq8u7$s1g$1@samba.rahul.net>...

>In <5vptvh$754$1@news5.ais.net> "R. Joyner" <rjoyner@ais.net> writes:
>
>>I don't agree that functionality is being sacrificed here..
>>I can think of about 1 instance where I wanted to look at individual
>>articles by grabbing them directly out of the spool....
>
>Some things that inn lets me do:
>
>- Feed a news-to-mail gateway.
>- Feed custom filters.  For example, I have a filter that scans postings
>  in internal newsgroups and enforces local policy by sending a cancel
>  message when needed.
>- Batch News for UUCP customers.
>- Allow Newsreading with tin/trn/nn directly from the news spool.
>- Process NoCeM messages.
>- Process cancel messages.
>- Allow statistics to be generated by programs that scan the
>  headers of incoming postings.
>
>I do every one of these things (the last one only from time to time).
>Some of these things don't require a per-article file structure, but
>unless you support the idea of feeding articles one at a time to slave
>proceses, you lose much of the flexibility offered by inn.  You would
>have to either build everything into your news softwrae or do without.
>
Well..not quite.  With the exception of nn directly from the spool (which
was no longer necessary starting with NN 6.5), all of what you mention above
can be done by piping a feed to some external program (NoCeM for example).
I also do everything you list (with the exception of NN and UUCP).  The
point here is, you don't need something inside INN to do it, nor do you need
direct access to the spool.  These are all EXTERNAL processes (or slave
processes, as you call them).  Once you have a method for piping a feed,
you're done.  That's all the server needs to know about. What's done on the
other side of the pipe is of no concern to INN.
INN (or Typhoon for that matter) is just a core engine with lots of
embellishments.

[...]

>BTW, I also like to sync my active file from UUNET once in a while,

Also an external process that has nothing to do with the server software
itself.
Don't even need a piped feed here, just some PERL. :)

/rsj
----
Reece Joyner
Sr. Systems Engineer
American Information Systems, Inc.




Re: *NEW* News Server Software!
#21617
Author: Jeff Garzik
Date: Wed, 17 Sep 1997 00:00
16 lines
1174 bytes
Rahul Dhesi wrote:
> Inn's strength is that it supports a per-article file organization.
> This is also inn's weakness.  You get more functionality and less speed.


I don't see per-article storage methods a strength.  It just makes the
articles easier to work with, if you're doing a custom news solution. 
For 90% of ISPs doing news, I'd say all they ever do is NNTP reading and
feeding, which doesn't require per-article files at all...
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21618
Author: R. Joyner
Date: Wed, 17 Sep 1997 00:00
58 lines
2817 bytes



Rahul Dhesi wrote in article <5vplpv$oee$1@samba.rahul.net>...

>In <5vpddn$qlb$1@news5.ais.net> "R. Joyner" <rjoyner@ais.net> writes:
>
>>...I was truly amazed that a relay system
>>(Cyclone) could be as fast as it is...
>
>Why were you amazed?  Special-purpose software that sacrifices
>functionality compared to more general-purpose software *must* have some
>compensating advantage, such as speed.
>
If it didn't have some compensating advantage, shame on the developers! :)

I don't agree that functionality is being sacrificed here..
I can think of about 1 instance where I wanted to look at individual
articles by grabbing them directly out of the spool.  I really don't see how
that's much of a strength with today's volumes - especially with all the
talk of CNFS & all.  Most everything can (and should) be done through some
type of NNTPish conversation anyway.  My disks are busy enough. :)  I'd bet
that in the not-so-distant future, not even INN will support per-article
files of any kind.

I will concede that the only functionality lacking (when it's released) in
Typhoon would be the speed necessary to feed lots of other servers.
However, I do not believe this is a design consideration.  If you want to
feed other servers, use Cyclone or Diablo or one of the other dedicated
peering server packages.  So, in that sense, yes, I'm sacrificing (and it's
not much of a sacrifice at all!) *that* function for reader speed.

>Inn's strength is that it supports a per-article file organization.
>This is also inn's weakness.  You get more functionality and less speed.

Don't be too sure about that...The folks at HighWind seem awfully creative.
When all is said & done, it should be rather interesting to see what's left
in INN that can't be replicated (more efficiently) by Typhoon.

Anyway, this wasn't meant to start a Holy War as to which flavor of software
is better than the other (this post or my original post).  Hell, I'm still
getting mail from former coworkers on the vi v.s. emacs front. :)

Cheers!
/rsj

>--
>Rahul Dhesi <dhesi@spams.r.us.com>

----
Reece Joyner
Sr. Systems Engineer
American Information Systems, Inc.



Re: *NEW* News Server Software!
#21634
Author: Brett Rabe
Date: Wed, 17 Sep 1997 00:00
38 lines
1689 bytes

R. Joyner wrote:
> 
> HighWind Software (the Cyclone folks) have a new product in BETA that
> handles news READING! It doesn't do everything you need yet, but what it
> does, it does VERY well.

Just for you FreeBSD folks out there, the Highwind folks don't have
FreeBSD ports available yet (for Cyclone or Typhoon)... see below:

-------Forwarded-Mail--------

From: HighWind Software Information <info@highwind.com>
To: brett@uswest.net
Date: Wed, 10 Sep 1997 15:36:44 -0400 (EDT)
Subject: Re: Platform support for Cyclone...

We are doing the Linux port now. Thanksgiving for that.

BSDI and FreeBSD is after that. Xmas time. If things go well.

Solaris x86 runs on PC's. But.. yeah... We know.. It ain't FreeBSD. 

-johnj
support@highwind.com

-----End-Forwarded-Mail------

-- 
Brett Rabe                                   Email : brett@uswest.net
Systems Administrator - !nteract Services    Phone : 612.664.3078
600 Stinson Blvd.                            Pager : 612.613.2549
Minneapolis, MN USA 55413                    Fax   : 612.664.4770

      If you aren't the lead dog, the view is always the same.

Re: *NEW* News Server Software!
#21639
Author: Rahul Dhesi
Date: Wed, 17 Sep 1997 00:00
17 lines
1164 bytes

In <5vpddn$qlb$1@news5.ais.net> "R. Joyner" <rjoyner@ais.net> writes:

>...I was truly amazed that a relay system
>(Cyclone) could be as fast as it is...

Why were you amazed?  Special-purpose software that sacrifices
functionality compared to more general-purpose software *must* have some
compensating advantage, such as speed.

Inn's strength is that it supports a per-article file organization.
This is also inn's weakness.  You get more functionality and less speed.
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21643
Author: Joe Greco
Date: Thu, 18 Sep 1997 00:00
49 lines
3052 bytes

In news.software.nntp article <5vqsi4$2e9$1@samba.rahul.net>, c.c.eiftj@84.usenet.us.com (Rahul Dhesi) wrote:
:
:In <5vq55f$mup$1@earth.execpc.com> jgreco@ns.sol.net (Joe Greco) writes:
:
:>Besides, even if you do more than just reading news, it's not really
:>horribly hard to write some code that goes and fetches an article.
:>I've done this with both INN-CNFS and Diablo.  It's easy.  It's fast.
:
:By the time you did enough of this to get back all of inn's
:functionality you would have reimplemented inn.  

That may be, but I would have implemented an INN that is a hundred
times more efficient, because the underlying data access methods
would be written with news applications in mind, using scalable
algorithms that don't bog down with namei iterations or directory
traversals.  I would also have developed an INN that had totally
separate reader and feeder functionality, which is certainly not
true of INN (INN maintains the active, numbers articles, and does
other things that a feeder does not need to do).

One thing I generally DON'T care about is where (or how) an article
is stored, I merely want to be able to retrieve it given some sort
of identifying string (in INN, this is "/news/alt/blah/1234", in 
Diablo, this is "D.something/B.nnnn:offset,len").  For an application
where you do not NEED all of INN's fancy functionality, who cares?!
I want to transport news.  Per-article storage by group is irrelevant. 
And, because storage by group is a performance pig, this becomes a
major downside for INN.

The argument that most news admins want or need the current INN
"functionality" is actually an INN fictionality.  There is really
not too much about the current system that could not be written
faster and better with specialized access methods.  Using FFS to
store a hundred thousand articles in a single directory is bull.

On second thought, I would not have reimplemented INN.  There
is at least one good transport package already available that
does nearly exactly what I want:  Diablo.  By writing an overchan-
like process, I could add a "feed" to this "reader subsystem"
process.  The reader subsystem numbers the articles, updates the
active file, and adds entries to the .overview files (along with
information to locate the actual article storage).  It could be
nice and modular.

... JG

Re: *NEW* News Server Software!
#21644
Author: Jeremy
Date: Thu, 18 Sep 1997 00:00
24 lines
1430 bytes
Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:

> Some things that inn lets me do:
> 
> - Feed a news-to-mail gateway.
> - Feed custom filters.  For example, I have a filter that scans postings
>   in internal newsgroups and enforces local policy by sending a cancel
>   message when needed.
> - Batch News for UUCP customers.
> - Allow Newsreading with tin/trn/nn directly from the news spool.
> - Process NoCeM messages.
> - Process cancel messages.
> - Allow statistics to be generated by programs that scan the
>   headers of incoming postings.

- Filter the inbound feeds through custom spam filters.  I'd be
  dead without this ability.

-- 
Jeremy  |  jeremy@exit109.com
The customer is always right, until he tries to say something.

Re: *NEW* News Server Software!
#21645
Author: Rahul Dhesi
Date: Thu, 18 Sep 1997 00:00
14 lines
1136 bytes

In <34207A23.20DB86A3@spinne.com> Jeff Garzik <jeff.garzik@spinne.com> writes:

>I don't see per-article storage methods a strength.  It just makes the
>articles easier to work with, if you're doing a custom news solution. 
>For 90% of ISPs doing news...

I find this reasoning flawed.  The existence of a large number of people
who want Y does not in any way negate those who want X.
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21658
Author: Joe Greco
Date: Thu, 18 Sep 1997 00:00
54 lines
2292 bytes
In news.software.nntp article <5vr91t$p2q$2@news1.exit109.com>, Jeremy <jeremy@exit109.com> wrote:
:Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
:
:> Some things that inn lets me do:
:> 
:> - Feed a news-to-mail gateway.

Diablo could do that.

:> - Feed custom filters.  For example, I have a filter that scans postings
:>   in internal newsgroups and enforces local policy by sending a cancel
:>   message when needed.

Or that.

:> - Batch News for UUCP customers.

Or that (I should send the code to Matt).

:> - Allow Newsreading with tin/trn/nn directly from the news spool.

That might be harder, but I'm not sure why you'd even want to.

:> - Process NoCeM messages.
:> - Process cancel messages.

Generally presumes the presence of a reader system.  However,
there's nothing preventing it from being done.

:> - Allow statistics to be generated by programs that scan the
:>   headers of incoming postings.

Diablo can do that.

:- Filter the inbound feeds through custom spam filters.  I'd be
:  dead without this ability.

That might take a bit of hacking, if you want it to be able to
examine the article BEFORE hitting the spool.  I think that's
what you meant... but if so, it has nothing to do with the format
in which articles are stored in the spool, which is what we're
arguing.  :-)

In general, any of the general "feed articles to X" type
functionality that you want can be implemented TODAY with a
batch file and a short program to read Diablo articles.

I don't see many things here that require INN's current storage
paradigm.

... JG

Re: *NEW* News Server Software!
#21659
Author: Karl Kleinpaste
Date: Thu, 18 Sep 1997 00:00
47 lines
2862 bytes
jgreco@ns.sol.net (Joe Greco) writes:
> The per-article storage methods do have the benefit of being easier
> to debug, I suppose, but for the kind of stuff I do

The kind of stuff I (er, we, here at JPRC) do with Usenet is text
classification.  This means we want to have a large corpus of articles
over which to pass text classifiers, clusterers, summarizers, and
ghod-knows-what-else that's being cooked up this month.

It is Not In Our Interest to mangle an NNTP interface into these sorts
of programs: We just want to walk into a directory, scan it for
interesting files, and (e.g.) sic our "bow" (Bag-O'-Words) library on
it.  We need to be able to do this for Usenet articles, the complete
spidered contents of Yahoo (yes, really -- I wrote a fun specialized
spider just for the purpose), and personal documentation trees.

Besides all this sort of "real" work, I also do routine stats and
analysis of various attributes of Usenet.  A couple weak examples can
be found in the truly simplistic approach I take to weekly posting
histograms in, e.g., comp.security.pgp.discuss and
soc.subculture.bondage-bdsm.

The fundamental problem comes down to the fact that, for some of us,
what goes on with Usenet is not mere human reading; a wide variety of
automata need this access.  The set of us for whom that's true is not
all that small -- JPRC is hardly alone in this kind of work -- and we
need to generalize Usenet articles alongside other kinds of text.  The
only such generalization available is the per-file blob-o'-text
concept, and will remain so until web pages, scholarly papers, and
individuals' personal files are all held somewhere other than a
filesystem tree.

If INN ever truly loses its article-per-file layout, I will have to
stop upgrading, or shoe-horn the article-per-file concept back in with
each subsequent release.

> (I often like to
> be able to look up by Message-ID rather than filename)

That's what grephistory is for, as well as most readers' hunt-down-
the-parent key.  (Well, _/my/_ reader has one, and it's general enough
to let me supply an arbitrary message-id as argument.)

--karl

Re: *NEW* News Server Software!
#21661
Author: bill davidsen
Date: Thu, 18 Sep 1997 00:00
33 lines
2064 bytes
In article <34207A23.20DB86A3@spinne.com>,
Jeff Garzik  <jeff.garzik@spinne.com> wrote:
| Rahul Dhesi wrote:
| > Inn's strength is that it supports a per-article file organization.
| > This is also inn's weakness.  You get more functionality and less speed.
| 
| 
| I don't see per-article storage methods a strength.  It just makes the
| articles easier to work with, if you're doing a custom news solution. 
| For 90% of ISPs doing news, I'd say all they ever do is NNTP reading and
| feeding, which doesn't require per-article files at all...

And generating cancels for the occasional spam, post of personal
information, scan of all articles in a group to find something you
have been asked to provide under subpoena, etc.

Read and feed are "necessary but not sufficient" for an ISP. Right
now I prefer a small number of Diablo consolidators sending a single
spam filtered feed into a well configured INN.

Without the tools to do all the things you really need to do as an
ISP, this solution is tempting, but likely to lead to having to
write a great number of tools, none of which you have time to design
well or make general purpose.
--
bill davidsen <davidsen@tmr.com>
 "I think there's a problem with the server power supply"
 "Why?"
 "There were flames coming out of the cooling fan until it stopped."
	-actual conversation, on a Friday afternoon of course

Re: *NEW* News Server Software!
#21667
Author: Joe Greco
Date: Thu, 18 Sep 1997 00:00
51 lines
2579 bytes

In news.software.nntp article <5vrris$9tf$2@news1.exit109.com>, Jeremy <jeremy@exit109.com> wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:
:> :- Filter the inbound feeds through custom spam filters.  I'd be
:> :  dead without this ability.
:> 
:> That might take a bit of hacking, if you want it to be able to
:> examine the article BEFORE hitting the spool.  I think that's
:> what you meant...
:
:Yes, that's exactly what I meant.  I brought up a cool new filter
:for which yesterday was the first full day, news.daily-wise, and
:nuked 81k *extra* articles which were getting past Jeff's EMP filter
:*and* all my spammer-specific filters before.
:
:I don't want to lose that ability by switching to a different server.

Well, it wasn't so long ago that the idea of PERL being integrated
into INN was new and radical.

A vast majority of INN installations out there do not have PERL
filtering, either because the version of INN does not support it,
or because it's disabled.

It's a temporary advantage that INN has.  INN does not, on the
other hand, have an integrated spam detection filter like Diablo 
does.

It's merely a matter of time before someone does something similar
for Diablo.  There's nothing that fundamentally prohibits it from
being done, after all...

Diablo may actually be more suited to it, because of its
multiprocess model.  I can envision a time when complex spam
filters eat a fair amount of CPU, which would be very bad to
try to implement in INN's singlethreaded monolithic model.

Diablo could leverage a multiprocessor machine, however, and
a spam filter that would cause serious performance problems
under INN could be quite practical under Diablo.

It seems to me that the filters must necessarily start getting
more complex, so this may well become a concern.

INN's fundamental design is a problem :-(

... JG

Re: *NEW* News Server Software!
#21668
Author: Matt Dillon
Date: Thu, 18 Sep 1997 00:00
53 lines
3376 bytes

:In article <vxk202mfyaz.fsf@pocari-sweat.jprc.com>,
:Karl Kleinpaste  <karl@jprc.com> wrote:
:>jgreco@ns.sol.net (Joe Greco) writes:
:>> The per-article storage methods do have the benefit of being easier
:>> to debug, I suppose, but for the kind of stuff I do
:>
:>The kind of stuff I (er, we, here at JPRC) do with Usenet is text
:>classification.  This means we want to have a large corpus of articles
:..
:>
:>If INN ever truly loses its article-per-file layout, I will have to
:>stop upgrading, or shoe-horn the article-per-file concept back in with
:>each subsequent release.
:>
:>...
:>
:>--karl

    INN's per-file storage is a legacy issue.  It just doesn't work well in
    most of today's systems for many reasons.  The article volume is too high:
    It stresses the kernel namei and buffer caches, it stresses the kernel's
    internal filesystem locks, many filesystems (even log filesystems) have
    synchronization or seeking issues when maintaining directory consistancy.
    It stresses expire (makes it inefficient).  file-in-group storage is 
    almost as bad...  it effectively randomizes access for the more critical
    incoming feed and linearizes access for the less critical NNTP connection,
    and then only if there are just a few news readers.  And once you have
    hundreds of readers, even the file-in-group mechanism is random.

    There are many solutions to the problem, but all come down to three things:
    Reduce the number of files by at least two orders of magnitude (or not
    use files at all), reduce internal kernel locking contention, and reduce
    lookup overhead (e.g. spend less time on meta-data).

    That said, most of these new systems do not prevent you from scanning
    articles in the spool.  Diablo, for example, simply stores multiple
    articles per file separating each one with a NUL (ascii 0), then storing
    (offset,size) in the dhistory file and outgoing queue files.   You can
    scan the spool either through the dhistory, or you can scan the spool
    simply by parsing each multi-article file based on the NUL separator.
    They aren't ordered by group but so what?  It couldn't be easier and, 
    I might add, scanning through a diablo spool goes at least ten times as 
    fast as scanning an INN spool.  I get 2 MBytes/sec cat'ing the spool on
    top of a heavily loaded diablo-based news system, and 3-6 MBytes/sec doing
    the same thing on a lightly loaded news system.  I get around 100K/sec
    doing the same thing on an INN spool on a similarly configured machine.

						-Matt


Re: *NEW* News Server Software!
#21675
Author: Jeremy
Date: Thu, 18 Sep 1997 00:00
33 lines
1721 bytes
Joe Greco <jgreco@ns.sol.net> wrote:

> :- Filter the inbound feeds through custom spam filters.  I'd be
> :  dead without this ability.
> 
> That might take a bit of hacking, if you want it to be able to
> examine the article BEFORE hitting the spool.  I think that's
> what you meant...

Yes, that's exactly what I meant.  I brought up a cool new filter
for which yesterday was the first full day, news.daily-wise, and
nuked 81k *extra* articles which were getting past Jeff's EMP filter
*and* all my spammer-specific filters before.

I don't want to lose that ability by switching to a different server.

(Yes, I'll be making this public before long.)

> but if so, it has nothing to do with the format in which articles are
> stored in the spool, which is what we're arguing.  :-)
[...] 
> I don't see many things here that require INN's current storage
> paradigm.

Yes, INN's current storage paradigm can jump off a cliff, as far as
I'm concerned. :)

-- 
Jeremy  |  jeremy@exit109.com
"We are all Kosh."  --Kosh

Re: *NEW* News Server Software!
#21677
Author: Rahul Dhesi
Date: Thu, 18 Sep 1997 00:00
40 lines
2446 bytes
In <5vptvh$754$1@news5.ais.net> "R. Joyner" <rjoyner@ais.net> writes:

>I don't agree that functionality is being sacrificed here..
>I can think of about 1 instance where I wanted to look at individual
>articles by grabbing them directly out of the spool....

Some things that inn lets me do:

- Feed a news-to-mail gateway.
- Feed custom filters.  For example, I have a filter that scans postings
  in internal newsgroups and enforces local policy by sending a cancel
  message when needed.
- Batch News for UUCP customers.
- Allow Newsreading with tin/trn/nn directly from the news spool.
- Process NoCeM messages.
- Process cancel messages.
- Allow statistics to be generated by programs that scan the
  headers of incoming postings.

I do every one of these things (the last one only from time to time).
Some of these things don't require a per-article file structure, but
unless you support the idea of feeding articles one at a time to slave
proceses, you lose much of the flexibility offered by inn.  You would
have to either build everything into your news softwrae or do without.

In the typical set-up where you dial in over a slow link to a News
server, it's much slower to scan many large postings via nntp than it is
to read them directly from the news spool using tin/trn/nn.  Suppose you
want to search some large postings for key phrases.  (I use nn's search
command quite a bit.)  Which would you rather do:  Download them in their
entirety to your nntp client, or let the News reader scan them across a
fast Ethernet and then just send the result to your screen over the
dial-up link?

BTW, I also like to sync my active file from UUNET once in a while,
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21681
Author: Rahul Dhesi
Date: Fri, 19 Sep 1997 00:00
30 lines
1944 bytes
In <5vt85t$df5$1@flea.best.net> dillon@best.net (Matt Dillon) writes:

>    For one thing, IP packet fragmentation makes ill-use 
>    of the network....Disk 
>    utilization is another problem... you have absolutely no control of the
>    server's disk I/O if the client's NFS mount it....
>    Downed mounts due to dead servers are 
>    harder to deal with...

Keeping the top News spool directory as a symlink, and also mounting the
News spool 'soft', takes care of the downed mount problem.  If you have
scheduled News maintenance you can then repoint the symlink.  (Did this
once during a big machine switch.)

I don't know much about the IP fragmentation problem, but I know some
Sun literature suggests mounting filesystems with customized read and
write sizes (wrize=xxx, rsize=xxx in fstab), so I assume they are aware
of this issue.

The potential disk overuse is definitely a problem that can occur,
especially if somebody does a 'find' on the news spool.  But in practice
I have observed this to be rare.

But even if all of these were problems -- they would not negate the
usefulness of a mounted spool.
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21682
Author: Rahul Dhesi
Date: Fri, 19 Sep 1997 00:00
21 lines
1782 bytes
In <34227761.C35D417@spinne.com> Jeff Garzik <jeff.garzik@spinne.com> writes:

>I laughed at how ridiculous that statement is; you undoubtedly use these
>_INN_ applications because they were designed to use INN's storage
>methods -- so of course they're going to depend on single-article logic.

Take a look at any basic programming text, in any language, written
during the last 50 years.  Exclude the ones that assume punched card
input.  Close to 100% of all examples will be found to assume that input
will come either from some standard input stream, terminated by EOF, or
will come from a single file that you open for reading.  The allegedly
inn-specific model is not inn-specific at all.

Essentially every standard UNIX program uses this model, and most were
conceived and written long before inn existed.  Why is it ridiculous to
expect to be able to continue using them in a News context?
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21683
Author: Matt Dillon
Date: Fri, 19 Sep 1997 00:00
25 lines
1640 bytes
:>> I would venture to say that more than 15% of my customer base uses a
:>> UNIX shell account to read news via NNTP.  I would also venture to
:>> guess that more than 30% of my customer base uses their UNIX shell
:>> account on a regular basis for whatever reasons they choose to.
:>

    Hmm.  A couple of quick ps's and greps on our news boxes reveal
    that 37 out of 257 active NNTP connections are coming from our
    shell machines.  About 14%, so it compares favorably with your 
    venture.

    Still, this is only a very small portion of the userbase.  Based
    on the number of accounts with .newsrc files in them, only 5%
    of our user base uses a shell-based newsreader.  On top of that,
    we are a web-hosting/web-development ISP so these are mostly
    savvey users.

    I don't think the mass-consumer market really needs shell accounts,
    let alone run newsreaders from them.

						-Matt


Re: *NEW* News Server Software!
#21685
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
59 lines
3095 bytes

Rahul Dhesi wrote:
> In <5vr6jd$m3j$1@earth.execpc.com> jgreco@ns.sol.net (Joe Greco) writes:
> >One thing I generally DON'T care about is where (or how) an article
> >is stored, I merely want to be able to retrieve it given some sort
> >of identifying string (in INN, this is "/news/alt/blah/1234", in
> >Diablo, this is "D.something/B.nnnn:offset,len").

> Some applications do need to be able to either read an article on stdin
> (terminated by EOF) or open a file containing an article.

I laughed at how ridiculous that statement is; you undoubtedly use these
_INN_ applications because they were designed to use INN's storage
methods -- so of course they're going to depend on single-article logic.

Each one of your "applications," I'll bet, could be easily reimplemented
to use a different storage method in a day or two.


> >I want to transport news.  Per-article storage by group is irrelevant.
> >And, because storage by group is a performance pig, this becomes a
> >major downside for INN.

> How about expiration based on groups?

INN-based CNFS does that now, and Typhoon, HighWind's upcoming reader
offering, will do that also.

[P.S. The Typhoon beta is *cool*, even at this stage.]


> Diablo is a great news router, but it, like Cyclone, is a special-
> purpose tool.  I run Diablo and inn on different machines.  Neither can
> replace the other.

It doesn't seem like a terribly open-minded attitude about this.

INN used to be the end-all of news solutions, because it could do
reading, feeding, UUCP, spool readers, basically anything you wanted to
throw at it.  It's had years to mature, and lots of hackers, ideas, and
helper utilities added onto it over the course of its lifetime.

But INN, and especially it's article storage method, is really showing
its age.  You seem to be implying that it's functionality cannot be
duplicated, and that it's an indispensable tool.

Not true at all.  Everything you've mentioned would take no more than a
week of hacking to get into Diablo...  and HighWind probably already has
some of those features on its Cyclone or Typhoon TODO list, if they
aren't already in the product.  :)

P.S.  Reading news from shell accounts?  Wow.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21686
Author: Matt Dillon
Date: Fri, 19 Sep 1997 00:00
42 lines
2429 bytes
:In article <5vv8mo$205$1@samba.rahul.net>,
:Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
:>In <5vug69$hmp$1@flea.best.net> dillon@best.net (Matt Dillon) writes:
:>
:>>:>> I would venture to say that more than 15% of my customer base uses a
:>>:>> UNIX shell account to read news via NNTP...
:>
:>>    Hmm.  A couple of quick ps's and greps on our news boxes reveal
:>>    that 37 out of 257 active NNTP connections are coming from our
:>>    shell machines.  About 14%, so it compares favorably with your 
:>>    venture.
:>
:>>    Still, this is only a very small portion of the userbase.
:>
:>But depending on how you pick the population, you can prove anything.
:>
:>Suppose you pick the population of live, breathing people on the planet.
:>Now the fraction that is using either UNIX or nntp is tiny, maybe 0.01%.
:>Which would seem to prove that both mounted spools and nntp
:>are totally useless.
:>
:>Now pick the population of UNIX shell users who read off the spool.  Now
:>the fraction reading off the spool is 100%.
:>
:>The way I do it, I totally ignore the non-relevant people, and count
:>only the absolute numbers of relevant people.  If you can count say
:>100,000 people reading off the News spool, that's an important bunch of
:>people.  Their existence isn't negated even if we can find five billion
:>others who don't care.
:>-- 
:>Rahul Dhesi <dhesi@spams.r.us.com>

    Woa, now hold on a second Rahul... I DID count it both ways!  I counted
    the number of shell users verses the total population of people who read
    news, and I counted the number of shell users who ran a newsreader
    verses the number of shell users in our entire userbase.

						-Matt


Re: *NEW* News Server Software!
#21688
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
23 lines
1595 bytes
Ian G Batten wrote:
> Or, better, produce arguments to OS authors why they should attempt to
> get their OSen to handle directories with two orders of magnitude more
> files.  On-disk directory hash tables?

Usenet software will get written in a more optimal fashion far sooner
than OS software.

You do have a point, though.  The Unix filesystem should certain scale
well to large numbers of file.  You're expecting INN to be a database
server -- where each record of data is stored in an individual file.

But when you start talking about millions of records [articles], you
need a real database server to perform database server duties -- and
that is something INN in its present form, and it's underlying Unix FS
storage method, cannot do any more.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21690
Author: Karl Kleinpaste
Date: Fri, 19 Sep 1997 00:00
32 lines
2325 bytes
Jeff Garzik <jeff.garzik@spinne.com> writes:
> But when you start talking about millions of records [articles], you
> need a real database server to perform database server duties -- and
> that is something INN in its present form, and it's underlying Unix FS
> storage method, cannot do any more.

I keep seeing these broad, sweeping claims, that the filesystem-based,
one-file-per-article method of storing news is not merely dying, but
already dead.  "[T]hat is something INN ... _*cannot*_ do any more."

Funny, there's an awful lot of systems out there, shoveling indecently
huge amounts of news around, that don't run the new-fangled servers.

This is to say, the word "cannot" is demonstrably and objectively a
gross overstatement.  How many INN installations are there?  How many
Diablo?  When's the last time anyone submitted themselves to the
masochism of a "version" control message, just to see what came back?

You may have good ideas.  You may have better ideas, in some areas.
Then again, you may have a cool personal project in which you are
personally involved.  So do I -- and I'm so involved in it, because of
the work this place does, that the likelihood that I'm going to write
a Linux "usenetfs" module is getting higher by the day, much as Ian
suggests.  And if and when I get that done, I'm going to laugh a lot
at you folks who believe yourselves to have already buried the corpse
of file-per-article.

The patient is not dead.  Some of us look at the patient and conclude
that all he needs is a really good vitamin injection.

Re: *NEW* News Server Software!
#21692
Author: Joe Greco
Date: Fri, 19 Sep 1997 00:00
65 lines
3083 bytes
In news.software.nntp article <5vu731$1hjk$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
:Maybe. We managed to pull NOV into a separate process instead of
:having it in INN. We got crosspost to do linking in a separate
:process. It's not a given that INN will stay single threaded for
:incoming articles, either.

It can't, and I've been saying that for years.

My news servers typically have at least a dozen disks.  Under a
singlethreaded model, this means that most of those disks are
not being used to write data at any given instant.  That's 
inefficient, and a key bottleneck.

:Imagine that we move INN to another port (already supported, config
:option), then have the "main" innd do the history lookup and assign
:article numbers, and separate processes or threads actually do the
:article read.
:
:Please feel free to comment on this model:
:
:  innd - accepts connections from feeders, forks or passes sockets
:  inncm - connection manager for a single feed

Done that already :-)  It was a moderate win.

I'm not convinced that there MUST be per-connection processes.
However, I AM convinced that whatever process is sucking in the
news cannot "pause" to synchronously write the article to disk.

:  innhm - history manager
:    processes "do I have this?" queries
:    processes "add this to history" directives
:    processes "delete this from history" directives

Yup.

:  innanm - article number manager
:    accepts a list of groups, returns an Xref line

You're missing the big one:  the spool manager API.  I'd like
to see a "per drive" spool manager process, ideally.

The real problems inside INN are generally the I/O activities.

:These could be processes or threads, and the IPC could be sockets or
:message queues, since queues may be faster than select() calls when
:there are a large number of sockets open, vs a single queue.
:
:By moving the history manager to a process it gets abstracted, so
:that you can change the implementation, to a database for instance,
:have it on a dedicated machine, etc.
:
:None of this is related to the file organization, which is another
:issue.

:-)

I've proposed several architectural changes in the past...  it seems
we're finally coming around to seriously considering the need for
such things.  That's good, I think.

... JG

Re: *NEW* News Server Software!
#21693
Author: bill davidsen
Date: Fri, 19 Sep 1997 00:00
56 lines
2980 bytes
In article <34227761.C35D417@spinne.com>,
Jeff Garzik  <jeff.garzik@spinne.com> wrote:
| Rahul Dhesi wrote:

| > Some applications do need to be able to either read an article on stdin
| > (terminated by EOF) or open a file containing an article.
| 
| I laughed at how ridiculous that statement is; you undoubtedly use these
| _INN_ applications because they were designed to use INN's storage
| methods -- so of course they're going to depend on single-article logic.

Youhave consistantly taken this "it's not a requirement for me so
it's a stipid (or conservative, you us ethat a bit, too) idea.

| Each one of your "applications," I'll bet, could be easily reimplemented
| to use a different storage method in a day or two.

I bet they could, too. And when someone has taken the months to do
that people will be delighted to change. Let us know when you've
rewritten all that.

| > Diablo is a great news router, but it, like Cyclone, is a special-
| > purpose tool.  I run Diablo and inn on different machines.  Neither can
| > replace the other.
| 
| It doesn't seem like a terribly open-minded attitude about this.

You mean we don't agree that whatever you like this week is so good
we can drop everything else? The idea that certain tools fit certain
jobs seems more open minded than scrapping everything in existance
and using something new (and commercial) because it's "way cool," I
think you called it?

| But INN, and especially it's article storage method, is really showing
| its age.  You seem to be implying that it's functionality cannot be
| duplicated, and that it's an indispensable tool.

And you seem to think that instead of fixing the limitations of INN
we should all go jump to something else.

| Not true at all.  Everything you've mentioned would take no more than a
| week of hacking to get into Diablo...

Yeah! I bet a hotshot like you could do all that stuff, much faster
and better than Matt, who has worked his tail off to product a
solid, stable, and useful package.
--
bill davidsen <davidsen@tmr.com>
 "I think there's a problem with the server power supply"
 "Why?"
 "There were flames coming out of the cooling fan until it stopped."
	-actual conversation, on a Friday afternoon of course


Re: *NEW* News Server Software!
#21694
Author: bill davidsen
Date: Fri, 19 Sep 1997 00:00
68 lines
3371 bytes
In article <5vt0pg$e3c$1@earth.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:

| Well, it wasn't so long ago that the idea of PERL being integrated
| into INN was new and radical.
| 
| A vast majority of INN installations out there do not have PERL
| filtering, either because the version of INN does not support it,
| or because it's disabled.
| 
| It's a temporary advantage that INN has.  INN does not, on the
| other hand, have an integrated spam detection filter like Diablo 
| does.

| Diablo may actually be more suited to it, because of its
| multiprocess model.  I can envision a time when complex spam
| filters eat a fair amount of CPU, which would be very bad to
| try to implement in INN's singlethreaded monolithic model.
| 
| Diablo could leverage a multiprocessor machine, however, and
| a spam filter that would cause serious performance problems
| under INN could be quite practical under Diablo.
| 
| It seems to me that the filters must necessarily start getting
| more complex, so this may well become a concern.
| 
| INN's fundamental design is a problem :-(

Maybe. We managed to pull NOV into a separate process instead of
having it in INN. We got crosspost to do linking in a separate
process. It's not a given that INN will stay single threaded for
incoming articles, either.

Imagine that we move INN to another port (already supported, config
option), then have the "main" innd do the history lookup and assign
article numbers, and separate processes or threads actually do the
article read.

Please feel free to comment on this model:

  innd - accepts connections from feeders, forks or passes sockets
  inncm - connection manager for a single feed
  innhm - history manager
    processes "do I have this?" queries
    processes "add this to history" directives
    processes "delete this from history" directives
  innanm - article number manager
    accepts a list of groups, returns an Xref line

These could be processes or threads, and the IPC could be sockets or
message queues, since queues may be faster than select() calls when
there are a large number of sockets open, vs a single queue.

By moving the history manager to a process it gets abstracted, so
that you can change the implementation, to a database for instance,
have it on a dedicated machine, etc.

None of this is related to the file organization, which is another
issue.
--
bill davidsen <davidsen@tmr.com>
 "I think there's a problem with the server power supply"
 "Why?"
 "There were flames coming out of the cooling fan until it stopped."
	-actual conversation, on a Friday afternoon of course

Re: *NEW* News Server Software!
#21696
Author: Dave Barr
Date: Fri, 19 Sep 1997 00:00
45 lines
3114 bytes
In article <vxk3en1e2z0.fsf@pocari-sweat.jprc.com>,
Karl Kleinpaste  <karl@jprc.com> wrote:
>Jeff Garzik <jeff.garzik@spinne.com> writes:
>> But when you start talking about millions of records [articles], you
>> need a real database server to perform database server duties -- and
>> that is something INN in its present form, and it's underlying Unix FS
>> storage method, cannot do any more.
>
>I keep seeing these broad, sweeping claims, that the filesystem-based,
>one-file-per-article method of storing news is not merely dying, but
>already dead.  "[T]hat is something INN ... _*cannot*_ do any more."
>
>Funny, there's an awful lot of systems out there, shoveling indecently
>huge amounts of news around, that don't run the new-fangled servers.

Yep, because they're throwing huge amounts of hardware at the problem,
or reverting to two-stage approaches such as Diablo to provide feeding
and INN to provide reading.  They're also cutting way back on the numbers
of newsgroups they carry (especially binaries and sex groups) because
of the sheer volume.  Sure, I run INN on a little wimpy HP 725/100.  With
proper tuning it works fine.  But, it's fairly maxed out.  I don't have many
feeds, and it would get clobbered if I carried the alt.binaries heirarchy
and a substantial number of the alt.sex groups.  I know that if I
ran a different server and just added more disk, I could easily support
spools twice as large and traffic twice as big.  Before I came here
I run news on a SPARC 2, with a similar amount of disk and newsgroups.

A better designed news server could handle the same feeder and reader
load on hardware costing half or a quarter of the cost.  Usenet traffic
simply isn't that big of a traffic volume given proper storage designs.
People talk about 2GB of traffic a day as something so god awful huge.
Disks easily write this much data in a few _minutes_, not a day.  There's
no reason why a Usenet server can't be handled by a simple box with a couple
9GB or 23GB drives hooked up to it.  Obviously _INN_ would have a lot of
trouble in this configuration, but other systems don't.  Reader support
is a tricker problem in most database-style or big-file storage systems,
but it's not an unsolvable problem by any means.

--Dave
-- 
http://www.cis.ohio-state.edu/~barr/
barr@cis.ohio-state.edu

Re: *NEW* News Server Software!
#21697
Author: Jeremy
Date: Fri, 19 Sep 1997 00:00
12 lines
879 bytes
Jeff Garzik  <jeff.garzik@spinne.com> wrote:

> P.S.  Reading news from shell accounts?  Wow.

Reading news from Netscape?  Wow. :)

-- 
Jeremy  |  jeremy@exit109.com
Fight spam! http://spam.abuse.net

Re: *NEW* News Server Software!
#21698
Author: Matt Dillon
Date: Fri, 19 Sep 1997 00:00
45 lines
3196 bytes
    Inn's single biggest bottleneck is open().  Changing the spool storage
    model to reduce the number of physical files by an order of magnitude
    would go a long way increasing INN's efficiency, but it still suffers
    from a mostly single-threaded model.  If *any* I/O operation blocks,
    the entire system stalls.  This just doesn't scale, and things like
    'crosspost' provide only an incremental improvement.

    Now, obviously, it is possible to hack INN to get around its problems.
    You can say that about *ANY* program which you have the source to.  But
    being able to hack a program is very different from actually doing it.
    Most of the INN hacks I've seen so far are relatively simple.

    But without doing a major redesign, these hacks will only go so far,
    and unless one rewrites the whole thing from scratch one is still going
    to be working from a relatively old, bloated, and already much-hacked
    code base.  Personally, I prefer a clean start.  By choosing the right
    topology in the first place, I can do much more to improve diablo's
    efficiency then I could ever do with the INN codebase.  I changed
    a dozen lines of code in 1.12 and turned the precommit cache into a
    precommit+general_history cache, doubling diablo's stability under very
    heavy loads and quadrupling its efficiency when caught up.  I'm going
    to change a few more lines ... another 20 or 30 to consolidate
    the dnewsfeed parsing in the parent (rather then reparse it in each
    child) and that cut out about 45K per diablo process (x 100 = 4500K..
    a significant memory savings for machines with lots of feeds).

    I'm going to USE that dhistory database bandwidth to implement the reader
    portion of the system, add local article caching using the same dhistory
    database code, and implement a distribute article/overview fetching
    subsystem to back a multi-threaded/multi-process reader, and it will
    work because messages will be internally fetched by message-id rather
    then by group+article#.  Another simply-designed database will handle
    article synchronization and overview will be handled through a cache 
    rather then a prebuild.  The newsreading system will be entirely
    separate from the newsfeeding system, allowing the news admin to
    mix-and-match.

    To do all of this with INN's codebase would require a complete rewrite.

					    -Matt



Re: *NEW* News Server Software!
#21700
Author: Forrest J. Cavalier III
Date: Fri, 19 Sep 1997 00:00
45 lines
2650 bytes
In article <5vugtaINNmkv@stumble.cis.ohio-state.edu>, 
barr@stumble.cis.ohio-state.edu wrote...

[snip]

>If the latter (in combination with a different filesystem) will give you
>an order of magnitude performance improvement, why not do it?  The
>code is very much the same with either technique.  INN already uses
>its own I/O API layer already.  It's just a matter of substituting
>another one.


....Well, not exactly.....
   1. Last I looked, INN tends to use QIO calls for config files, overviews,
      as well as articles.  You can't just replace the QIO routines
      for only article storage, for example.

   2. For new code, I agree it is true that the code you write will be
      very much the same: open() vs OpenSpool().  But new code has never
      been the obstacle to radical INN mods....existing tools are the
      trouble.  Things like expire, findmissing, makehistory.

   3. Much code relies on being able to search a directory to get
      a list of article numbers, or to find the next article.  So
      it is NOT true that current architecture just stores articles.
      It also provides an index by newsgroup.  Any replacement must
      provide the same indexing service.


Of all of these, I think number 3 is actually the hardest, and it
is the main reason that reading capabilities have come so slowly to
CNFS, Diablo, etc.  INN currently "thinks" of the overview as an
afterthought -- if it is not there it doesn't impact the correctness
of nnrpd, expire, etc.  Turning this "upside down" and making overview
data the critical part impacts a lot of code and design, and it
breaks lots of tools, utilities, and third-party C and perl.

Forrest Cavalier, Mib Software, INN customization and consulting 
Searchable hypertext INN docs, FAQ, RFCs, etc: 650+ pages: 
    http://www.mibsoftware.com/userkt/forprov.htm 
Commercial support for INN: http://www.mibsoftware.com/innsup.htm 


Re: *NEW* News Server Software!
#21701
Author: bill davidsen
Date: Fri, 19 Sep 1997 00:00
34 lines
2280 bytes
In article <5vta1f$gtd$1@ftel.ftel.co.uk>,
Ian G Batten  <I.G.Batten@batten.eu.org> wrote:

| >     There are many solutions to the problem, but all come down to three things:
| >     Reduce the number of files by at least two orders of magnitude (or not
| >     use files at all), reduce internal kernel locking contention, and reduce
| >     lookup overhead (e.g. spend less time on meta-data).
| 
| Or, better, produce arguments to OS authors why they should attempt to
| get their OSen to handle directories with two orders of magnitude more
| files.  On-disk directory hash tables?

What you are proposing is about as practical as requiring CPU
vendors to increase performance so you can use a bubble sort, so you
don't have to use one of those complex new fangled sorts instead.

Opening and closing a lot of file is inherently more work than
opening and closing a few files. Ditto for deleting, creating,
searching, etc. No matter how you hack the o/s, if you ask it to do
more work it will take longer.

I think we have to go to a better file organization, but the support
tools are still needed for anything beyond hobby use. That will
happen, presumably in INN. We can't just keep pouring resources into
the effort, we have to do less work to attain the same result.
--
bill davidsen <davidsen@tmr.com>
 "I think there's a problem with the server power supply"
 "Why?"
 "There were flames coming out of the cooling fan until it stopped."
	-actual conversation, on a Friday afternoon of course

Re: *NEW* News Server Software!
#21702
Author: Ken Leland
Date: Fri, 19 Sep 1997 00:00
38 lines
2458 bytes

In article <5vu8a9INNjr8@stumble.cis.ohio-state.edu>,
Dave Barr <barr@stumble.cis.ohio-state.edu> wrote:
>In article <vxk3en1e2z0.fsf@pocari-sweat.jprc.com>,
>Karl Kleinpaste  <karl@jprc.com> wrote:
>>
>>Funny, there's an awful lot of systems out there, shoveling indecently
>>huge amounts of news around, that don't run the new-fangled servers.
>
>Yep, because they're throwing huge amounts of hardware at the problem,
>or reverting to two-stage approaches such as Diablo to provide feeding
>and INN to provide reading.  They're also cutting way back on the numbers
>of newsgroups they carry (especially binaries and sex groups) because
>of the sheer volume.  Sure, I run INN on a little wimpy HP 725/100.  With

Not really, we have 34000 groups (22Gigs of binaries+sex) and we keep up 
readily with 1.5.1 on a single pc that does readers (100) too.
We have to have a bunch of cudas (8) just to have a little retention
(40G total, all narrow, non-ultra), but that is hard to escape.

I can't find any obscene hardware additions anyware, and I just went
back and looked real hard, except possibly the extra $1200 worth of memory. 
That really isn't all that bad compared to a second machine. 

We are the top article source for two neighboring systems (Diablo) that
are quite a bit larger than us. My conclusion is that INN is actually
pretty neat. Its a fun horserace to see if innworkers will, again, free up
the innerloop in time to fend off our likely need for a second machine next
year. They, and friends, have managed to do this many times in the past.
It certainly won't take a change in storage model to do this. 
And I agree with Jeremy that filter_innd.pl and filter_nnrpd.pl are
fantastic.

Ken Leland
Monmouth Internet

Re: *NEW* News Server Software!
#21703
Author: Rahul Dhesi
Date: Fri, 19 Sep 1997 00:00
30 lines
2047 bytes
In <34227B76.765AF65E@spinne.com> Jeff Garzik <jeff.garzik@spinne.com> writes:

>Point 2 - A normal reader session, at most ISPs, involves a lot of
>overview retrieval and very few article reads.  If your users are
>opening the article files across NFS just to scan headers, I feel sorry
>for them.

No, actually they are opening the .overview file across NFS to scan
headers...but they are also opening the articles to scan their
beginnings, before skipping them.  Unlike nntp, which always sends you
the whole article even if you want to see just the first screenful.

>An ideal INN setup is one where the user never downloads an article
>unless they really plan to read it.  They just grab headers from the
>overview database (or from the article HEAD, if NOV isn't available).

This is impossible.  At least some of the time you want to
read the first few lines of the body, and skip the rest.

>OV by default!  Oh yeah, the spool-based news readers
>will be slower, too, because they have to generate all those indices and
>thread structures on the fly from raw article data.

??? You are assuming that the .overview files are not accessible
over NFS ???
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21705
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
55 lines
2935 bytes
(cc'd to author)

Karl Kleinpaste wrote:
> Jeff Garzik <jeff.garzik@spinne.com> writes:
> > But when you start talking about millions of records [articles], you
> > need a real database server to perform database server duties -- and
> > that is something INN in its present form, and it's underlying Unix FS
> > storage method, cannot do any more.

> I keep seeing these broad, sweeping claims, that the filesystem-based,
> one-file-per-article method of storing news is not merely dying, but
> already dead.  "[T]hat is something INN ... _*cannot*_ do any more."

I have customers running INN that keep up.  But since INN will not scale
any more, they scale their hardware up instead.


> Funny, there's an awful lot of systems out there, shoveling indecently
> huge amounts of news around, that don't run the new-fangled servers.

They are slowly falling off the end of the Usenet Top 1000, too...


> You may have good ideas.  You may have better ideas, in some areas.
> Then again, you may have a cool personal project in which you are
> personally involved.  So do I -- and I'm so involved in it, because of
> the work this place does, that the likelihood that I'm going to write
> a Linux "usenetfs" module is getting higher by the day, much as Ian
> suggests.  And if and when I get that done, I'm going to laugh a lot
> at you folks who believe yourselves to have already buried the corpse
> of file-per-article.


How will you overcome the humongous FS overhead of opening, writing, and
closing singleton new files a million times a day?

Here's a new article op in the article-per-file system:
	create new file (w/ descriptor)
	writev() data into file
	close(fd)

Here's a new article op in a spool object system:
	find available, open file descriptor
	write data

That's three syscalls versus one.  No matter how you look at it, the
kernel/filesystem overhead will still kill you as long as you use a
single-article-per-file storage method.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21707
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
41 lines
2564 bytes
Rahul Dhesi wrote:
> In <5vsoq5$f20$9@darla.visi.com> drechsau@yuck.net (Mike Horwath) writes:
> >: - Allow Newsreading with tin/trn/nn directly from the news spool.

> >Why is this a benefit?

> NFS sllows random reads and seeks, nntp does not.  This has various
> implications affecting any situation in which you aren't sequentially
> scanning through entire articles.  For example, looking at the first
> screen of 50 big postings (e.g. in a binaries group) for the one or two
> that you want.


Point 1 - using shell accounts to read news on a local machine occurs
very rarely these days, in larger environments [read: most of the world]

Point 2 - A normal reader session, at most ISPs, involves a lot of
overview retrieval and very few article reads.  If your users are
opening the article files across NFS just to scan headers, I feel sorry
for them.

An ideal INN setup is one where the user never downloads an article
unless they really plan to read it.  They just grab headers from the
overview database (or from the article HEAD, if NOV isn't available).

NFS is just a bottleneck and a waste of time for what you're talking
about doing IMHO.  You're loading the news server down with unnecessary
seeks and extraneous reads.  You're loading the news server down with
unnecessary baggage, the NFS daemon and its associated insecurities and
resource consumption.  And you're supporting a storage method that's
antiquated and unnecessary, since all the news readers you mention
support NNTP and NOV by default!  Oh yeah, the spool-based news readers
will be slower, too, because they have to generate all those indices and
thread structures on the fly from raw article data.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21710
Author: Jeremy
Date: Fri, 19 Sep 1997 00:00
21 lines
1432 bytes
Mike Horwath <drechsau@yuck.net> wrote:

> [read: many ISPs would love to just have their users point-and-click
> but the good ISPs let their users choose their own way of doing things
> even if it includes UNIX shell accounts - keep'em ignorant and they
> will not ever leave you for fear of the unknown]
> 
> I would venture to say that more than 15% of my customer base uses a
> UNIX shell account to read news via NNTP.  I would also venture to
> guess that more than 30% of my customer base uses their UNIX shell
> account on a regular basis for whatever reasons they choose to.

What he was saying was that most times it's via NNTP, not from a
locally mounted spool.

-- 
Jeremy  |  jeremy@exit109.com
"Never tell me the odds."  --Han Solo

Re: *NEW* News Server Software!
#21713
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
25 lines
1681 bytes
Rahul Dhesi wrote:
> In <34227B76.765AF65E@spinne.com> Jeff Garzik <jeff.garzik@spinne.com> writes:
> >An ideal INN setup is one where the user never downloads an article
> >unless they really plan to read it.  They just grab headers from the
> >overview database (or from the article HEAD, if NOV isn't available).

> This is impossible.  At least some of the time you want to
> read the first few lines of the body, and skip the rest.

s/you want/Ruhul wants/; 	# ;-)


With the majority of articles under 8K, this isn't a big deal.

If you have an NNTP user browsing the first part of a really long
article, they can simply abort the transfer.  The nnrpd client will
either die, or with coneill's patch, catch SIGPIPE and try to recover
the connection.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21715
Author: Ian G Batten
Date: Fri, 19 Sep 1997 00:00
45 lines
2755 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In article <5vu5th$1h5m$1@newssvr03-int.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:
> What you are proposing is about as practical as requiring CPU
> vendors to increase performance so you can use a bubble sort, so you
> don't have to use one of those complex new fangled sorts instead.

I'd argue that's exactly what the CPU manufacturers _have_ done, in
fact.  Consider the sort of problems that ten years ago on desk-top
systems would require careful tuning, both of algorithms and
implementation, to run in less than a few hours.  Desk-top in that
context means Sun 3/60, 8MB or a Sparc One or something.  These days an
equivalent desktop is a 200MHz UltraSparc with half a gig of memory.
Suddenly you can just write the code the obvious way, using perl, or
lisp, or some other previous ``inefficient'' language.

Surely, the whole Unix idea has been to allow people to use tools that
follow the problem, and provide abstractions to cover the fact that
those tools don't follow the platform?  I take your point that opening
loads of files is obviously slower than opening a few files the same
way.  What I'm suggesting is that you could open a lot of files
``another'' way for the same price as opening a few today.  Doors
vs. AF_UNIX is an example of this effect in IPC.

Since kernel improvement often maintain ABI, even more often API and at
worst require very localised changes, you leverage all the existing
code: it _all_ goes quicker.  Hack away at the applications and every
application needs changing.    And of course a filesystem with O(1) of
O(logN) or something open() times speeds up _all_ your computing.

ian

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQB1AwUBNCLRt8oy0yij3IvtAQH/mAMAoJJr+sRJvFehG+Fb5rfL0Y8DSnQQfnaQ
C4oD8gqb7lplfg1jWT54zedeTRR8Hwmy5XpoZ8lrhBMKcCamf1ejuAAE8rXDeYd9
YF5swfgNpuxBBpfiTp42MfR/mBSvQiSc
=Kf5t
-----END PGP SIGNATURE-----

Re: *NEW* News Server Software!
#21717
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
71 lines
3522 bytes
bill davidsen wrote:
> | Each one of your "applications," I'll bet, could be easily reimplemented
> | to use a different storage method in a day or two.
> 
> I bet they could, too. And when someone has taken the months to do
> that people will be delighted to change. Let us know when you've
> rewritten all that.

He's talking about add-on utilities, tools that can be grafted onto any
server with (IMHO) a little hacking, and a little testing.  NoCeM
support for example could be added to Diablo by changing a couple lines
of shell script, updating ncmcancel.c to call Diablo's history library
routines instead, and seeking into the article to "corrupt it" so that
dnewslink processes won't send the article.  That's hours, not
months...  


> | > Diablo is a great news router, but it, like Cyclone, is a special-
> | > purpose tool.  I run Diablo and inn on different machines.  Neither can
> | > replace the other.
> |
> | It doesn't seem like a terribly open-minded attitude about this.
> 
> You mean we don't agree that whatever you like this week is so good
> we can drop everything else?  [...]

No I mean stubbornly defending software for invalid reasons isn't very
open minded.  That was referring to most of the article and thread, not
just the couple lines of his and mine you quoted.


> jobs seems more open minded than scrapping everything in existance
> and using something new (and commercial) because it's "way cool," I
> think you called it?
> 
> | But INN, and especially it's article storage method, is really showing
> | its age.  You seem to be implying that it's functionality cannot be
> | duplicated, and that it's an indispensable tool.
> 
> And you seem to think that instead of fixing the limitations of INN
> we should all go jump to something else.

Well, yeah, ... :)

But that wasn't the gist of my message.  Mr. Dhesi seemed to imply he
was holding onto INN for all the technical reasons he listed, which
included many misconceptions about other software.

"Only INN can do this..." was what I read from his messages, and I
didn't find those assertions true at all.


> | Not true at all.  Everything you've mentioned would take no more than a
> | week of hacking to get into Diablo...

> Yeah! I bet a hotshot like you could do all that stuff, much faster
> and better than Matt, who has worked his tail off to product a
> solid, stable, and useful package.


Whatever.  I think Matt's done a great job and made a kick ass server
many admins find very useful.  But if you tell me "you can't do this
unless you have INN", I'll say "yeah right", open up another vi window,
and start coding.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21719
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
43 lines
2570 bytes
Mike Horwath wrote:
> Jeff Garzik <jeff.garzik@spinne.com> wrote:
> : Point 1 - using shell accounts to read news on a local machine occurs
> : very rarely these days, in larger environments [read: most of the world]

> I would venture to say that more than 15% of my customer base uses a
> UNIX shell account to read news via NNTP.  I would also venture to
> guess that more than 30% of my customer base uses their UNIX shell
> account on a regular basis for whatever reasons they choose to.

Granted, it was a generalization; and in my previous message I was
mostly referring to reading news from shell accounts via a mounted news
spool.

It was, though, a generalization based on experience.  The ISPs I work
for, and the ones I've come into contact with, have without exception
moved to PPP dynamic-IP dialins instead of dialups to shell accounts. 
Shell accounts are a bitch to secure, and life is much easier when users
don't have access to ISP machines, firewalled outside or not.


> I mean come on, this is freakin' NEWS!  It is text for all intents and
> purposes, why do you need a GUI to read TEXT?  We are even trying to
> help users get away from using MSIE/Netscape for email and try out
> other ways of doing things that work easier *for them*, like just
> pointing their browser at a specialized web server.

If you're fighting against GUIs, you've got an upstream battle ahead of
you.


> Anyone remember tind (the tin daemon?) or perhaps NN and its
> constantly running daemon to keep the database updated so that users
> of NN could actually read news in a threaded form?

And the trn mthreads database....
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: *NEW* News Server Software!
#21720
Author: bill davidsen
Date: Fri, 19 Sep 1997 00:00
34 lines
2250 bytes
In article <5vtibt$7i4$1@bigred.inka.de>,
Olaf Titz <olaf@bigred.inka.de> wrote:

| OTOH, you need some method of index based access to files with
| variable, small record length (history, overview...). For this the
| Un*x FS has no support at all, so we rely on hacks like the dbz index.
| A specialized efficient implementation on a raw device could
| outperform the current method vastly. From the Un*x POV it doesn't
| look elegant, but who cares?

I buy outperform, but "vastly?" I've done some Oracle benchmarks on
SCO UNIX and Unisys SVR4, and access into a large file using o/s
caching is not a lot slower than access into a raw partition using
your own caching. I saw something in the order of 5-10% (Note: for
the application I was testing) which might or might not justify
using a raw partition. People running IBM db2 tell me that they get
less than factor of two, also.

I'd like to believe that we could get an order of magnitude from a
raw partition, or even a factor of two, but I'm fairly sure that we
can't. This isn't the "magic bullet" to make news faster, but I
think that going to a conventional f/s using more articles per file
will give us at least an order of magnitude improvement.

UNIX is not SysIII anymore, and i/o has gotten better.
--
bill davidsen <davidsen@tmr.com>
 "I think there's a problem with the server power supply"
 "Why?"
 "There were flames coming out of the cooling fan until it stopped."
	-actual conversation, on a Friday afternoon of course

Re: *NEW* News Server Software!
#21722
Author: Rahul Dhesi
Date: Fri, 19 Sep 1997 00:00
36 lines
2230 bytes
In <5vr6jd$m3j$1@earth.execpc.com> jgreco@ns.sol.net (Joe Greco) writes:

>One thing I generally DON'T care about is where (or how) an article
>is stored, I merely want to be able to retrieve it given some sort
>of identifying string (in INN, this is "/news/alt/blah/1234", in 
>Diablo, this is "D.something/B.nnnn:offset,len").

Some applications do need to be able to either read an article on stdin
(terminated by EOF) or open a file containing an article.

>I want to transport news.  Per-article storage by group is irrelevant. 
>And, because storage by group is a performance pig, this becomes a
>major downside for INN.

How about expiration based on groups?

>On second thought, I would not have reimplemented INN.  There
>is at least one good transport package already available that
>does nearly exactly what I want:  Diablo.  By writing an overchan-
>like process, I could add a "feed" to this "reader subsystem"
>process.  The reader subsystem numbers the articles, updates the
>active file, and adds entries to the .overview files (along with
>information to locate the actual article storage).  It could be
>nice and modular.

Perhaps you could, and it would be interesting to see how well
the combination would perform.

Diablo is a great news router, but it, like Cyclone, is a special-
purpose tool.  I run Diablo and inn on different machines.  Neither can
replace the other.
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21725
Author: Joe Greco
Date: Fri, 19 Sep 1997 00:00
36 lines
2297 bytes
In news.software.nntp article <5vugtaINNmkv@stumble.cis.ohio-state.edu>, barr@stumble.cis.ohio-state.edu (Dave Barr) wrote:
:In article <5vueci$plt$1@samba.rahul.net>,
:Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
:>Essentially every standard UNIX program uses this model, and most were
:>conceived and written long before inn existed.  Why is it ridiculous to
:>expect to be able to continue using them in a News context?

Rahul, I present to you, a program I call "diab_read".

Go to http://www.nntp.sol.net/patches/diablo/ and download the UUCP
batcher.  Inside is a file called "diab_read.c".  If you compile it
with "-DMAINLINE", it becomes a simple Diablo version of cat(1).

It will happily read articles and put them on stdout, so that you
may use many of your favorite utilities.

Can you do ALL the same things using EXACTLY the same commands that
you could with INN?  Probably not.  But so what?  You can do new and
clever things with Diablo that you can't with INN.  You just have to
use your head.

:If the latter (in combination with a different filesystem) will give you
:an order of magnitude performance improvement, why not do it?  The
:code is very much the same with either technique.  INN already uses
:its own I/O API layer already.  It's just a matter of substituting
:another one.

Dave, it's the old resistance-to-change thing.  At one time, people
refused to code their newsreaders to support NNTP, because it involved
change and effort.  Once they did so, however, there was a possibility
for new and better things.

... JG

Re: *NEW* News Server Software!
#21726
Author: Brad Templeton
Date: Fri, 19 Sep 1997 00:00
16 lines
1489 bytes
I think he means that a raw device would outperform an fs database like INN.

While there would not be that much difference between a big file on a well
implemented (ie. makes files contiguous) file system and a raw device,
the difference between the one file per article and the big circular
pool (where an article's designation is just a seek address and length)
should be vast.   For reading it's just one seek and one block read,
for writing it's even less since you can batch the writing of several
articles at a time if doing just one circular buffer.  (You want more than
one for expire classes but you can get the same effect)
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: *NEW* News Server Software!
#21727
Author: Ken Leland
Date: Fri, 19 Sep 1997 00:00
26 lines
1706 bytes
In article <5vukhg$7f2$1@earth.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:
>In news.software.nntp article <5vu731$1hjk$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
>:Maybe. We managed to pull NOV into a separate process instead of
>:having it in INN. We got crosspost to do linking in a separate
>:process. It's not a given that INN will stay single threaded for
>:incoming articles, either.
>
>It can't, and I've been saying that for years.
>
>My news servers typically have at least a dozen disks.  Under a
>singlethreaded model, this means that most of those disks are
>not being used to write data at any given instant.  That's 
>inefficient, and a key bottleneck.

Dumb question: Is this true if you have a healthy OS IOBUF area,
and have set async and noa(ccess)time? I do know that when I goosed
my IObuf, things got much better, ARTwrite dropped in half, for instance. 
That and your cool history patch makes for sunny days in the INN pit.

Ken Leland
Monmouth Internet


Re: *NEW* News Server Software!
#21728
Author: Ian G Batten
Date: Fri, 19 Sep 1997 00:00
51 lines
2888 bytes

-----BEGIN PGP SIGNED MESSAGE-----

In article <5vrnvk$10q$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
>     INN's per-file storage is a legacy issue.  It just doesn't work well in
>     most of today's systems for many reasons.  The article volume is too high:
>     It stresses the kernel namei and buffer caches, it stresses the kernel's
>     internal filesystem locks, many filesystems (even log filesystems) have
>     synchronization or seeking issues when maintaining directory consistancy.

Hang on.  Running Usenet software is _one_ example of a data-intensive
application.  If Unix (yes, I realise that's a broad church these days)
really can't cope with it, which is the better path:

	* Hack the application to use specialised data structures
	  which are then stored in vast bit-buckets?

or	* Hack the operating system so it can cope with the application
	  using a natural architecture?

To me, this is like that eighties horror, the Oracle-raw-partition, a
sin still promoted by the database community.  Sun have, quite rightly,
done things in 5.6 which purport to allow access into the filesystem
that is as fast as using a raw partition.  They may have succeeded, they
may not --- I've got Oracle on a 5.6 box, but it's not the 5.6 port ---
but the _objective_ strikes me as the right way to go.

>     There are many solutions to the problem, but all come down to three things:
>     Reduce the number of files by at least two orders of magnitude (or not
>     use files at all), reduce internal kernel locking contention, and reduce
>     lookup overhead (e.g. spend less time on meta-data).

Or, better, produce arguments to OS authors why they should attempt to
get their OSen to handle directories with two orders of magnitude more
files.  On-disk directory hash tables?


ian

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQB1AwUBNCIdVsoy0yij3IvtAQHLPwL7B9y7bBnxtKTjSXNum0UkVklY9FXNOCxB
eqvNl/UzehrjILjJNdfojUt0EWq2YpfeRCD5UcfocrFdf86aoPYGiq0LN+rRE62u
Q5lMoHmerHGh+2fzfBsyIsLgWKuWkzaX
=dS+y
-----END PGP SIGNATURE-----

Re: *NEW* News Server Software!
#21730
Author: Garzik
Date: Fri, 19 Sep 1997 00:00
42 lines
2278 bytes
Forrest J. Cavalier III <mibsoft@epix.net> wrote:
>   1. Last I looked, INN tends to use QIO calls for config files, overviews,
>      as well as articles.  You can't just replace the QIO routines
>      for only article storage, for example.

INN+CNFS has accomplished this already, I believe...


>   2. For new code, I agree it is true that the code you write will be
>      very much the same: open() vs OpenSpool().  But new code has never
>      been the obstacle to radical INN mods....existing tools are the
>      trouble.  Things like expire, findmissing, makehistory.

Many of the INN tools are also tied to maintaining the INN
architecture.  For example, Diablo provies makehistory functionality,
expire functionality, and you don't really need to do findmissing.  [I
know there are tons of utils other than these, of course.]


>Of all of these, I think number 3 is actually the hardest, and it
>is the main reason that reading capabilities have come so slowly to
>CNFS, Diablo, etc.  INN currently "thinks" of the overview as an
>afterthought -- if it is not there it doesn't impact the correctness
>of nnrpd, expire, etc.  Turning this "upside down" and making overview
>data the critical part impacts a lot of code and design, and it
>breaks lots of tools, utilities, and third-party C and perl.


Changes are required, yes, but a simple iterative interface for
article numbers (in Diablo, or whatever) could easily be plugged 
into an existing tool.

	Jeff



-- 
Often statistics are used as a drunken man uses lampposts -- for support
rather than illumination.

Re: *NEW* News Server Software!
#21732
Author: Dave Barr
Date: Fri, 19 Sep 1997 00:00
37 lines
1754 bytes
In article <5vueci$plt$1@samba.rahul.net>,
Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
>Essentially every standard UNIX program uses this model, and most were
>conceived and written long before inn existed.  Why is it ridiculous to
>expect to be able to continue using them in a News context?

Why is it rediculous to use simply a different I/O library?

Instead of (to use Perl syntax cause it's on my mind right now):

open(FOO,"alt/sex/bondage/12531");
while (<FOO>) {
	# do stuff
}
close(FOO);

Just do:

OpenSpool(FOO,"alt.sex.bondage:12531"); # or OpenSpool(FOO,"<big.orgy@12345>");
while (<FOO>) {
	# do stuff
}
close(FOO);

If the latter (in combination with a different filesystem) will give you
an order of magnitude performance improvement, why not do it?  The
code is very much the same with either technique.  INN already uses
its own I/O API layer already.  It's just a matter of substituting
another one.

--Dave
-- 
http://www.cis.ohio-state.edu/~barr/
barr@cis.ohio-state.edu

Re: *NEW* News Server Software!
#21733
Author: Rahul Dhesi
Date: Fri, 19 Sep 1997 00:00
16 lines
1275 bytes
In <5vsoq5$f20$9@darla.visi.com> drechsau@yuck.net (Mike Horwath) writes:

>: - Allow Newsreading with tin/trn/nn directly from the news spool.

>Why is this a benefit?

NFS sllows random reads and seeks, nntp does not.  This has various
implications affecting any situation in which you aren't sequentially
scanning through entire articles.  For example, looking at the first
screen of 50 big postings (e.g. in a binaries group) for the one or two
that you want.
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: *NEW* News Server Software!
#21734
Author: Matt Dillon
Date: Fri, 19 Sep 1997 00:00
38 lines
2490 bytes
:In article <5vult7$lte@shell.monmouth.com>,
:Ken Leland <kwl@shell.monmouth.com> wrote:
:>In article <5vukhg$7f2$1@earth.execpc.com>,
:>Joe Greco <jgreco@ns.sol.net> wrote:
:...
:>>
:>>My news servers typically have at least a dozen disks.  Under a
:>>singlethreaded model, this means that most of those disks are
:>>not being used to write data at any given instant.  That's 
:>>inefficient, and a key bottleneck.
:>
:>Dumb question: Is this true if you have a healthy OS IOBUF area,
:>and have set async and noa(ccess)time? I do know that when I goosed
:>my IObuf, things got much better, ARTwrite dropped in half, for instance. 
:>That and your cool history patch makes for sunny days in the INN pit.
:>
:>Ken Leland
:>Monmouth Internet

    It's still true.  Having a lot of cache helps, but doesn't change
    the fact that the ARTwrite() must do a file create which involves
    a namei lookup which involves, essentially, random sequential I/O.
    Mounting async does not make this go much faster, and your stripes
    will only be partially effective.  One is essentially blowing a large
    portion of one's memory caching meta-data rather then data.  The same
    system with Cyclone or Diablo is able to use it all for data.  You can, 
    of course, throw memory at any problem, but if an INN system requires 
    X amount of resources, a Diablo or Cyclone or NNTPRelay system will 
    require X/5 amount of resources (subject to a minimum memory requirement
    for dhistory file caching).   For newsreading, that is.  Who knows
    how the readers will turn out, but I at least expect an order of magnitude
    for diablo.  nnrpd is so bloated that it isn't all that hard to do better.

						-Matt


Page 1 of 2 • 99 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