🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
21 messages
21 total messages Started by T. William Wells Sun, 14 Jul 1996 00:00
how to speed up innd
#9309
Author: T. William Wells
Date: Sun, 14 Jul 1996 00:00
75 lines
4129 bytes
Throw it away! :-) That's about what I did. You've probably read
my rants about how disk I/O ups network latency and how this is an
O(n**2) effect of the size of the newsfeed. Well, it's true and
I've now some hard evidence.

I've been struggling for nearly six months to make my news server
keep up. I fixed all sorts of local problems, harassed my feeds
into fixing theirs, then went on an optimizing rampage.

Nothing helped. At the last, I could just keep up -- if nothing
interfered with the normal flow of news. Otherwise I'd fall behind
and take weeks to catch up.

Not until I totally disconnected article receipt from article
filing did matters improve. On my system, there's now this stupid
nntp daemon sitting on the nntp port (it doesn't even do
streaming) which creates rnews batches in a 70M spool area. A
single rnews process feeds that into innd. (I don't even do an
msgidd equivalent!)

Just for reference, I have three full incoming newsfeeds, two
approximately half outgoing newsfeeds, and a typical peak-time
load of 10-20 nnrpds. This is on a 100MHz Pentium with (what I
think are 11ms) SCSI drives on an Adaptec 2940 controller. The
operating system is FreeBSD2.1. I'd always suspected that that
mcahine would have no problem keeping up with a feed....

To repeat what's going on: innd is disk-limited. That means that
disk I/O _always_ increases network latency. To a point, that
isn't a problem, especially with streaming. But, beyond that
point, there can be *huge* delays -- and those delays affect _all_
incoming feeds.

When I say "huge" I *mean* huge -- one of my statistics programs
has seen innd slow down to two articles per *minute*. It's disk
syncs that are the killer but even a few massively cross-posted
articles can result in lots of disk activity -- even if that
activity is in the cross-post daemon.

There are two lessons I've learned from this exercise. The first
is that the Unix file system, used naively, is a major bottleneck.
When I did stats earlier this year, it was taking nearly five
times the actual news volume's worth of disk access just to file
the news -- most of that spent in reading directory entries. At
some point, I hope to recode things to use smaller directories, by
filing articles using a nnnnnnn/nnn scheme rather than just
shoving all articles into one directory. This should have a
dramatic effect on disk throughput though, of course, only a live
test will prove it.

The second is that one cannot let disk transfers interfere with
network transfers. The processes that receive news need to do the
absolute minimum disk activity needed to "get the job done" --
and *not* wait on innd or anyone else to do it. Network latency,
once spent, is time _gone_ -- and it's one of the things that is
usually not under control of the news admin.

My current incoming daemon just accepts ihaves, checks for dups by
reading the active file, reads the article, acks the article and
then writes it to a batch.  That's all. It relies on the disk
cache to minimize history index lookup disk hits -- no dbzincore
here.  That has the side-effect of partially ameliorating the
msgidd lack; without buffering it gets whatever innd has recently
written.  (No hard stats here; when my system is fully up-to-date,
I'll see what I can get.)

The only problem with my current system is that it doesn't scale
all that well. The spool area probably has to be O(n) in the
number of newsfeeds; with no msgidd equivalent, you're gonna get
a lot of dups. Well, I'll see about writing one if it looks like
my dup stats are *too* horrible.


Re: how to speed up innd
#9338
Author: Jeff Weisberg
Date: Mon, 15 Jul 1996 00:00
31 lines
1749 bytes

bill@twwells.com said:

| To repeat what's going on: innd is disk-limited. That means that
| disk I/O _always_ increases network latency. To a point, that
| isn't a problem, especially with streaming. But, beyond that
| point, there can be *huge* delays -- and those delays affect _all_
| incoming feeds.
| 
| When I say "huge" I *mean* huge -- one of my statistics programs
| has seen innd slow down to two articles per *minute*. It's disk
| syncs that are the killer but even a few massively cross-posted
| articles can result in lots of disk activity -- even if that
| activity is in the cross-post daemon.


The one thing I have done that had the greatest improvement,
was turning on delayed i/o (see the fastfs code now packaged
with unoff4) and killing off update(8).

This, of course, isn't for the faint of heart, if you crash
you will lose things (but it is *usually* minor and recoverable)


	--jeff

This article cost the net hundreds if not thousands of dollars.
Was it worth it?

Re: how to speed up innd
#9343
Author: T. William Wells
Date: Mon, 15 Jul 1996 00:00
68 lines
3899 bytes
In article <4se1hs$hjp@necco.harvard.edu>,
Harry Bochner <bochner@das.harvard.edu> wrote:
: In article <4sc8e0$q8u@twwells.com>, bill@twwells.com (T. William Wells) writes:
: |> Not until I totally disconnected article receipt from article
: |> filing did matters improve. On my system, there's now this stupid
: |> nntp daemon sitting on the nntp port (it doesn't even do
: |> streaming) which creates rnews batches in a 70M spool area. A
: |> single rnews process feeds that into innd. (I don't even do an
: |> msgidd equivalent!)
:
: Very interesting!
:
: When INN was new, the big advantage over C News + nntpd, as I understood it, was
: that it avoided writing batch files to disk. Now we have a report of better
: performance doing it the old-fashioned way!

There's a big "sigh!" lurking within all this -- my original setup
used C news rather than INN, as it's what I had been using
previously. (I've been running C news installations since C news
began!) I didn't switch for performance reasons; I switched
because the nnrpd I was using didn't do overview. From hindsight,
i should have just stuck with what I had and installed INN's
nnrpd.

: I have 2 quick variations to suggest:
:
: 1) msgidd would be a good thing. Easiest way to get it might be to use the
: reference nntpd implementation; seems to me that it shouldn't need much
: modification to run in your scheme.

Hm. I don't know how the reference msgidd works; however, if it
does disk lookups, it's not useful here. If it's a pure message ID
cache, I think I still want something different. One of the few
things that streaming absolutely has over the regular protocol is
a return code that says "not right this instant, maybe in a few".
I'd want to take advantage of this to improve reliability while
being able to prevent simultaneous sending of an article.

: 2) I'd be interested in seeing the results of using C News! After all, it's not
: clear what efficiency advantage INN has in your modified set up. Since the
: data-structures are mostly compatible, it shouldn't too hard to switch between
: C News and INN. (I'd like to graft delayrm and fastrm into C News expire, tho.)

Basically, I'd want to replace innd itself with relaynews and
leave all the rest alone. That would require some changes to
relaynews but not too many. Other things would have to be changed,
too, especially those things that use innd for locking. I'll think
about it but I don't know if I'll have the time to play with this.

: The major point, though, is:
: |> The first
: |> is that the Unix file system, used naively, is a major bottleneck.
: |> I hope to recode things to use smaller directories, by
: |> filing articles using a nnnnnnn/nnn scheme rather than just
: |> shoving all articles into one directory.
:
: This should help, but I think you need to go further. The inherited model of one
: article per file has got to go, I think. Various ideas about this were tossed
: around recently (and I have my own ;-), but the main thing we're waiting for is
: some one to find the time to do a proof-of-concept implementation of some sort.

While I have my own such scheme :-), I suspect that none of them
will offer a major improvement over the Unix file system. At some
point you end up reimplementing a file system....


Re: how to speed up innd
#9345
Author: T. William Wells
Date: Mon, 15 Jul 1996 00:00
14 lines
1120 bytes
In article <4senf8$a0l@monet.op.net>, Jeff Weisberg <jaw@op.net> wrote:
: The one thing I have done that had the greatest improvement,
: was turning on delayed i/o (see the fastfs code now packaged
: with unoff4) and killing off update(8).
:
: This, of course, isn't for the faint of heart, if you crash
: you will lose things (but it is *usually* minor and recoverable)

"Minor" is OK but crashes do happen and, as it's fatuous to back
up a news spool, "usually" recovery ain't good enough.


Re: how to speed up innd
#9348
Author: Harry Bochner
Date: Mon, 15 Jul 1996 00:00
43 lines
2458 bytes
In article <4sc8e0$q8u@twwells.com>, bill@twwells.com (T. William Wells) writes:
|> Not until I totally disconnected article receipt from article
|> filing did matters improve. On my system, there's now this stupid
|> nntp daemon sitting on the nntp port (it doesn't even do
|> streaming) which creates rnews batches in a 70M spool area. A
|> single rnews process feeds that into innd. (I don't even do an
|> msgidd equivalent!)

Very interesting!

When INN was new, the big advantage over C News + nntpd, as I understood it, was
that it avoided writing batch files to disk. Now we have a report of better
performance doing it the old-fashioned way!

I have 2 quick variations to suggest:

1) msgidd would be a good thing. Easiest way to get it might be to use the
reference nntpd implementation; seems to me that it shouldn't need much
modification to run in your scheme.

2) I'd be interested in seeing the results of using C News! After all, it's not
clear what efficiency advantage INN has in your modified set up. Since the
data-structures are mostly compatible, it shouldn't too hard to switch between
C News and INN. (I'd like to graft delayrm and fastrm into C News expire, tho.)

The major point, though, is:
|> The first
|> is that the Unix file system, used naively, is a major bottleneck.
|> I hope to recode things to use smaller directories, by
|> filing articles using a nnnnnnn/nnn scheme rather than just
|> shoving all articles into one directory.

This should help, but I think you need to go further. The inherited model of one
article per file has got to go, I think. Various ideas about this were tossed
around recently (and I have my own ;-), but the main thing we're waiting for is
some one to find the time to do a proof-of-concept implementation of some sort.

-- 
Harry Bochner
bochner@das.harvard.edu

Re: how to speed up innd
#9365
Author: T. William Wells
Date: Tue, 16 Jul 1996 00:00
39 lines
2511 bytes
In article <vz2enmcvi1q.fsf@wildstar.net>,
Richard Michael Todd  <rmtodd@wildstar.net> wrote:
: Yes, very interesting indeed.  I remember the days when INN1.4 was new and
: we switched to it from C News-msgidd-nntpd-and-random-bits-of-baling-wire,
: and saw a quite noticable performance jump.  That was back when a full feed
: was somewhere around 20 kiloarticles/day or so (the good old days :-).
: Curious to see that something resembling the C News/nntpd approach might
: actually perform better with today's traffic levels.

It's not that surprising. While disk speeds have shown a modest
improvement, the newsfeed size has grown exponentially -- and the
disk activity is O(n**2) in the newsfeed size.

: Yeah. At a minumum you'd want to change the INN expire to lock out
: relaynews during the entire creation of the new history db,instead of
: the existing "reserve/pause" stuff.  (You could hack C News expire to
: do delayrm instead, but I suspect hacking INN expire to respect C News
: locking is easier.)

Nah. When I ran C news, I used a hack like that; it's pretty easy.
Still, I believe that INN's expire is significantly faster than C
news's. It may just be dbzincore....

: More or less, though with luck the specific file system you implement will
: be more suited towards the needs of news than the "standard" filesystem is.

Like the way that dbz improves over dbm....

: For instance, the filenames for articles in a newsgroup are always numbers,
: so in a sense you don' actually need to store the filenames for articles like
: you would in a traditional filesystem directory, you just need to store
: a couple of integers (lowest/highest article number) and then an array of
: disk offsets/article sizes indexed by article number.

Well, maybe. That old article unexpired for a month will result
in a rather large gap in an active newsgroup....

Re: how to speed up innd
#9371
Author: shields
Date: Tue, 16 Jul 1996 00:00
19 lines
1234 bytes
In article <4sc8e0$q8u@twwells.com>, T. William Wells <bill@twwells.com> wrote:
> When I say "huge" I *mean* huge -- one of my statistics programs
> has seen innd slow down to two articles per *minute*. It's disk
> syncs that are the killer but even a few massively cross-posted
> articles can result in lots of disk activity -- even if that
> activity is in the cross-post daemon.

This suggests that running a feed-only machine without crosspost(8)
is a definite win.

> There are two lessons I've learned from this exercise. The first
> is that the Unix file system, used naively, is a major bottleneck.

Agreed.  I know misc.jobs.offered is slowing the whole system.
-- 
Shields, CrossLink.

Re: how to speed up innd
#9379
Author: Anthony D'Atri
Date: Tue, 16 Jul 1996 00:00
18 lines
1308 bytes
>| To repeat what's going on: innd is disk-limited. That means that
>| disk I/O _always_ increases network latency. To a point, that
>| isn't a problem, especially with streaming. But, beyond that
>| point, there can be *huge* delays -- and those delays affect _all_
>| incoming feeds.

I've found that striping the spool and moving NEWSLIB and out.going to
seperate spindles helps significantly.

>The one thing I have done that had the greatest improvement,
>was turning on delayed i/o (see the fastfs code now packaged
>with unoff4) and killing off update(8).

I do it via BSDI's mount options for my spool while running expire.


Re: how to speed up innd
#9385
Author: Mark Delany
Date: Tue, 16 Jul 1996 00:00
43 lines
2466 bytes
Richard Michael Todd <rmtodd@wildstar.net> writes:

>Doesn't every poster to news.software.nntp have his own idea of how to
>re-architect the Usenet spool system? :-)

>> : some one to find the time to do a proof-of-concept implementation of some sort.

>I believe Mark Delany was working on one, though I don't know how far
>he's gotten.

Proof-of-concept is done. The associated library is bolted into innd
and nnrpd and a test server is running on one of our systems. There is
still more work to do in the backends, news.daily, expire and
innxmit. Performance still looks quite encouraging - along the lines
of the statistics posted here about two months ago.

Whilst this sounds all well and good in its own right, the big problem
is that the code changes come into the "significant surgery" category
so it's not the sort of thing that you can turn on or off with a
run-time flag or compile in with an #ifdef or two.

Which leaves me in a bit of a dilemma. There is no way that I'm going
to make a 6000+ line patch generally available and have
yet-another-version of inn roaming the net.

What is really needed - and what has been discussed here before - is
to modify inn (the whole package, not just the program) so it
interfaces via a News-Storage API of some sort so that different
libraries can be bolted in at the bottom end. Libraries that come to
mind include the current UFS implementation, commercial RDBMS, the
stuff we're discussing here, whatever.

Now if someone competent were to put up their hand to separate inn
from the UFS interface via an API, then you'd be making perhaps the
most important contribution possible to the future well-being of
inn. Without it, the hurdles are just too high to try different
concepts easily, with it, many possibilities present themselves.


Regards.

Re: how to speed up innd
#9389
Author: Richard Michael Todd
Date: Tue, 16 Jul 1996 00:00
69 lines
4063 bytes
bill@twwells.com (T. William Wells) writes:

> 
> In article <4se1hs$hjp@necco.harvard.edu>,
> Harry Bochner <bochner@das.harvard.edu> wrote:
> : Very interesting!
> :
> : When INN was new, the big advantage over C News + nntpd, as I understood it, was
> : that it avoided writing batch files to disk. Now we have a report of better
> : performance doing it the old-fashioned way!

Yes, very interesting indeed.  I remember the days when INN1.4 was new and
we switched to it from C News-msgidd-nntpd-and-random-bits-of-baling-wire,
and saw a quite noticable performance jump.  That was back when a full feed
was somewhere around 20 kiloarticles/day or so (the good old days :-).  
Curious to see that something resembling the C News/nntpd approach might
actually perform better with today's traffic levels. 

> Hm. I don't know how the reference msgidd works; however, if it
> does disk lookups, it's not useful here. If it's a pure message ID
> cache, I think I still want something different. One of the few

It was a pure messageID cache. 

> Basically, I'd want to replace innd itself with relaynews and
> leave all the rest alone. That would require some changes to
> relaynews but not too many. Other things would have to be changed,
> too, especially those things that use innd for locking. I'll think

Yeah. At a minumum you'd want to change the INN expire to lock out
relaynews during the entire creation of the new history db,instead of
the existing "reserve/pause" stuff.  (You could hack C News expire to
do delayrm instead, but I suspect hacking INN expire to respect C News
locking is easier.)

> : This should help, but I think you need to go further. The inherited model of one
> : article per file has got to go, I think. Various ideas about this were tossed
> : around recently (and I have my own ;-), but the main thing we're waiting for is

Doesn't every poster to news.software.nntp have his own idea of how to
re-architect the Usenet spool system? :-)

> : some one to find the time to do a proof-of-concept implementation of some sort.

I believe Mark Delany was working on one, though I don't know how far
he's gotten.  I've been working on some ideas of my own for changes to
the news spool format (not as drastic as the kind Delany was working
on), hacking them into innd over the past couple of months.  I'm still
not sure whether they actually improve overall article-processing
performance, though.  They didn't on one system I tried it on, but that one
system has fairly limited hardware resources (most notably, only ~2M of 
disk cache), so may not be representative of how performance is on larger
servers.  I'm gonna try to run tests on another machine the next couple
weeks to see what happens. 

> While I have my own such scheme :-), I suspect that none of them
> will offer a major improvement over the Unix file system. At some
> point you end up reimplementing a file system....

More or less, though with luck the specific file system you implement will
be more suited towards the needs of news than the "standard" filesystem is.
For instance, the filenames for articles in a newsgroup are always numbers,
so in a sense you don' actually need to store the filenames for articles like
you would in a traditional filesystem directory, you just need to store 
a couple of integers (lowest/highest article number) and then an array of
disk offsets/article sizes indexed by article number. 

Re: how to speed up innd
#9405
Author: Tony Fitzgerald
Date: Wed, 17 Jul 1996 00:00
32 lines
2254 bytes
In article <4sc8e0$q8u@twwells.com>, T. William Wells <bill@twwells.com> wrote:
>Just for reference, I have three full incoming newsfeeds, two
>approximately half outgoing newsfeeds, and a typical peak-time
>load of 10-20 nnrpds. This is on a 100MHz Pentium with (what I
>think are 11ms) SCSI drives on an Adaptec 2940 controller. The
>operating system is FreeBSD2.1. I'd always suspected that that
>mcahine would have no problem keeping up with a feed....

Earlier this spring our SUN salesman sent us a copy of an article from
Infoworld which reviewed a comparison of web servers running under
WindowsNT on Intel and various UNIX platforms.  As you've no doubt
concluded from who sent it to me, the review favoured the SUN platform.

The primary conclusion of the detailed analysis was that the bus
architecture of the intel platform severely limited the performance of
the WindowsNT based server.  The reviewers stated that they would like
to try WindowsNT on a DEC alpha for a fairer comparison.

Your description of the problem sounds again like the intel bus
architecture limiting the throughput of your system.  The disk I/O is
interfering with the network I/O because both are constrained by the
intel bus.  When INN is run on a hardware platform which separates
network I/O from disk I/O or handles both at a higher rate, then the I/O
design of INN is not a serious problem.  I do not believe that there is
any problem in the design of INN itself that prevents driving both the
disk sub-system and the network at capacity providing the underlying
hardware is up to the task. 
-- 
O- J. Anthony Fitzgerald, jaf@UNB.ca, http://www.unb.ca/web/CSD/staff/jaf/ -O

Re: how to speed up innd
#9411
Author: Jerry Aguirre
Date: Wed, 17 Jul 1996 00:00
41 lines
2756 bytes
In article <4sfnpn$5c0$1@bushwire.mira.net.au> Mark Delany <markd@mira.net.au> writes:
>What is really needed - and what has been discussed here before - is
>to modify inn (the whole package, not just the program) so it
>interfaces via a News-Storage API of some sort so that different
>libraries can be bolted in at the bottom end. Libraries that come to
>mind include the current UFS implementation, commercial RDBMS, the
>stuff we're discussing here, whatever.

So, what really needs to be done is to come up with the API.  If that
is done correctly then the rest is a "small matter of programming".

An important consideration is where to break the functionality and define
the inteface.  By example is only the article storage, with cross posting
included, to be considered?  What about the maintenance of the active and
history file?

Specifying only the article storage would be the simplist break.  One could
then store the data in a variety of ways.  Only a realatively small amount
of existing code would need to be changed, those related to the create,
link, open, and close of the article text.

But keeping the existing secondary files could hamper more inovative
approaches.  By example it might be nice to change the format of the NOV
file to directly index to the location of the article in the new storage
scheme.  Or one might want to change the format of the active file for
similar reasons.  The format of the history file could also become a
limitation.

Changing the format of the active, history, or NOV, would effect a
significantly larger amount of code.  Is it worth writing an API that
one simply throws and article at to handle all the filing.  Then one
needs to include article indexing (NOV) and expiration in the API.

I would like to stress again that whatever API is created must be
applicable to the existing storage scheme as well as allowing more
inovative approaches.  That way the existing code could ship with
a library that implemented the API as separate files for each article.
New schemes would simply replace that API library.

Re: how to speed up innd
#9413
Author: Tim Hogard
Date: Wed, 17 Jul 1996 00:00
33 lines
2148 bytes
T. William Wells (bill@twwells.com) wrote:
: In article <4senf8$a0l@monet.op.net>, Jeff Weisberg <jaw@op.net> wrote:
: : The one thing I have done that had the greatest improvement,
: : was turning on delayed i/o (see the fastfs code now packaged
: : with unoff4) and killing off update(8).
: :
: : This, of course, isn't for the faint of heart, if you crash
: : you will lose things (but it is *usually* minor and recoverable)

: "Minor" is OK but crashes do happen and, as it's fatuous to back
: up a news spool, "usually" recovery ain't good enough.

So you delete all the news spool (or unmount the disk), tar it all up
and leave it on a different partition.  If you have a crash, then you
pull the old thing back including an old history and active file
renumber the active file so the readers arn't confused (they don't get
as confused you might think).  Then turn your feeds back on. The news
system will fix it's self over the next few hours.  If you have friendly
feeds, then they can requeue all your crashed news.

I set up a news feed on a sun 690 with 384 mb of memory and tried to
crash it to see just how bad it would get with the fastfs during a
crash.  While I did have a few problems, they were all minor and none of
them would have even triped up my boot sanity checks (active file good, 
history good). I think one day, I took the system down 20 times in one
day, claed everything up and restarted again.  It never had real problem.
Also 384mb of ram in a news server is a waste.

-tim
http://www.abnormal.com

Re: how to speed up innd
#9415
Author: T. William Wells
Date: Wed, 17 Jul 1996 00:00
10 lines
792 bytes
In article <4shg5k$9ev@sol.sun.csd.unb.ca>,
Tony Fitzgerald <jaf@sarastro.sun.csd.unb.ca> wrote:
: [ drivel ]

Nothing you said bears the slightest relationship to reality.

Followups directed elsewhere.

Re: how to speed up innd
#9429
Author: Don Lewis
Date: Thu, 18 Jul 1996 00:00
13 lines
1087 bytes
In article <4sc8e0$q8u@twwells.com>, T. William Wells <bill@twwells.com> wrote:
>When I say "huge" I *mean* huge -- one of my statistics programs
>has seen innd slow down to two articles per *minute*.

Unless you can file articles a *lot* faster than that you're going to
get seriously backlogged somewhere.
-- 
Don "Truck" Lewis                                       TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com                         138 New Mohawk Road
Phone: +1 916 478-8284       FAX: +1 916 478-8251       Nevada City, CA  95959

Re: how to speed up innd
#9500
Author: Clayton O'Neill
Date: Sun, 21 Jul 1996 00:00
31 lines
2033 bytes
On 22 Jul 1996 08:49:48 +1200, Alan Brown <alan@papaioea.manawatu.gen.nz> wrote:
>In article <4senf8$a0l@monet.op.net>, Jeff Weisberg <jaw@op.net> wrote:
>>The one thing I have done that had the greatest improvement,
>>was turning on delayed i/o (see the fastfs code now packaged
>>with unoff4) and killing off update(8).
>Anyone got any idea about making the fastfs code work with Linux, or is
>there an equivalent setting somewhere in the dapths of the ext2fs? 

My understanding is that fastfs just turns on async meta-data updates. 
ext2fs does async meta-data updates by default.  

>>This, of course, isn't for the faint of heart, if you crash
>>you will lose things (but it is *usually* minor and recoverable)
>Hey, it's only news, and as you say, it's recoverable.

It's been my experience that we have very rarely lost anything.  We had
severe hardware problems with our news server for about a month or two, and
even with it locking up every 1-2 days, we never noticed a lost article. 
I've only seen an ext2 filesystem hose itself once, and I'd chalk that up to
a scsi driver fault.


-- 
-------------------------------------------------------------------------
Clayton O'Neill             Business-->                   Premier One Inc
whatever@oneill.net                                   clayton@premier.net
http://www.oneill.net       <--Personal            http://www.premier.net


Re: how to speed up innd
#9513
Author: Alan Brown
Date: Mon, 22 Jul 1996 00:00
21 lines
1417 bytes
In article <4senf8$a0l@monet.op.net>, Jeff Weisberg <jaw@op.net> wrote:

>The one thing I have done that had the greatest improvement,
>was turning on delayed i/o (see the fastfs code now packaged
>with unoff4) and killing off update(8).

Anyone got any idea about making the fastfs code work with Linux, or is
there an equivalent setting somewhere in the dapths of the ext2fs? 

>This, of course, isn't for the faint of heart, if you crash
>you will lose things (but it is *usually* minor and recoverable)

Hey, it's only news, and as you say, it's recoverable.

AB
-- 
One net to rule them all, one net to find them, one net to bring them all,
using Unix to bind them.

Re: how to speed up innd
#9581
Author: Heiko W.Rupp
Date: Tue, 23 Jul 1996 00:00
14 lines
1164 bytes
In <slrn4v5cfe.1ne.coneill@premier1.premier.net>, Clayton O'Neill wrote:
:|My understanding is that fastfs just turns on async meta-data updates. 
:|ext2fs does async meta-data updates by default.  

Yes, as I understand it too. I am also running my news partition on NetBSD 
whith the async flag on and had never any problems with it.

-- 
Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661524
1 + 1, Kondom nehm' ich keins    - auf dem Wasserbett und die ganze Nacht


Re: how to speed up innd
#9672
Author: Wolfgang Rupprecht
Date: Sat, 27 Jul 1996 00:00
75 lines
3308 bytes
-----BEGIN PGP SIGNED MESSAGE-----

I wonder if we aren't trying too hard to keep the old model of
store/forward that worked so well for usenet when it was still uucp.

Everybody seems to be racking their brains to figure out how to handle
a data flow of several hundred Megs per day.  Do we *really* need a
store and forward model for usenet?  Lets ask ourselves: why is it that
we are trying to store 500Megs+ per day?

Why don't we just flood the net (usenet) with NOV type overview
summaries that contain a URL (or similar) for where to find the real
article?  

I'm thinking of something where a multicast (mbone) channel would
transmit the URLS and NOV summaries of the articles.  Each summary
would fit into a single 512-byte udp multicast packet and flooded
through the interested mbone parties.  Summaries would contain the
newsgroup the article was meant for, the article URL (also doubles as
id), posting date, subject, posters names etc...  Local clients on
each of the news-reader's machines would store (and age out) the NOV
summaries.

advantages:

1) Local storage limited to overview data only.

2) low bandwidth -- only read articles are actually moved across the
   net.

3) Since the transport line are unloaded again, end to end propagation
   times should drop back down into the minutes range.

4) spam-sters would just cause a large load on their machine  as
   zillions of folks tried to download their article.

disadvantages:

1) requires real IP connectivity to read articles

2) a popular posting could cause quite a bit of load on the local machine.

3) possibly increased delay in reading an article.

4) this scheme assumes that the ratio of locally-read to total posted
   articles is relatively low.  This may not be true for very large
   sites.

added hacks:

1) local article caching (on the first download) can help eliminate
  the cost of transporting a popular article a second time.

What do folks think?  I really think that the current usenet
architecture is starting to suffer under this load, and that it
doesn't have that much breathing room left.

- -wolfgang

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: noconv

iQCVAwUBMfsOy6aCZVp0V9mpAQFxuwP8CPpSCxREK8qTxgjR8LEQtaLglCl7f1+z
SmRCazRgPD5FbYgzQDlwarGmAPLGclE2FJTYM8xkQSSNnU80tlDYbFCP2T7jt3r+
oV6eSFgzGaVsfZNwKUxeTPMU4BxTwdqH0e3o6RU0JmP1vUuTlymPcNLhtlHKfdPI
Qyy0JxdAF7s=
=oytQ
-----END PGP SIGNATURE-----
-- 
Wolfgang Rupprecht    <wolfgang@wsrcc.com>     <http://www.wsrcc.com/> 
PGP key available via finger, keyservers, and WWW

Re: how to speed up innd
#9738
Author: Heiko W.Rupp
Date: Tue, 30 Jul 1996 00:00
17 lines
1294 bytes
In <4tf2t1$fqq@wsrcc.com>, Wolfgang Rupprecht wrote:
:|1) requires real IP connectivity to read articles

Needs the possibility to do international IP. For not IP connected sites 
you need a site that pulls _all_ articles groups to be able to spool them
for uucp, which means millions of worldwide IP connects per day ...

Other disadvantage: Site of poster must be online 24h a day, which is not
affordable in some regions of this world.

-- 
Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661524
Carla? -- Wer kann dazu schon nein sagen? - Sag JAAAA!


Re: how to speed up innd
#9778
Author: Stephen R. van den Berg
Date: Tue, 30 Jul 1996 00:00
15 lines
1242 bytes
In article <4t1rih$ki$3@snert.pilhuhn.de>, Heiko W.Rupp <hwr@pilhuhn.de> wrote:
>In <slrn4v5cfe.1ne.coneill@premier1.premier.net>, Clayton O'Neill wrote:
>:|My understanding is that fastfs just turns on async meta-data updates. 
>:|ext2fs does async meta-data updates by default.  

It did, I think that in Linux v1.2.x and newer, the metadata updates
are mostly synced again (every 5 seconds or so).
--
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

Real programmers don't produce results, they return exit codes.

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