🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Dufus Systems Wed, 09 Nov 2005 22:02
Odd article numbering.
#72608
Author: Dufus Systems
Date: Wed, 09 Nov 2005 22:02
14 lines
1574 bytes
I've run into an odd server which apparently uses sparse record numbering 
for all groups. For example

211 558 1 65384934 alt.binaries.automobile.pictures

Is the reply from one group and by looking at the record numbers, it seems 
that they're sparsely assigned. No two posts are consecutively numbered. 
558 posts with a 65 million post range. From my reading of the RFC, there 
doesn't seem to be anything saying this isn't permitted. If I were to XOVER 
over the whole range, I'd get all the posts. 

So, my question is, is there anything in the RFC that says you're not 
supposed to do it this way? 
Re: Odd article numbering.
#72609
Author: Russ Allbery
Date: Wed, 09 Nov 2005 22:04
25 lines
2174 bytes
Dufus Systems <peon@somecompany.com.invalid> writes:

> I've run into an odd server which apparently uses sparse record
> numbering for all groups. For example

> 211 558 1 65384934 alt.binaries.automobile.pictures

> Is the reply from one group and by looking at the record numbers, it
> seems that they're sparsely assigned. No two posts are consecutively
> numbered. 558 posts with a 65 million post range. From my reading of the
> RFC, there doesn't seem to be anything saying this isn't permitted. If I
> were to XOVER over the whole range, I'd get all the posts.

> So, my question is, is there anything in the RFC that says you're not 
> supposed to do it this way? 

No, it's a permissible (if stupid) implementation.  You can't guarantee
there will be no holes regardless, due to cancels, so this is just an
extreme case of something that news reading software has to handle anyway.

-- 
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: Odd article numbering.
#72610
Author: Dufus Systems
Date: Wed, 09 Nov 2005 22:21
17 lines
1703 bytes
Russ Allbery <rra@stanford.edu> wrote in
news:87y83xqxzv.fsf@windlord.stanford.edu: 

> 
> No, it's a permissible (if stupid) implementation.  You can't
> guarantee there will be no holes regardless, due to cancels, so this
> is just an extreme case of something that news reading software has to
> handle anyway. 
> 

Thanks, yeah if it was just some holes it wouldn't be a problem. There are  
huge ranges, 100K and more of record numbers where there's nothing. It's 
only an issue if the user choses to start a group by downloading a subset 
of the headers because, there might not actually be any posts sitting at 
the end of the range. 

Appreciate it. Got some code to write...
Re: Odd article numbering.
#72612
Author: Russ Allbery
Date: Wed, 09 Nov 2005 23:38
17 lines
1933 bytes
Dufus Systems <peon@somecompany.com.invalid> writes:

> Thanks, yeah if it was just some holes it wouldn't be a problem. There
> are huge ranges, 100K and more of record numbers where there's
> nothing. It's only an issue if the user choses to start a group by
> downloading a subset of the headers because, there might not actually be
> any posts sitting at the end of the range.

Yeah, it causes some nasty client effects, which is one of the reasons why
it's a bad implementation choice.  It's hard to handle it in a way that
makes the choice transparent to the user.

-- 
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: Odd article numbering.
#72624
Author: Bill Davidsen
Date: Thu, 10 Nov 2005 20:01
33 lines
2867 bytes
Dufus Systems wrote:
> Russ Allbery <rra@stanford.edu> wrote in
> news:87y83xqxzv.fsf@windlord.stanford.edu: 
> 
> 
>>No, it's a permissible (if stupid) implementation.  You can't
>>guarantee there will be no holes regardless, due to cancels, so this
>>is just an extreme case of something that news reading software has to
>>handle anyway. 
>>
> 
> 
> Thanks, yeah if it was just some holes it wouldn't be a problem. There are  
> huge ranges, 100K and more of record numbers where there's nothing. It's 
> only an issue if the user choses to start a group by downloading a subset 
> of the headers because, there might not actually be any posts sitting at 
> the end of the range. 
> 
> Appreciate it. Got some code to write...

If there's a good way to do this, I don't have it. I have a program to 
gram the last N items in overview, and it it wants 100 (for example) and 
asks for the last 100 numbers and gets 80 data, it then "backs up" by 
the shortfall, 20, and asks again.

Possible extention to the NNTP protocol: a syntax to specify the last N 
items in overview, regardless of article number. It's much faster to do 
this at the server end.

-- 
bill davidsen
   SBC/Prodigy Yorktown Heights NY data center
   http://newsgroups.news.prodigy.com
Re: Odd article numbering.
#72627
Author: Jeffrey M. Vinocur
Date: Thu, 10 Nov 2005 20:29
26 lines
2243 bytes
In article <8GNcf.10338$Lv.6870@newssvr24.news.prodigy.net>,
Bill Davidsen  <davidsen@deathstar.prodigy.com> wrote:
>
>If there's a good way to do this, I don't have it. I have a program to 
>gram the last N items in overview, and it it wants 100 (for example) and 
>asks for the last 100 numbers and gets 80 data, it then "backs up" by 
>the shortfall, 20, and asks again.

Yeah, I'm not sure how you could do better.  I suppose you could
use the density of actual articles / article number to
extrapolate how far back to go, but I imagine in most cases the
holes aren't uniform for that to be very helpful.  (In some
sense, for holes that are arbitrarily large, you'd almost wonder
if you should take exponentially larger chunks each time.  But
that's probably a mistake too.)


>Possible extention to the NNTP protocol: a syntax to specify the last N 
>items in overview, regardless of article number. It's much faster to do 
>this at the server end.

Well, we've got an extensions mechanism now, so why not?  :-)

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Odd article numbering.
#72717
Author: J. Carlos Castro
Date: Wed, 23 Nov 2005 21:08
52 lines
3318 bytes
Russ Allbery wrote:
>>>No, it's a permissible (if stupid) implementation.  You can't
>>>guarantee there will be no holes regardless, due to cancels, so this
>>>is just an extreme case of something that news reading software has to
>>>handle anyway.

Bill Davidson replied later in the thread:
> If there's a good way to do this, I don't have it. I have a program to 
> gram the last N items in overview, and it it wants 100 (for example) and 
> asks for the last 100 numbers and gets 80 data, it then "backs up" by the 
> shortfall, 20, and asks again.
>
> Possible extention to the NNTP protocol: a syntax to specify the last N 
> items in overview, regardless of article number. It's much faster to do 
> this at the server end.

How about a reverse XOVER command, say ROVER that takes two args.
The first argument indicates the first xover record to return, and the 
second
argument indicates how many xovers to return counting down from the first.
If the first argument is a "0" then the latest article in the group is 
assumed.

"ROVER 0 125" means I want the latest 125 overview records for the group
listed in reverse number order
"ROVER 1000 75" means I want the 75 newest overview records numbered
below 1001 listed in reverse number order.

A scalable implementation of this might be a little tricky based on how 
overview
records are stored on the server.  On servers where overviews for a group 
are
stored together in order, reading forward makes the most sense wrt disk 
caching.
You read() the first record, and at the same time you move the next few 
records
occupying that page into system memory, so the next few read()s will avoid
smacking the disk.

for ROVER to work on a server in which overview records for a group are
stored in order on server disk, it would make sense to do a page read 
starting at
location_of_first_record + size_of_first_record - page_size so you can read 
as
many records into system cache as possible.

Then again, this is only useful in nntp clients actually implement it.

---
Carlos 

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