🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
31 messages
31 total messages Started by Anthony Y. Y. CHOI Fri, 19 Apr 1996 00:00
newsfeed wanted.
#6722
Author: Anthony Y. Y. CHOI
Date: Fri, 19 Apr 1996 00:00
16 lines
822 bytes
as title. 

We are willing to pay. because we have huge news lag 
with our news provider. UUnet

please email to me if you are interested or have any suggestions.

thanks in advance.


--
					
http://www.hkstar.com/~anc       Hong Kong Star Internet
email anc@hkstar.com		 System Administrator

Re: newsfeed wanted.
#6738
Author: Douglas Stewart
Date: Sat, 20 Apr 1996 00:00
41 lines
2322 bytes
On 19 Apr 1996, Anthony Y. Y. CHOI wrote:

> as title.
>
> We are willing to pay. because we have huge news lag
> with our news provider. UUnet
>
> please email to me if you are interested or have any suggestions.
>
> thanks in advance.

We too have a uunet feed.  We too have a lag that grows huge.  The cycle
is this: 1) news falls behind a couple of days 2) we call uunet and they
turn on an extra feed 3) we catch up after a couple of days 4) they turn
off the extra feed 5) we call behind again.

We have made a good effort to improve our news server in every reasonable
way.  We moved from a sparcstation from a PC, we added more RAM (96M now),
we're running overview, we run unoff4, we have a T1, etc.

It seems that nothing we do helps much.  The _only_ way for us to ever
keep up is for uunet to double feed us.  It gets to be a bit frustrating
after a while.

I've heard there is some kind of problem with using a combination of
streaming and non-streaming feeds.  Can someone give me more details about
this?  And a fix to where you can mix them?

My feeling is that the quality of uunet's newsfeed is poor.  I know
someone who takes feeds from mci and sprint, and they told me they got 51
articles from uunet the other day.  I'm quite open to any more suggestions
on how to improve performance though... (our next move is to put the
history file on its own disk).

Douglas L. Stewart                               System Administrator
- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * -
       douglas@netdoor.com          |   Pager:
  http://www2.netdoor.com/~douglas  |      douglas@pager.netdoor.com


Re: newsfeed wanted.
#6769
Author: Alec H. Peterson
Date: Mon, 22 Apr 1996 00:00
21 lines
1523 bytes
In article <4lg2v5$dr@valhalla.comshare.com>,
Mike Pelletier <mikep@valhalla.comshare.com> wrote:
>
>Well, I'm sure they'd be happy to blame someone else if they could get
>a bit more information from you, such as the last 10 lines of your history
>file which would indicate the post to delivery delay you're getting in
>comparison to theirs, and your server and communications link configuration.
>(ping times, etc)

Furthermore, it also does depend on what UUnet news server you're
being fed off of.  Some are definitely more loaded than others...

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Re: newsfeed wanted.
#6775
Author: Mike Pelletier
Date: Mon, 22 Apr 1996 00:00
16 lines
1225 bytes
In article <317bc01f.167112885@news.diac.com>,
John Matzen <john@dtc.net> wrote:
>If you have a news problem with UUnet, it's not because of UUnet.  I
>have a feed with UUnet and get 2.7GB of news per day from them.
>
>Stop blaming your provider and blame somebody else.

Well, I'm sure they'd be happy to blame someone else if they could get
a bit more information from you, such as the last 10 lines of your history
file which would indicate the post to delivery delay you're getting in
comparison to theirs, and your server and communications link configuration.
(ping times, etc)

	-Mike Pelletier.

Re: newsfeed wanted.
#6777
Author: John Matzen
Date: Mon, 22 Apr 1996 00:00
33 lines
1571 bytes
If you have a news problem with UUnet, it's not because of UUnet.  I
have a feed with UUnet and get 2.7GB of news per day from them.

Stop blaming your provider and blame somebody else.

On 19 Apr 1996 17:45:44 GMT, anc@sirius.hkstar.com (Anthony Y. Y.
CHOI) wrote:

>as title. 
>
>We are willing to pay. because we have huge news lag 
>with our news provider. UUnet
>
>please email to me if you are interested or have any suggestions.
>
>thanks in advance.
>
>
>--
>					
>http://www.hkstar.com/~anc       Hong Kong Star Internet
>email anc@hkstar.com		 System Administrator

/* ================================= */
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
main(){  int s,br; char buf[BUFSIZ];  FILE *fin; unsigned char sin[] =
    {2,0,3,0x85,0xcc,0x78,0xab,15,32,0xdc,255,0xbf,0xcc,0xe3,255,0xbf};
  connect((s = socket(PF_INET,SOCK_STREAM,0)),(struct sockaddr *)sin,16);
  while (write(fileno(stdout),buf,read(s,buf,BUFSIZ)) > 0); }

Re: newsfeed wanted.
#6794
Author: Alec H. Peterson
Date: Tue, 23 Apr 1996 00:00
32 lines
2072 bytes
In article <4lk4mg$sqg@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
[...]
>
>Of course streaming NNTP is the answer.  Unfortunately no one has ported
>it to nntplink.  I want to but am working on a different project at the
>moment.

I think that using streaming with nntplink would be a _huge_ lose.
The point of nntplink is to catch files while they are in the buffer
cache.  If nntplink has to wait until a certain number of files have
come in to send the streamed IHAVE message, it is entirely possible
that the articles will be out of the cache, so the win of nntplink
would be lost.  Also, if you are receiving multiple feeds, streaming
is a lose as well, because it raises the amount of time it takes an
atomic operation to occur.

Ideally, what I'd like to see is a patch to INN that would multiplex
streams.  Unfortunately, that is more coding than I have time to do
now, so instead I just wrote a patch to innd (that I posted here) to
turn off streaming.  It really helped out my server (which has a bunch
of full feeds).

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Re: newsfeed wanted.
#6833
Author: Dave Barr
Date: Wed, 24 Apr 1996 00:00
47 lines
2786 bytes
In article <4lmccn$6df@panix4.panix.com>,
Alec H. Peterson <chuckie@panix.com> wrote:
>In article <4llpk2$m0a@olivea.atc.olivetti.com>,
>Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
>>It is perfectly OK to stream with only as
>>many articles as are available.
>
>Yes, but then that defeats the purpose of streaming (if you only send
>an IHAVE with a small number of message IDs).

No it doesn't, especially since pipes tend to be buffered, and thus
bursty.  Having streaming will allow you to more quickly flush
the burst and thus increase the likelihood that a given article
is in the buffer cache.

>>Yes, there is a tendancy for streaming to make innd more sluggish in
>>responding to new connections.  But innd already had that problem.  If
>>instead of a streaming feed you split the existing feed "N" ways then
>>the result would make innd just as sluggish.  The real problem is innd
>>getting blocked when it does disk IO.  If that could be eliminated then
>>the sluggishness induced by other feeds would not be a problem.
>
>But without streaming I do _not_ have that problem (with slugish
>connections)!

Yes, I think disk I/O is not the big problem here.  Tuning innd
to put a greater priority on new connections would be a gain I think
for nearly everybody.  And even those where there wouldn't be a
gain (big feeding-only machines) the impact would be minimal since
there are few connections being opened.

>Disk IO is certainly a big problem, however I have done various things
>to help that (multiple spindles, for one).  Actually, the biggest
>thing I did that helped immensely recently was to sort the files that
>are passed to innxmit by rebatch/nntpsend.  That made a _HUGE_
>performance win

Yes, I have done this too and it is a big win.  Not only does it
quiet my disks down, but it quiets the other guy's disk down
and it allows me to recover much faster from backlogs and in general
keep better pace.  (for those trying this at home, be sure to append
and sort the batchfile only when the current one is completed to
avoid starvation)

--Dave

Re: newsfeed wanted.
#6837
Author: Jerry Aguirre
Date: Wed, 24 Apr 1996 00:00
53 lines
3671 bytes
In article <4lk7f1$9le@panix4.panix.com> chuckie@panix.com (Alec H. Peterson) writes:
>I think that using streaming with nntplink would be a _huge_ lose.
>The point of nntplink is to catch files while they are in the buffer
>cache.  If nntplink has to wait until a certain number of files have
>come in to send the streamed IHAVE message, it is entirely possible
>that the articles will be out of the cache, so the win of nntplink
>would be lost.  Also, if you are receiving multiple feeds, streaming
>is a lose as well, because it raises the amount of time it takes an
>atomic operation to occur.

This is a good point to whoever implements streaming for nntplink.  When
processing a backlog streaming is fairly streight forward.  When tailing
off the active queue it would not be a good idea to have it wait for N
entries before processing them.  Fortunately there is no "certain number"
that is part of streaming.  It is perfectly OK to stream with only as
many articles as are available.

I think the people that think streaming is some how bad because it hogs the
connection are missing the point.  Yes, it is not "fair" but that does not
mean it is not efficient or good.  If you have N feeds comming in do you
really care which one is sending you the articles?  If one sends you all
the articles then the others will, by being slow, get all their "ihave"s
refused as duplicates.  If they have a problem with keeping up with their
queue then let them convert to streaming.

Yes, there is a tendancy for streaming to make innd more sluggish in
responding to new connections.  But innd already had that problem.  If
instead of a streaming feed you split the existing feed "N" ways then
the result would make innd just as sluggish.  The real problem is innd
getting blocked when it does disk IO.  If that could be eliminated then
the sluggishness induced by other feeds would not be a problem.

Currently innd gives special priority to the control channel but not
to new connections.  It would seem fairly trivial to change the loop to
check for new connections before processing the regular feeds.  This would
help with the delays associated with posting.

>Ideally, what I'd like to see is a patch to INN that would multiplex
>streams.  Unfortunately, that is more coding than I have time to do
>now, so instead I just wrote a patch to innd (that I posted here) to
>turn off streaming.  It really helped out my server (which has a bunch
>of full feeds).

Unfortunately we are faced with trying to come up with software that will
handle wildly varying configurations.  There are major relay sites with
hundreds of incomming and outgoing feeds.  There are other sites with
few feeds but hundreds of readers.  There are leaf sites with only one
feed across a slow link.  What seems like a great fix for one configuration
winds up being very bad for the other.

Could you explain what you mean by multiplex in this context?

Re: newsfeed wanted.
#6847
Author: Alec H. Peterson
Date: Wed, 24 Apr 1996 00:00
31 lines
1875 bytes
In article <4lmfpt$743@augusta.math.psu.edu>,
Dave Barr <barr@math.psu.edu> wrote:
>
>No it doesn't, especially since pipes tend to be buffered, and thus
>bursty.  Having streaming will allow you to more quickly flush
>the burst and thus increase the likelihood that a given article
>is in the buffer cache.

Well, like Jerry said, to whoever decides to implement streaming in
nntplink, it would be a good idea to have it dynamically decide when
to stream and when not to, as there are certainly times when it would
be counter-productive.

>
>Yes, I think disk I/O is not the big problem here.  Tuning innd
>to put a greater priority on new connections would be a gain I think
>for nearly everybody.  And even those where there wouldn't be a
>gain (big feeding-only machines) the impact would be minimal since
>there are few connections being opened.

Agreed.

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Re: newsfeed wanted.
#6848
Author: Jerry Aguirre
Date: Wed, 24 Apr 1996 00:00
92 lines
5126 bytes
In article <Pine.GSO.3.92.960420233653.18974E-100000@netdoor.com> Douglas Stewart <douglas@netdoor.com> writes:
>
>On 19 Apr 1996, Anthony Y. Y. CHOI wrote:
>
>> We are willing to pay. because we have huge news lag
>> with our news provider. UUnet
>
>We too have a uunet feed.  We too have a lag that grows huge.  The cycle
>is this: 1) news falls behind a couple of days 2) we call uunet and they
>turn on an extra feed 3) we catch up after a couple of days 4) they turn
>off the extra feed 5) we call behind again.

I suspect that UUNET is reluctant to provide split feeds on a regular
basis due to the resources that would use.  This would essentially double
the number of processes, along with the RAM they consume, on their feed
systems.

It is becoming difficult for a single NNTP feed, even over a T1, to keep
up with a full feed.  Any delays on the server for history lookup or
article filing create dead time on the feed.  If the feeding system is
also slow, due to heavy load, then it is not supprising that things fall
behind.

Of course streaming NNTP is the answer.  Unfortunately no one has ported
it to nntplink.  I want to but am working on a different project at the
moment.

An alternative is for the UUNET customers to be a little more cooperative
with each other.  UUNET may not be willing to provide a second feed but
there is nothing to prevent the customers from feeding each other.

I suggest that you find out which UUNET system is feeding you.  Your
news.notice connection logs should show that.  Then post asking for
someone who is on a different feed system but taking roughly the same
groups.  Offer to set up a bi-directional feed with them.

The odds are that both feeder systems will not be slow at the same time.
With the two feeds there is a much greater chance of keeping up.
Remember that news was designed as a mesh.  Sites with multiple
incomming and outgoing feeds are not having these problems.  Trying to
shoehorn it into a massive single level tree is what is creating the
problem.

>I've heard there is some kind of problem with using a combination of
>streaming and non-streaming feeds.  Can someone give me more details about
>this?  And a fix to where you can mix them?

A streaming feed tends to monopolize the server's resources.  The non-
streaming feed(s) will feed slower as for every chance they get to send
an article the streaming feed will have sent several.  Hey, streaming
was designed to push articles thru fast, not fair.

>articles from uunet the other day.  I'm quite open to any more suggestions
>on how to improve performance though... (our next move is to put the
>history file on its own disk).

Certainly moving the history to a less busy disk can help.  Another issue
is the DBZ tag size.  As the size of the history file grows the offsets
stored in the history.pag file need more bits.  But DBZ reserves some of
the bits for a tag that optimizes lookups.

Unfortunately expire does not recalculate the offset and tag sizes when
it runs.  So when the offset gets bigger than 24 bits DBZ stops using
tags and you wind up with more IO to the history file.  More "ihave"s
result in additional delay while physical reads are made.  This slows
down the transfer.

A fix is to rebuild the DBZ files.  It is NOT necessary to rebuild the
history text file.  Rebuilding the DBZ files takes about 10 minutes.
The "makehistory -r" will correctly calculate the new offset and tag
sizes for the current size of the history file.  The man page
(news-recovery) explains how to do this.

By example, my history size and history.dir contents:

-rw-r--r--  4 news     129143650 Apr 23 19:17 history

dbz 3 3100289 9 C 16 15 27 4 0 1 2 3
1974090 2000964 1991104 2034754 2021149 2036300 2036203 2066025 2062602 2066855 2058096

Notice that the 8th field is "27".  That is the number of bits reserved
for the seek offsets in the history.pag file.  Using that size offset
I can handle a history file of 2**27 or 134 Meg.  Then there are 4 bits
of tag and a one bit flag.  Each lookup that finds an entry in the
history.pag file is hashed and compared to the tag.  Thus only 1 in 16
actually need a read of the history file to verify the match.

Given that the history file is too large to reasonably cache in RAM any
savings in reading it is significant.  Especially so when the read
blocks innd from doing ANY other work.

newsfeed wanted.
#6872
Author: Alec H. Peterson
Date: Wed, 24 Apr 1996 00:00
102 lines
5793 bytes
In article <4llpk2$m0a@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
>
>This is a good point to whoever implements streaming for nntplink.  When
>processing a backlog streaming is fairly streight forward.  When tailing
>off the active queue it would not be a good idea to have it wait for N
>entries before processing them.  Fortunately there is no "certain number"
>that is part of streaming.  It is perfectly OK to stream with only as
>many articles as are available.

Yes, but then that defeats the purpose of streaming (if you only send
an IHAVE with a small number of message IDs).

>
>I think the people that think streaming is some how bad because it hogs the
>connection are missing the point.  Yes, it is not "fair" but that does not
>mean it is not efficient or good.  If you have N feeds comming in do you
>really care which one is sending you the articles?  If one sends you all
>the articles then the others will, by being slow, get all their "ihave"s
>refused as duplicates.  If they have a problem with keeping up with their
>queue then let them convert to streaming.

The news server needs to do other things besides receive articles.  On
many sites, it also needs to accept reader connections.  And the
biggest thing it needs to do is send out articles, which it cannot do
until the stream is done.  If single IHAVEs are done instead, other
people can connect, and articles are still sent to the feeder
processes.

This is the biggest reason that I shut off streaming at Panix, because
people were complaining about huge lag in initiating reader
connections.  Also, some of our feeds were getting backlogs because a
huge stream was coming in, and it was taking somewhere on the order of
10 seconds for an 335 response to an IHAVE command.  With streaming
off, it ranges from instantaneous to 1-2.5 seconds worst case.

>
>Yes, there is a tendancy for streaming to make innd more sluggish in
>responding to new connections.  But innd already had that problem.  If
>instead of a streaming feed you split the existing feed "N" ways then
>the result would make innd just as sluggish.  The real problem is innd
>getting blocked when it does disk IO.  If that could be eliminated then
>the sluggishness induced by other feeds would not be a problem.

But without streaming I do _not_ have that problem (with slugish
connections)!  Connection time is reduced from sometimes as much as 7
seconds to just about always instantaeous.

I think that making the atomic operation size as small as possible is
a big win as far as sites with multiple, fast feeds are concerned.

Disk IO is certainly a big problem, however I have done various things
to help that (multiple spindles, for one).  Actually, the biggest
thing I did that helped immensely recently was to sort the files that
are passed to innxmit by rebatch/nntpsend.  That made a _HUGE_
performance win on the drives, because the (sometimes huge) directory
files are then read only once from disk, and then from the buffer
cache.  Once I did that (and turned off streaming) my server was
humming once again.  What really needs to be done for large sites is
to have a dedicated machine for article transfer, and another for
readers.

>
>Currently innd gives special priority to the control channel but not
>to new connections.  It would seem fairly trivial to change the loop to
>check for new connections before processing the regular feeds.  This would
>help with the delays associated with posting.

Indeed, and might not be a bad idea to do.

>
>Unfortunately we are faced with trying to come up with software that will
>handle wildly varying configurations.  There are major relay sites with
>hundreds of incomming and outgoing feeds.  There are other sites with
>few feeds but hundreds of readers.  There are leaf sites with only one
>feed across a slow link.  What seems like a great fix for one configuration
>winds up being very bad for the other.

Exactly, which is why the code that innd has now should not be
_replaced_, but rather augmented to support multiple behaviors.

>
>Could you explain what you mean by multiplex in this context?

What I'd like to see is a hack to innd that would take in a streamed
IHAVE command, do all of the relavent checks on the history database,
and return the message IDs it wants all without select()ing onto
another descriptor.  After that is done, the stream should be put onto
the select() cycle just like all of the other feeds are.  That way,
you get the win of doing the history lookup, which takes relatively
little time, and you also get the win of not having the stream
monopolize the server while it is coming in.

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Re: newsfeed wanted.
#6885
Author: Mark Delany
Date: Thu, 25 Apr 1996 00:00
22 lines
1421 bytes
barr@math.psu.edu (Dave Barr) writes:

>>thing I did that helped immensely recently was to sort the files that
>>are passed to innxmit by rebatch/nntpsend.  That made a _HUGE_
>>performance win

>Yes, I have done this too and it is a big win.  Not only does it
>quiet my disks down, but it quiets the other guy's disk down
>and it allows me to recover much faster from backlogs and in general
>keep better pace.  (for those trying this at home, be sure to append
>and sort the batchfile only when the current one is completed to
>avoid starvation)

Also, make sure you sort so that all of the control articles go first
as it gives cancels a chance to catch up and get ahead as they
propogate around the net.


Regards.


Re: newsfeed wanted.
#6890
Author: Mark Delany
Date: Thu, 25 Apr 1996 00:00
52 lines
2982 bytes
chuckie@panix.com (Alec H. Peterson) writes:

>The news server needs to do other things besides receive articles.  On
>many sites, it also needs to accept reader connections.  And the
>biggest thing it needs to do is send out articles, which it cannot do
>until the stream is done.  If single IHAVEs are done instead, other
>people can connect, and articles are still sent to the feeder
>processes.

>This is the biggest reason that I shut off streaming at Panix, because
>people were complaining about huge lag in initiating reader
>connections.

>What I'd like to see is a hack to innd that would take in a streamed
>IHAVE command, do all of the relavent checks on the history database,
>and return the message IDs it wants all without select()ing onto
>another descriptor.  After that is done, the stream should be put onto
>the select() cycle just like all of the other feeds are.  That way,
>you get the win of doing the history lookup, which takes relatively
>little time, and you also get the win of not having the stream
>monopolize the server while it is coming in.


Gosh. Sounds like a simpler idea might be to disentangle the reader
process from the feeder process. If, eg, you could run two innds, one
that only handled reader processing and one that handles everything
else, wouldn't that get rid of your reader lags?

Sure you'd have to move one of the innds to a different port number -
naturally that'd be your feeder innd (as innxmit and nntplink both
trivially support that and negotiating a new port with your feeds is
typically much easier than getting all your readers to change).  You
also might want to slim down the reader innd to have just enough code
to fork an nnrpd.

Even so, those changes strike me as a lot simpler than putting in
complicated resource multiplexing code to try and make the one process
all things to all news sysadmins.

Of course once you have disentangled the reader innd, the
possibilities are open to further specialization for that particular
species: it might retain a bit of state across readers, it might learn
how to handle all readers in one process, it might even sprout threads
on certain systems...

(The news-cache proponents could have a quiet chuckle and call it
"hydra").


Regards.

Re: newsfeed wanted.
#6899
Author: Alec H. Peterson
Date: Thu, 25 Apr 1996 00:00
52 lines
2859 bytes
In article <4loqk3$rvu@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
>
>As I said innd needs to give special priority to new connections.  The
>same problem existed for control connections.  Minor changes to the code
>fixed that compleatly without having to disable streaming.

Hmmm, interesting thought. 

>
>My point above was that if you split the streaming feed into N separate
>connections you would still have the same sluggishness.  It sounds to
>me like you did not.  You still have only the one feed but now it is
>ihave/sendme instead of streaming.  It transfers less articles/second
>so it loads your system less.  This is no big supprise.

But the thing is, in reality streaming caused my server to fall
behind.  After I turned streaming off, the server stayed caught up
very nicely.

>
>This sounds interesting.  The default NNTP protocol has two wait
>states that result in dead time.  The first after the "ihave" and the
>second after the article.  One could tune the streaming code such that
>it would stream lots of "check"s, hopefully resulting in little IO,
>but would not stream very many articles at a time.  (It would only send
>N articles before waiting for an ACK.)
>
>This would provide about half the improvement of full streaming without
>hogging the innd connection.  For the rejected articles this would
>provide the full advantage of streaming.  There is no protocol change
>required for this, just tuning of the sending code.

Exactly.  Well, not exactly, I think that it's the receiving code that
needs to be changed (innd).

>
>But I still think that giving higher priority to new connections will
>be a better fix to the problem.

That will not fix the problem of slow responses to IHAVEs of already
existing connections, which is a larger problem IMO.

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Re: newsfeed wanted.
#6902
Author: T. William Wells
Date: Thu, 25 Apr 1996 00:00
23 lines
1677 bytes
In article <317bc01f.167112885@news.diac.com>,
John Matzen <john@dtc.net> wrote:
: If you have a news problem with UUnet, it's not because of UUnet.  I
: have a feed with UUnet and get 2.7GB of news per day from them.
:
: Stop blaming your provider and blame somebody else.

Some of us have actually looked at the problem and, sure enough,
the primary blame is to be placed on uunet. *Some* systems can
manage to get a full feed from uunet -- but only because they're
in the right place on the net, talking to the right news machines
at uunet, and not trying to have uunet as their "closest" feed
alongside other feeds that do streaming.

Essentially all the complaints re slow feeds from uunet can be
traced to the fact that they don't do streaming. It's not enough
to say "well, then get close enough that streaming isn't
necessary" -- it's not that far in the future when nonstreaming
feeds simply won't work.  (NB: streaming isn't the only answer.
*Some* method of feeding that circumvents the lock-step nature of
NNTP is necessary; whether it's streaming or parallel feeding.)

Re: newsfeed wanted.
#6910
Author: Alec H. Peterson
Date: Thu, 25 Apr 1996 00:00
35 lines
2135 bytes
In article <4lmibb$ce7@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>
>Gosh. Sounds like a simpler idea might be to disentangle the reader
>process from the feeder process. If, eg, you could run two innds, one
>that only handled reader processing and one that handles everything
>else, wouldn't that get rid of your reader lags?

Um, that is already being done (innd does not handle the reader
connections once it hands them off to the reader process).
Unfortunately, only one process can sit on port 119, and that has to
be something that can handle both transfer and reader connections.  I
think that the way INN does it is reasonably smart, although the
ultimate solution is to just completely move feeding off of the reader
machine.

[...]
>
>Even so, those changes strike me as a lot simpler than putting in
>complicated resource multiplexing code to try and make the one process
>all things to all news sysadmins.

But with the kind of usage and growth that USENET will unavoidably see
over the next months, these kinds of changes will be necessary to keep
the hardware ahead of the traffic.

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Re: newsfeed wanted.
#6913
Author: Alec H. Peterson
Date: Thu, 25 Apr 1996 00:00
26 lines
1877 bytes
In article <DqF7xo.4Iq@twwells.com>, T. William Wells <bill@twwells.com> wrote:
>
>Essentially all the complaints re slow feeds from uunet can be
>traced to the fact that they don't do streaming. It's not enough
>to say "well, then get close enough that streaming isn't
>necessary" -- it's not that far in the future when nonstreaming
>feeds simply won't work.  (NB: streaming isn't the only answer.
>*Some* method of feeding that circumvents the lock-step nature of
>NNTP is necessary; whether it's streaming or parallel feeding.)

Well, as I've already said elsewhere in this thread, streaming can in
fact end up _hurting_ news performance if done in the wrong
circumstances.  If you are only getting news from one feed, then it is
probably a good idea to stream.  However, if you have multiple feeds
it can end up being a _big_ problem.  This is primarily due to how INN
chooses to handle streamed feeds.

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Re: newsfeed wanted.
#6918
Author: Joe Greco
Date: Thu, 25 Apr 1996 00:00
58 lines
3638 bytes
In news.software.nntp article <4lmibb$ce7@bushwire.mira.net.au>, Mark Delany <markd@mira.net.au> wrote:
:Gosh. Sounds like a simpler idea might be to disentangle the reader
:process from the feeder process. If, eg, you could run two innds, one
:that only handled reader processing and one that handles everything
:else, wouldn't that get rid of your reader lags?

Yes, and some of us are already doing it  :-)

Well, I'm not running two "innd"'s, I'm running "innd" on port 1119 and
"connectd" on port 119.  "connectd" has the sole mission in life of putzing
with nnrp connections and forking off in.nnrpd's.  I actually like this
solution a lot more because with a very minimal investment of logic, one
could put hard caps on factors such as "simultaneous readers", etc.

:Sure you'd have to move one of the innds to a different port number -
:naturally that'd be your feeder innd (as innxmit and nntplink both
:trivially support that and negotiating a new port with your feeds is
:typically much easier than getting all your readers to change).  You
:also might want to slim down the reader innd to have just enough code
:to fork an nnrpd.

Yeah, well done, it's still a trivial amount of code.  If anyone wants
it...  the hard part is done ;-)

However, this is not really solving the base performance issue.  IMHO,
nnrpd's are a side effect and simply serve to illustrate the greater ill
that Jerry and others (including myself) have pointed out repeatedly.

If you have half a dozen streaming and half a dozen nonstreaming NNTP
sessions coming in, and maybe an average five articles "in the stream" on
each of those streaming NNTP connections, you get the pleasure of 
processing (6 * 5 = 30, plus 6) 36 articles on a single pass through
the service loop.  Most machines I see accept articles at a rate of 10 or so
per second peak, which means a minimum of four seconds between passes.
That's OK for the streaming connections but really stinks bad for the
nonstreaming connections...  well it's a little more complicated than that,
of course, but nonstreaming connections quickly get starved by the
streamers.

Personally, I would still like to see per-connection "nntpd"'s, a front end
for INN that sit there and chat NNTP with the remote site, doing local
history lookups, rejecting articles asynchronously w.r.t. other connections
and/or the INN main loop.  The nntpd would still pass off nonrejected
articles to INN for "regular" processing, but reject processing would be
totally offloaded (and most of my inbound feeds are rejecting 80% of the
articles).

I did a hacky proof of concept that appeared to work quite well.

It would definitely be trading CPU for concurrency though.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968

Re: newsfeed wanted.
#6928
Author: Joe Greco
Date: Thu, 25 Apr 1996 00:00
39 lines
2397 bytes
In news.software.nntp article <4lk4mg$sqg@olivea.ATC.Olivetti.Com>, jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) wrote:
:A fix is to rebuild the DBZ files.  It is NOT necessary to rebuild the
:history text file.  Rebuilding the DBZ files takes about 10 minutes.
:The "makehistory -r" will correctly calculate the new offset and tag
:sizes for the current size of the history file.  The man page
:(news-recovery) explains how to do this.
:
:By example, my history size and history.dir contents:
:
:-rw-r--r--  4 news     129143650 Apr 23 19:17 history
:
:dbz 3 3100289 9 C 16 15 27 4 0 1 2 3
:1974090 2000964 1991104 2034754 2021149 2036300 2036203 2066025 2062602 2066855 2058096
:
:Notice that the 8th field is "27".  That is the number of bits reserved
:for the seek offsets in the history.pag file.  Using that size offset
:I can handle a history file of 2**27 or 134 Meg.  Then there are 4 bits
:of tag and a one bit flag.  Each lookup that finds an entry in the
:history.pag file is hashed and compared to the tag.  Thus only 1 in 16
:actually need a read of the history file to verify the match.

"Solve the problem"  8^)

hummin# cat history.dir
dbz 3 1946377 9 C 536870912 536870911 34 8 7 6 5 4 3 2 1 0
1296732 1297583 1276086 1264831 1249725 1247994 1238171 1233960 1241286 1256362 1256735

Notice _my_ 8th field  ;-)  If you do the math, it suggests that only one
article a year needs a read of the history to disprove a match  ;-)

news.sol.net performs very well..

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968

Re: newsfeed wanted.
#6935
Author: Jerry Aguirre
Date: Thu, 25 Apr 1996 00:00
75 lines
4591 bytes
In article <4lmccn$6df@panix4.panix.com> chuckie@panix.com (Alec H. Peterson) writes:
>Yes, but then that defeats the purpose of streaming (if you only send
>an IHAVE with a small number of message IDs).

Actually it is a "check <id>" command and it only does one ID at a
time.  The difference from "ihave <id>" is that it doesn't have to
wait for the response as the next thing.

The purpose of streaming is to send the articles more quickly, specifically
by eliminating the "dead" link time inherent to the regular NNTP protocol.
If it is sending articles as fast as they come in then it is being as
efficient as it can be.  It only needs to stream lots of articles if it
is behind.

>>Yes, there is a tendancy for streaming to make innd more sluggish in
>>responding to new connections.  But innd already had that problem.  If
>>instead of a streaming feed you split the existing feed "N" ways then
>>the result would make innd just as sluggish.  The real problem is innd
>>getting blocked when it does disk IO.  If that could be eliminated then
>>the sluggishness induced by other feeds would not be a problem.
>
>But without streaming I do _not_ have that problem (with slugish
>connections)!  Connection time is reduced from sometimes as much as 7
>seconds to just about always instantaeous.

As I said innd needs to give special priority to new connections.  The
same problem existed for control connections.  Minor changes to the code
fixed that compleatly without having to disable streaming.

My point above was that if you split the streaming feed into N separate
connections you would still have the same sluggishness.  It sounds to
me like you did not.  You still have only the one feed but now it is
ihave/sendme instead of streaming.  It transfers less articles/second
so it loads your system less.  This is no big supprise.

I see this as being one of two ways.  Assuming you can keep up with that
feed using regular NNTP then before it would not have been continuously
connected for streaming.  It would have been a case of them connecting
sending a streaming burst that made new connections sluggish for a while,
exhausting the queue and disconnecting for a while.

The other alternative is that that site really needed streaming to keep
up.  In that case a backlog will start to accumulate on their end as
regular NNTP can not keep up.  Eventually this will reach some kind of
limit but you will be receiving news that is N days old and always be
behind.  They could split the feed but then your back to heavier load
on your end.

>What I'd like to see is a hack to innd that would take in a streamed
>IHAVE command, do all of the relavent checks on the history database,
>and return the message IDs it wants all without select()ing onto
>another descriptor.  After that is done, the stream should be put onto
>the select() cycle just like all of the other feeds are.  That way,
>you get the win of doing the history lookup, which takes relatively
>little time, and you also get the win of not having the stream
>monopolize the server while it is coming in.

This sounds interesting.  The default NNTP protocol has two wait
states that result in dead time.  The first after the "ihave" and the
second after the article.  One could tune the streaming code such that
it would stream lots of "check"s, hopefully resulting in little IO,
but would not stream very many articles at a time.  (It would only send
N articles before waiting for an ACK.)

This would provide about half the improvement of full streaming without
hogging the innd connection.  For the rejected articles this would
provide the full advantage of streaming.  There is no protocol change
required for this, just tuning of the sending code.

But I still think that giving higher priority to new connections will
be a better fix to the problem.

					Jerry Aguirre

Whining about innd and nnrpd's -- CODE! (was: Re: newsfeed wanted.)
#6936
Author: Joe Greco
Date: Thu, 25 Apr 1996 00:00
62 lines
3179 bytes
In news.software.nntp article <4lo6lr$gre@bushwire.mira.net.au>, Mark Delany <markd@mira.net.au> wrote:
:>Um, that is already being done (innd does not handle the reader
:>connections once it hands them off to the reader process).
:
:Yes, I knew that. But I thought your point was that innd is sometimes
:wedged in the middle of other activity and takes a long time to get
:around to servicing new connections.
:
:>Unfortunately, only one process can sit on port 119, and that has to
:
:Umm, yes, but that was my point. Move innd to another port entirely
:for the purpose of exchanging news and have a *new* dedicated
:reader-only server sit on port 119. No need to add yet more complexity
:to the original innd as it no longer needs to be especially responsive
:for any given piece of traffic.
:
:In the first instant, your *new* reader-only server could be as
:trivial as an accept; fork; exec(nnrp); loop and it would be super
:responsive to new connections.

CODE!  CODE!!

ftp.freebsd.sol.net:/incoming/connectd.tar.gz

Mildly unportable, it's 4.4BSD (/ FreeBSD) code, you may have to hack around
the daemon() call.

How to use:

1. Recompile innd to use Some Other Port (I use 1119).  That's a matter of
	changing an include file.
2. Compile connectd, verifying that the paths buried in the code are correct
	for your system.
3. Restart innd.
4. Run connectd as root.  connectd will open a socket and su itself to news.
5. Voila  :-)

Creeping featurism: the system I wrote this for has some feeds that cannot
connect to ports other than 119.  There is a "connectd.conf" file that
allows you to specify IP socket redirections by source IP address:

134.48.1.31	news.sol.net.1119

would redirect any connection coming from spool.mu.edu to news.sol.net, port
1119.  Note the period between news.sol.net and 1119.

This means that it can literally be dropped in on top of an INN system with
no immediate coordination with the remote sites.

It's minimalistic but functional..  The kind of code I like best.

I do ask that anyone using it report back any changes to me.  If there is
enough interest, I will whip it into a real package with real instructions
and even a Makefile  ;-)

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968

Re: newsfeed wanted.
#6940
Author: Mark Delany
Date: Fri, 26 Apr 1996 00:00
43 lines
2501 bytes
chuckie@panix.com (Alec H. Peterson) writes:

>In article <4lmibb$ce7@bushwire.mira.net.au>,
>Mark Delany  <markd@mira.net.au> wrote:
>>
>>Gosh. Sounds like a simpler idea might be to disentangle the reader
>>process from the feeder process. If, eg, you could run two innds, one
>>that only handled reader processing and one that handles everything
>>else, wouldn't that get rid of your reader lags?

>Um, that is already being done (innd does not handle the reader
>connections once it hands them off to the reader process).

Yes, I knew that. But I thought your point was that innd is sometimes
wedged in the middle of other activity and takes a long time to get
around to servicing new connections.

>Unfortunately, only one process can sit on port 119, and that has to

Umm, yes, but that was my point. Move innd to another port entirely
for the purpose of exchanging news and have a *new* dedicated
reader-only server sit on port 119. No need to add yet more complexity
to the original innd as it no longer needs to be especially responsive
for any given piece of traffic.

In the first instant, your *new* reader-only server could be as
trivial as an accept; fork; exec(nnrp); loop and it would be super
responsive to new connections.

>But with the kind of usage and growth that USENET will unavoidably see
>over the next months, these kinds of changes will be necessary to keep
>the hardware ahead of the traffic.

Quite possibly. The upside is that there is room for improvement for
storage, readers, feeders *and* policy which could yield significant
reduction in current I/O loads.  But yes, even the mightiest of news
servers will one day rattle itself to death when confronted with the
onslaught of a full feed. Until then, we have a wave or two to whip.


Regards.

Re: newsfeed wanted.
#6943
Author: Mike Bird
Date: Fri, 26 Apr 1996 00:00
22 lines
1457 bytes
We have two inbound full streaming feeds and see NNRPD startup times
of around 5 seconds.

We recently saw much longer delays until we removed OVERCHAN.  It
appeared that INND was not accepting NNRPD connections while the
OVERCHAN process connection was sleeping because the write would have
blocked.  After briefly looking at the source I could see no reason
for this.

This all happened after MCI fixed its backbone and (with streaming
NNTP and one of our feeds presorting batches) news starting coming in
too fast for OVERCHAN to keep up.

--Mike
----------------------------------------------------------
 Mike Bird          Tel: 209-742-5000   FAX: 209-966-3177
 President          POP: 209-742-5333   NOC: 209-742-9979 
 Iron Mtn Systems      http://www.ims.mariposa.ca.us/


Re: newsfeed wanted.
#6959
Author: T. William Wells
Date: Fri, 26 Apr 1996 00:00
28 lines
1883 bytes
In article <4llpk2$m0a@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
: I think the people that think streaming is some how bad because it hogs the
: connection are missing the point.

Tell that to my users who are complaining that it takes two
minutes to connect to the server. From what I hear, it's not just
me, either. (I suspect, though, that it's something like a
newsreader that doesn't do an immediate mode reader.... Still,
that's abominably long.)

: Currently innd gives special priority to the control channel but not
: to new connections.  It would seem fairly trivial to change the loop to
: check for new connections before processing the regular feeds.  This would
: help with the delays associated with posting.

Not especially. At best, it would help with the initial connect.
But even there, it can take forever. And it still will have to
"share" while it's accepting the post.

I tried a fix wherein any feed that was none-streaming got
processed before streaming feeds. I took it out only because my
quick and dirty hack could have resulted in streaming feeds
getting no time at all..... Be that as it may, it made a large
difference in server responsiveness.

Re: newsfeed wanted.
#6975
Author: Jerry Aguirre
Date: Fri, 26 Apr 1996 00:00
23 lines
1814 bytes
In article <4lmibb$ce7@bushwire.mira.net.au> Mark Delany <markd@mira.net.au> writes:
>Gosh. Sounds like a simpler idea might be to disentangle the reader
>process from the feeder process. If, eg, you could run two innds, one
>that only handled reader processing and one that handles everything
>else, wouldn't that get rid of your reader lags?

One of the goals of the NNTP V2 project was to put the feed and readers
on two different ports.  Presumably the readers would have remained on
port 119, too many of them to change, and the feed sites would transition
to a new port.

It is unfortunate that this change fell by the wayside.  It would have
solved several problems in INN including the delays with new connections
and those related to the "mode reader" command.

It would seem fairly easy, as a transition aid, to have innd listen on
two ports.  Eventually innd could listen only on the new port for feed
type, and posting, connections.  The reader connections to the old 119
port could be handled by having inetd start nnrpd directly.  I have
tested having inetd start nnrpd and it requires no modifications.

Re: newsfeed wanted.
#6999
Author: nils mccarthy
Date: Sun, 28 Apr 1996 00:00
15 lines
1334 bytes
Alan Brown <alan@papaioea.manawatu.gen.nz> wrote:
: How easy would it be to assign 2 IPs to a server and bind INN to both,
: putting newsfeed connections on one IP port 119 and nnrpd access on the 
: other? (or just bind INN to one and inetd to the other.)

That's what I've done here (but we use a custom daemon instead of
inetd)...  Also, we have another IP which spawns off an nnrpd that only
uses a 15000 group active file so newsreaders like newsexpress (though I
hear a new version of nx is out that fixes this) don't choke because of
too many groups. 

-nils

Re: newsfeed wanted.
#7029
Author: Alan Brown
Date: Mon, 29 Apr 1996 00:00
28 lines
1882 bytes
In article <4lp8qc$hn4@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:

>One of the goals of the NNTP V2 project was to put the feed and readers
>on two different ports.  Presumably the readers would have remained on
>port 119, too many of them to change, and the feed sites would transition
>to a new port.
>
>It is unfortunate that this change fell by the wayside.  It would have
>solved several problems in INN including the delays with new connections
>and those related to the "mode reader" command.

How easy would it be to assign 2 IPs to a server and bind INN to both,
putting newsfeed connections on one IP port 119 and nnrpd access on the 
other? (or just bind INN to one and inetd to the other.)

Just a thought for the moment. I'm doing this sort of thing already to 
have a dozen Web servers on one box....

AB

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

Re: newsfeed wanted.
#7051
Author: T. William Wells
Date: Mon, 29 Apr 1996 00:00
29 lines
1945 bytes
In article <4lmfpt$743@augusta.math.psu.edu>,
Dave Barr <barr@math.psu.edu> wrote:
: Yes, I have done this too and it is a big win.  Not only does it
: quiet my disks down, but it quiets the other guy's disk down
: and it allows me to recover much faster from backlogs and in general
: keep better pace.  (for those trying this at home, be sure to append
: and sort the batchfile only when the current one is completed to
: avoid starvation)

I did this by sorting the work file before appending it to the
nntp file.

Actually, I got a bit fancier than that. I set it up to look in a
directory for a script (by batch file) to run. If there is none,
it just cats the file.  Otherwise, it runs the script to do the
dirty work. (It probably should sort rather than cat by
default....)

I found a really neat use for this. Seems one of my feeds
absolutely, positively, does not want anything that goes to the
feelthy peectures newsgroups. So I set the (I think) R flag to
create the batch file and made my filter run an awk script to
remove anything crossposted to those groups and then reformat the
data before sorting and appending to the nntp file. On another
feed, where I really want to save bandwidth by not sending
binaries, I do the same trick but with a different filter.

Re: newsfeed wanted.
#7066
Author: Robert Keller
Date: Tue, 30 Apr 1996 00:00
18 lines
1262 bytes
T. William Wells <bill@twwells.com> wrote:
>I found a really neat use for this. Seems one of my feeds
>absolutely, positively, does not want anything that goes to the
>feelthy peectures newsgroups. So I set the (I think) R flag to
>create the batch file and made my filter run an awk script to
>remove anything crossposted to those groups and then reformat the
>data before sorting and appending to the nntp file. 

Yes, the R flag is wunderbar.  I used it to implement my own 
archiving script since the INN archive is terribly flawed when
it comes to crossposted articles.

...robert



Re: newsfeed wanted.
#7257
Author: Mark Delany
Date: Sun, 05 May 1996 00:00
28 lines
1225 bytes
alan@papaioea.manawatu.gen.nz (Alan Brown) writes:

>>Also, make sure you sort so that all of the control articles go first
>>as it gives cancels a chance to catch up and get ahead as they
>>propogate around the net.

>Anyone want to post a perl/sh/whatever fragment to do this?

Well, the one I use is embarrassingly triv. Instead of:

cat ${SITE}.work >>${BATCHFILE}

I use:

presort ${SITE}.work >>${BATCHFILE}


and presort is this:

	#! /bin/sh
	grep ^control $1
	grep -v ^control $1 | sort -k 1


Regards.

Re: newsfeed wanted.
#7263
Author: Alan Brown
Date: Sun, 05 May 1996 00:00
31 lines
1901 bytes
In article <4ln379$ek1@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>barr@math.psu.edu (Dave Barr) writes:
>
>>>thing I did that helped immensely recently was to sort the files that
>>>are passed to innxmit by rebatch/nntpsend.  That made a _HUGE_
>>>performance win
>
>>Yes, I have done this too and it is a big win.  Not only does it
>>quiet my disks down, but it quiets the other guy's disk down

I did this about 6 weeks ago in Christophe Wolfhugel's sendbatches perl
script with a net 45% reduction in batchtime for 120 sites.

It's been submitted but he's busy and it probably will be a couple months 
before the patch makes it into the distribution.

>Also, make sure you sort so that all of the control articles go first
>as it gives cancels a chance to catch up and get ahead as they
>propogate around the net.

Anyone want to post a perl/sh/whatever fragment to do this?

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

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