🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
15 messages
15 total messages Started by Russ Allbery Wed, 03 Apr 2002 03:25
Re: Response to Jeremy Nixon's anti-yEnc stance
#57856
Author: Russ Allbery
Date: Wed, 03 Apr 2002 03:25
16 lines
1832 bytes
In news.software.nntp, J B Moreno <planb@newsreaders.com> writes:

> It's requiring changes in both the servers and clients.

No.  You're wrong.  Supporting XHDR content-type doesn't require any
changes to most servers, only Typhoon.

It only requires changes to servers if you want to optimize the operation,
which will happen pretty quickly if people start using it a lot.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Response to Jeremy Nixon's anti-yEnc stance
#57857
Author: J.B. Moreno
Date: Wed, 03 Apr 2002 04:48
24 lines
2226 bytes
In article <ylzo0l79b4.fsf@windlord.stanford.edu>, 
 Russ Allbery <rra@stanford.edu> wrote:

> In news.software.nntp, J B Moreno <planb@newsreaders.com> writes:
> 
> > It's requiring changes in both the servers and clients.
> 
> No.  You're wrong.  Supporting XHDR content-type doesn't require any
> changes to most servers, only Typhoon.

Doesn't INN allow you to limit XHDR to XOVER headers?

> It only requires changes to servers if you want to optimize the
> operation, which will happen pretty quickly if people start using it
> a lot.

Until the server gets optimized it will be (according to a recent post)
about 3 times slower for the user -- it already takes a significant
amount of time to enter some groups, this isn't going to be used a lot
until it is at least as fast as the existing method.

-- 
J.B. Moreno
Re: Response to Jeremy Nixon's anti-yEnc stance
#57859
Author: Jeffrey M. Vinocur
Date: Wed, 03 Apr 2002 05:31
42 lines
2480 bytes
In article <020420022348446251%planb@newsreaders.com>,
J.B. Moreno <planb@newsreaders.com> wrote:
>In article <ylzo0l79b4.fsf@windlord.stanford.edu>, 
> Russ Allbery <rra@stanford.edu> wrote:
>
>> Supporting XHDR content-type doesn't require any changes to
>> most servers
>
>Doesn't INN allow you to limit XHDR to XOVER headers?

Nope.  I just checked.  (It would be trivial to add if anybody
wanted it, though.)


>> It only requires changes to servers if you want to optimize the
>> operation, which will happen pretty quickly if people start using it
>> a lot.
>
>Until the server gets optimized it will be (according to a recent post)
>about 3 times slower for the user

To get the header information?  Perhaps.  But with yEnc, the user
has to retrieve the *body* to get some of that information.  The
penalty incurred by fetching even a single binary article that
the user doesn't need is enormous in comparison to anything
having to do with the headers, isn't it?


>it already takes a significant amount of time to enter some
>groups, this isn't going to be used a lot until it is at least
>as fast as the existing method.

What if he doesn't need to do XOVER on most of the articles?  

(I don't recall which post you refer to, obviously, or I'd
remember the details.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Response to Jeremy Nixon's anti-yEnc stance
#57858
Author: Jeremy
Date: Wed, 03 Apr 2002 05:51
17 lines
1375 bytes
J.B. Moreno <planb@newsreaders.com> wrote:

> Doesn't INN allow you to limit XHDR to XOVER headers?

No, it doesn't.

> Until the server gets optimized it will be (according to a recent post)
> about 3 times slower for the user -- it already takes a significant
> amount of time to enter some groups, this isn't going to be used a lot
> until it is at least as fast as the existing method.

Non-optimized XHDR is still going to be just as fast as almost everyones'
line speed.

-- 
Jeremy  |  jeremy@exit109.com
Re: Response to Jeremy Nixon's anti-yEnc stance
#57860
Author: Russ Allbery
Date: Wed, 03 Apr 2002 05:52
19 lines
2196 bytes
J B Moreno <planb@newsreaders.com> writes:

> Until the server gets optimized it will be (according to a recent post)
> about 3 times slower for the user -- it already takes a significant
> amount of time to enter some groups, this isn't going to be used a lot
> until it is at least as fast as the existing method.

I find that off-the-cuff metric to be rather dubious.  If doing this first
lets people avoid downloading files that they don't already have, the
additional time will be worth it extremely quickly, and an automated
binary downloader doesn't need to care.  Note that this is just a time
penalty regardless, not a bytes downloaded penalty.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Response to Jeremy Nixon's anti-yEnc stance
#57861
Author: J.B. Moreno
Date: Wed, 03 Apr 2002 06:31
23 lines
2400 bytes
In article <yl1ydx5nxt.fsf@windlord.stanford.edu>, 
 Russ Allbery <rra@stanford.edu> wrote:

> J B Moreno <planb@newsreaders.com> writes:
> 
> > Until the server gets optimized it will be (according to a recent post)
> > about 3 times slower for the user -- it already takes a significant
> > amount of time to enter some groups, this isn't going to be used a lot
> > until it is at least as fast as the existing method.
> 
> I find that off-the-cuff metric to be rather dubious.  If doing this first
> lets people avoid downloading files that they don't already have, the
> additional time will be worth it extremely quickly, and an automated
> binary downloader doesn't need to care.  Note that this is just a time
> penalty regardless, not a bytes downloaded penalty.

Yeah, it's a time penalty, but that's still how a lot of downloading is
done.  Besides -- until it's near universal, the downloading client
will have to do both -- not a good thing.

-- 
J.B. Moreno
Re: Response to Jeremy Nixon's anti-yEnc stance
#57869
Author: Bob Cousins
Date: Wed, 03 Apr 2002 10:36
20 lines
1834 bytes
Jeremy wrote:

>J.B. Moreno <planb@newsreaders.com> wrote:
>
>> Doesn't INN allow you to limit XHDR to XOVER headers?
>
>No, it doesn't.
>
>> Until the server gets optimized it will be (according to a recent post)
>> about 3 times slower for the user -- it already takes a significant
>> amount of time to enter some groups, this isn't going to be used a lot
>> until it is at least as fast as the existing method.
>
>Non-optimized XHDR is still going to be just as fast as almost everyones'
>line speed.

That is speculation unless you have actually measured it.
-- 
Bob Cousins
Re: Response to Jeremy Nixon's anti-yEnc stance
#57870
Author: Bob Cousins
Date: Wed, 03 Apr 2002 10:38
14 lines
1625 bytes
Jeffrey M. Vinocur wrote:

>To get the header information?  Perhaps.  But with yEnc, the user
>has to retrieve the *body* to get some of that information.

Maybe, but he doesn't that information.  The subject line contains
minimum information required to decide whether or not to download the
message. Once the message is retrieved the other fields are used to
check it.


-- 
Bob Cousins
Re: Response to Jeremy Nixon's anti-yEnc stance
#57883
Author: Russ Allbery
Date: Wed, 03 Apr 2002 18:52
34 lines
2857 bytes
Jeremy <jeremy@exit109.com> writes:

> Non-optimized XHDR is still going to be just as fast as almost
> everyones' line speed.

That's not necessarily true.  I went off and actually benchmarked it
(significant negative points to the people who keep arguing against XHDR
without actually testing it; it's not that hard to actually try it), and
with a straight, unoptimized INN server storing binaries in CNFS it's
actually pretty slow:

windlord:~> time perl -MNet::NNTP -e '$nntp = new Net::NNTP; $nntp->group("alt.binaries.pictures.erotica") or die; $nntp->xover([1, 0])'
2.43u 0.27s 0:05.88 45.9%
windlord:~> time perl -MNet::NNTP -e '$nntp = new Net::NNTP; $nntp->group("alt.binaries.pictures.erotica") or die; $nntp->xhdr("content-type", [1, 0])'
0.34u 0.05s 2:13.30 0.2%

Bear in mind that the implementation has to memory map each article, parse
the headers, find Content-Type and remember it, and then unmap the
article.

It's pretty clear that INN needs some kind of standardized support for
including extra headers in the overview without returning them to clients.
I'm trying to figure out the best way to do that without adding really
complex data structures or having to do a bunch more parsing of overview
entries.  Most of the ways that I can think of to do it destroy one's
ability to just sendfile() the overview data to the client, not that INN
currently does that but it was an optimization I had some hopes for.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Response to Jeremy Nixon's anti-yEnc stance
#57886
Author: Jeremy
Date: Wed, 03 Apr 2002 19:33
28 lines
2135 bytes
Russ Allbery  <rra@stanford.edu> wrote:

>> Non-optimized XHDR is still going to be just as fast as almost
>> everyones' line speed.
> 
> That's not necessarily true.  I went off and actually benchmarked it
> (significant negative points to the people who keep arguing against XHDR
> without actually testing it; it's not that hard to actually try it), and
> with a straight, unoptimized INN server storing binaries in CNFS it's
> actually pretty slow:

Yeah, I don't actually have access to that kind of server for testing.
(And our server at Supernews is already optimized for XHDR Content-Type,
so that doesn't tell us much.)  I had done some tests against other
servers, and found XHDR Content-Type to run at the same speed for me as
XHDR Subject (limited by line speed).

I just now did a couple of tests against Newscene, and found that
XHDR Content-Type was actually running faster than XHDR Subject.
Obviously, Subject takes much longer to run on a group because there
is more data, but the transfer speed is what I was looking at.  For
whatever reason, at this moment, Newscene is unable to saturate my
line with XHDR Subject, but is with XHDR Content-Type.  Since that
can't be right, I'll just call it a wash. :)

-- 
Jeremy  |  jeremy@exit109.com
Re: Response to Jeremy Nixon's anti-yEnc stance
#57891
Author: Jeffrey M. Vinocur
Date: Wed, 03 Apr 2002 19:41
33 lines
2238 bytes
In article <ylhems1up1.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>
>It's pretty clear that INN needs some kind of standardized support for
>including extra headers in the overview without returning them to clients.
>I'm trying to figure out the best way to do that without adding really
>complex data structures or having to do a bunch more parsing of overview
>entries.

Well, the parsing isn't so bad.  Keep the extra headers at the
end and perhaps put some sort of tag between the two sections.

Even better, put the length of the real overview data at the
front, then you don't need a divider and you don't need to parse
at all.  That's probably best.


>Most of the ways that I can think of to do it destroy one's
>ability to just sendfile() the overview data to the client, not that INN
>currently does that but it was an optimization I had some hopes for.

To send an entire range?  Yeah, that would be harder.

Ugh.

Impossible, I think.  I mean, you'd have to keep two sets of
overview data in some fashion.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Response to Jeremy Nixon's anti-yEnc stance
#57890
Author: Jeremy
Date: Wed, 03 Apr 2002 19:58
14 lines
1283 bytes
Russ Allbery  <rra@stanford.edu> wrote:

> windlord:~> time perl -MNet::NNTP -e '$nntp = new Net::NNTP;

Oh yeah; Net::NNTP probably isn't the best thing to use for this kind
of testing.  It's not optimized for this sort of retrievel; the parsing
code in there has an enormous overhead.

Try something that just dumps the data to a file without parsing it,
to remove client implementation from the equation.

-- 
Jeremy  |  jeremy@exit109.com
Re: Response to Jeremy Nixon's anti-yEnc stance
#57892
Author: Russ Allbery
Date: Wed, 03 Apr 2002 20:44
24 lines
2018 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> Most of the ways that I can think of to do it destroy one's ability to
>> just sendfile() the overview data to the client, not that INN currently
>> does that but it was an optimization I had some hopes for.

> To send an entire range?  Yeah, that would be harder.

> Ugh.

> Impossible, I think.  I mean, you'd have to keep two sets of
> overview data in some fashion.

Right, you'd be forced into (for example) opening a third file in
tradindexed, which is pretty much a non-starter.  It's bad enough to be
opening two.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Response to Jeremy Nixon's anti-yEnc stance
#57893
Author: Russ Allbery
Date: Wed, 03 Apr 2002 20:45
19 lines
1938 bytes
Jeremy <jeremy@exit109.com> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> windlord:~> time perl -MNet::NNTP -e '$nntp = new Net::NNTP;

> Oh yeah; Net::NNTP probably isn't the best thing to use for this kind of
> testing.  It's not optimized for this sort of retrievel; the parsing
> code in there has an enormous overhead.

The parsing code is going to be about the same for XOVER as for XHDR; I
think that part is pretty much a wash.  It definitely doesn't explain a
difference of five seconds to over two minutes.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Response to Jeremy Nixon's anti-yEnc stance
#57896
Author: A Meowbot
Date: Wed, 03 Apr 2002 21:49
10 lines
1766 bytes
J.B. Moreno wrote:
> Doesn't INN allow you to limit XHDR to XOVER headers?

Yes, if you're willing to hack the source.  This is pretty easy to do, 
since the logic is already there to decide whether to grab the header 
from overview or dig into the article.

There may be one or two releases of INN out there with overview-only 
XPAT support, though.
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