Thread View: news.software.nntp
36 messages
36 total messages
Started by netcom
Fri, 15 Jan 1999 00:00
NNTP revision - it's about time?
Author: netcom
Date: Fri, 15 Jan 1999 00:00
Date: Fri, 15 Jan 1999 00:00
23 lines
1458 bytes
1458 bytes
NNTP has been around for a while now. I think it's time for a revision - don't you? I would like to know what features YOU would like to see in a revised NNTP. This is supposed to be some type of brainstorming... I would like to see an additional piece of information in the protocol that classifies news by a set of criteria. i.e. commercial, spam, personal user etc. This could then be used to 1) enhance network performance by setting priorities accordingly 2) filter our unwanted messages BEFORE downloading message bodies What do you think? Any other suggestions? Do you think this could be implemented without loosing compatibility to OLD nntp clients?
Re: NNTP revision - it's about time?
Author: Paul Tomblin
Date: Fri, 15 Jan 1999 00:00
Date: Fri, 15 Jan 1999 00:00
16 lines
1383 bytes
1383 bytes
In a previous article, "netcom" <viking@biosys.net> said: > >I would like to see an additional piece of information in the protocol that >classifies news by a set of criteria. >i.e. commercial, spam, personal user etc. Who is doing the classifying? The spammers themselves? Yeah, I trust them all right. Like I trust my dog to guard my daughter's hamster. -- Paul Tomblin, not speaking for anybody. "But I heard him exclaim, as he climbed in the night Merry Christmas to all, I have traffic in sight" - Phyllis Moses
Re: NNTP revision - it's about time?
Author: Reality is a point of view
Date: Fri, 15 Jan 1999 00:00
Date: Fri, 15 Jan 1999 00:00
13 lines
1052 bytes
1052 bytes
+---- viking@biosys.net wrote (Fri, 15 Jan 1999 16:25:57 -0000): | I would like to know what features YOU would like to see in a revised NNTP. +---- More statelessness. Requiring a preceeding GROUP is a problem when GROUP's are slow, or when opening multiple connections would be rude. -- Gary Johnson gjohnson@season.com Privacy on the net is still illegal.
Re: NNTP revision - it's about time?
Author: Jonathan I. Kamens
Date: Fri, 15 Jan 1999 00:00
Date: Fri, 15 Jan 1999 00:00
8 lines
901 bytes
901 bytes
You are aware, of course, that the IETF NNTP Extensions working group has been working on internet drafts concerning revisions to the NNTP protocol for quite a while, right? If not, then I suspect you join the working group and learn what they've done before you try to reinvent the wheel.
Re: NNTP revision - it's about time?
Author: onomatopoetic justice
Date: Fri, 15 Jan 1999 00:00
Date: Fri, 15 Jan 1999 00:00
15 lines
1200 bytes
1200 bytes
In article <77nr30$15t$1@taliesin.netcom.net.uk>, netcom <viking@biosys.net> wrote: >NNTP has been around for a while now. I think it's time for a revision - >don't you? In fact, the IETF agrees with you. <URL:http://www.ietf.org/> rone -- In the truest spirit of usenet I actually have zero idea what I'm talking about and am making all this up, but it does seem reasonable and has the added benefint of possibly even beng true. - Richard Sexton <richard@vrx.net>
Re: NNTP revision - it's about time?
Author: Greg Andrews
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
49 lines
2426 bytes
2426 bytes
gjohnson@dream.season.com (Reality is a point of view) writes:
> +---- meowing@banet.net wrote (16 Jan 1999 16:41:00 GMT):
> | If client writers want to retrieve articles outside a group context,
> | then ARTICLE <message-id> is the way to do it.
> +----
>
>How does one acquire ID's without issuing a GROUP first?
>
>Better yet, how does one pull headers/overviews without issuing
>a GROUP first?
>
RFC 977, Section 3.1:
There are two forms to the ARTICLE command (and the related BODY,
HEAD, and STAT commands), each using a different method of specifying
which article is to be retrieved. When the ARTICLE command is
followed by a message-id in angle brackets ("<" and ">"), the first
form of the command is used; when a numeric parameter or no parameter
is supplied, the second form is invoked.
...
The HEAD and BODY commands are identical to the ARTICLE command
except that they respectively return only the header lines or text
body of the article.
So "HEAD <message-id>" will retrieve the headers of the article
specified by message-id. That's not overview (threading) info,
which wasn't an NNTP-managed resource when RFC 977 was written.
Back then, the way to retrieve message-ids without using the
GROUP command was to use the NEWNEWS command with a newsgroup
and/or date argument. The reply would be a list of message-ids.
Today, abuses of the NEWNEWS command have led to many sites
turning it off. (I don't remember if the "NEWNEWS group-spec"
form is still allowed, though.)
So I see your point about how difficult it can be for a news
reader to find the message-ids for articles without issuing
a GROUP command. It used to be pretty easy, but things have
been changing.
-Greg
Re: NNTP revision - it's about time?
Author: Reality is a point of view
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
22 lines
1604 bytes
1604 bytes
+---- meowing@banet.net wrote (16 Jan 1999 08:26:37 GMT): | Reality is a point of view <gjohnson@dream.season.com> wrote: | > More statelessness. Requiring a preceeding GROUP is a problem | > when GROUP's are slow, or when opening multiple connections | > would be rude. | | That's a problem with the implementation, not the protocol. +---- No, it's the protocol. Sure, GROUP's could be faster. And it would be nice of retrieve by ID were always available. Because they aren't (see Path: for details) I've noticed that the state that GROUP provides is required by some of the other commands, which can cause unnecessary headaches for client writers. Of course opening multiple connections are an easy out, but that would create headaches for some server admins . . . -- Gary Johnson gjohnson@season.com Privacy on the net is still illegal.
Re: NNTP revision - it's about time?
Author: Fluffy
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
26 lines
1977 bytes
1977 bytes
Reality is a point of view <gjohnson@dream.season.com> wrote: > No, it's the protocol. Sure, GROUP's could be faster. And it > would be nice of retrieve by ID were always available. Retrieval by ID *is* always available. If it's not available, then what you're talking to is not an NNTP server. > Because they aren't (see Path: for details) I've noticed that the > state that GROUP provides is required by some of the other commands, > which can cause unnecessary headaches for client writers. If client writers want to retrieve articles outside a group context, then ARTICLE <message-id> is the way to do it. That supernewS is b0rken is still an implementation problem, not a standards problem. The existing standard requires that syntax to work. > Of course opening multiple connections are an easy out, but that > would create headaches for some server admins . . . Again, that's implementation. The start-a-new-process-on-each-connect model is obsolete, and that's also nothing to do with the NNTP protocol. -- "Meow." --me
Re: NNTP revision - it's about time?
Author: Russ Allbery
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
16 lines
1365 bytes
1365 bytes
Greg Andrews <gerg@shell1.ncal.verio.com> writes: > Today, abuses of the NEWNEWS command have led to many sites turning it > off. (I don't remember if the "NEWNEWS group-spec" form is still > allowed, though.) It's worth noting that it's not so much *abuse* of NEWNEWS that's caused a lot of sites to disable it, but the fact that pretty much everyone stores overview information keyed by either message ID or by group and article number within a group, not keyed by time of arrival. If you had an overview database keyed by time of arrival, NEWNEWS would be pretty fast. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: NNTP revision - it's about time?
Author: Russ Allbery
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
50 lines
3380 bytes
3380 bytes
Curt Welch <curt@kcwc.com> writes: > Russ Allbery <rra@stanford.edu> wrote: >> It's worth noting that it's not so much *abuse* of NEWNEWS that's >> caused a lot of sites to disable it, but the fact that pretty much >> everyone stores overview information keyed by either message ID or by >> group and article number within a group, not keyed by time of arrival. >> If you had an overview database keyed by time of arrival, NEWNEWS would >> be pretty fast. > Ok, I should check before I write, but... Doesn't newnews take a group > pattern as well, so the additional problem is that even with a date > keyed message-id/group list you end up scanning hundreds of thousands of > records just to return a small handful of records. It's not quite *that* bad if you assume a per-group overview file just like the current ones, but keyed by arrival date rather than article number. In fact, since the article number generally increases linearly with arrival time, all you may really need is a fast searching algorithm on a traditional INN overview file to find the first article arriving after a given time. (This would be helped considerably by storing dates in the overview file as seconds since epoch, but it's probably too late for that in the current format....) If clients really *use* the full power of the group pattern, which unfortunately can be almost a full-blown wildmat(3) pattern (it doesn't allow character classes, but it does allow inverted matches and * wildcards), then yeah, your life as the server pretty much sucks, since you have to scan the whole active file, find all matching groups, and then scan their individual overview files, or you have to scan one global overview file and throw away a lot of stuff. It gets even worse if they use the "feature" to limit the search to certain distributions. > And, clients (not knowning the problems they are causing) tend to issue > multiple newnews commands for each group so the server can end up > re-scanning that huge list for each group the client wants to check? This is actually the ideal case for the most obvious implementation. Like most programming problems, I contend that it's possible to solve the NEWNEWS implementation problem by strategic application of appropriate data structures; the problem is that the data structures best suited to implementing it aren't the best ones for either fast storage of articles or for processing XOVER requests, which are rather more important these days. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: NNTP revision - it's about time?
Author: Fluffy
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
14 lines
1320 bytes
1320 bytes
Reality is a point of view <gjohnson@dream.season.com> wrote: > +---- viking@biosys.net wrote (Fri, 15 Jan 1999 16:25:57 -0000): > | I would like to know what features YOU would like to see in a revised NNTP. > +---- > > More statelessness. Requiring a preceeding GROUP is a problem > when GROUP's are slow, or when opening multiple connections > would be rude. That's a problem with the implementation, not the protocol. -- "Meow." --me
Re: NNTP revision - it's about time?
Author: Curt Welch
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
27 lines
2200 bytes
2200 bytes
Russ Allbery <rra@stanford.edu> wrote: > Greg Andrews <gerg@shell1.ncal.verio.com> writes: > > > Today, abuses of the NEWNEWS command have led to many sites turning it > > off. (I don't remember if the "NEWNEWS group-spec" form is still > > allowed, though.) > > It's worth noting that it's not so much *abuse* of NEWNEWS that's caused > a lot of sites to disable it, but the fact that pretty much everyone > stores overview information keyed by either message ID or by group and > article number within a group, not keyed by time of arrival. If you had > an overview database keyed by time of arrival, NEWNEWS would be pretty > fast. Ok, I should check before I write, but... Doesn't newnews take a group pattern as well, so the additional problem is that even with a date keyed message-id/group list you end up scanning hundreds of thousands of records just to return a small handful of records. And, clients (not knowning the problems they are causing) tend to issue multiple newnews commands for each group so the server can end up re-scanning that huge list for each group the client wants to check? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: NNTP revision - it's about time?
Author: John Moreno
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
26 lines
1894 bytes
1894 bytes
Fluffy <meowing@banet.net> wrote:
> John Moreno <phenix@interpath.com> wrote:
> > Well, it's possible that the ID isn't available when accessing a
> > Typhoon 1.1.6 server (well, it's probably in both earlier and later
> > versions too, but I'm sure about 1.1.6) and their support calls it a
> > feature not a bug:
>
> {chomp}
>
> Of course, this comes from the same product that's known for
> inappropriately munging dates, propagating broken articles and
> incorrectly handling control messages. Typhoon may be speedy garbage,
> but it's still garbage.
I wasn't defending it as a good idea -- just pointing out where Gary
may have got the impression that the id wouldn't work.
It's quite clear from the specs that if the article is available it
should be available by id, and while Highwind may call it a feature
that it sometimes isn't, it's definitely not conformant with 977.
--
John Moreno
Re: NNTP revision - it's about time?
Author: Fluffy
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
16 lines
1514 bytes
1514 bytes
John Moreno <phenix@interpath.com> wrote:
> Well, it's possible that the ID isn't available when accessing a
> Typhoon 1.1.6 server (well, it's probably in both earlier and later
> versions too, but I'm sure about 1.1.6) and their support calls it a
> feature not a bug:
{chomp}
Of course, this comes from the same product that's known for
inappropriately munging dates, propagating broken articles and
incorrectly handling control messages. Typhoon may be speedy garbage,
but it's still garbage.
--
"Meow." --me
Re: NNTP revision - it's about time?
Author: Fluffy
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
25 lines
1830 bytes
1830 bytes
Jeremy <jeremy@exit109.com> wrote: > Much as I hate to agree with Gary :) I have to. True, the supernewS > server Gary uses is b0rken in that respect (not all are), but there *are* > cases dictated by NNTP that require a GROUP prior to doing something > else. XOVER, for example, always requires a GROUP first. Extensions were meant to be extended =) 200 meowhost.meow.invalid Meownews TNND 0.00103; hello, 127.0.0.1 (posting_ok) xover <77rs3n$njp$1@east44.supernews.com> 224 Overview follows 0 Re: NNTP revision - it's about time? Jeremy <jeremy@exit109.com> 17 Jan 1999 05:23:03 GMT <77rs3n$njp$1@east44.supernews.com> <77nr30$15t$1@taliesin.netcom.net.uk> <77pifl$9u5@meow.invalid> <77qcib$9vi$2@remarQ.com> <77qfel$kb@meow.invalid> 1884 26 Xref: meowhost news.software.nntp:4510 .. meow 200 M30W! quit 205 Goodbye -- "Meow." --me
Re: NNTP revision - it's about time?
Author: Greg Andrews
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
34 lines
2013 bytes
2013 bytes
Russ Allbery <rra@stanford.edu> writes: > >If clients really *use* the full power of the group pattern, which >unfortunately can be almost a full-blown wildmat(3) pattern (it doesn't >allow character classes, but it does allow inverted matches and * >wildcards), then yeah, your life as the server pretty much sucks, since >you have to scan the whole active file, find all matching groups, and then >scan their individual overview files, or you have to scan one global >overview file and throw away a lot of stuff. > Huh? The timestamp, group, and message-id are all in the traditional history file. There was no need to go to an Overview file (much less multiple ones for each group) with the reference implementation or INN through 1.7.x. Dunno about other implementations. > >It gets even worse if they use the "feature" to limit the search to >certain distributions. > That's true enough. The server would have to open the article files if it didn't use Overview data. So it's possible to answer a NEWNEWS query without going to group- specific Overview files, but the impact on the server is large in two ways: A linear search through the history file to satisfy the date/group requirements, and an open/scan/close for every article to satisfy the Distribution requirements. -Greg
Re: NNTP revision - it's about time?
Author: Paul Tomblin
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
14 lines
1411 bytes
1411 bytes
In a previous article, curt@kcwc.com (Curt Welch) said: >that it exists or does not exist). This prevents the server from having >to do any extra work to count the number of articles in the group or >return a valid low article number. I thought those numbers came out of the active file? -- Paul Tomblin, not speaking for anybody. "But I heard him exclaim, as he climbed in the night Merry Christmas to all, I have traffic in sight" - Phyllis Moses
Re: NNTP revision - it's about time?
Author: John Moreno
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
35 lines
2195 bytes
2195 bytes
In article <77qfel$kb@meow.invalid>, Fluffy <meowing@banet.net> wrote: > Reality is a point of view <gjohnson@dream.season.com> wrote: > > No, it's the protocol. Sure, GROUP's could be faster. And it > > would be nice of retrieve by ID were always available. > > Retrieval by ID *is* always available. If it's not available, then > what you're talking to is not an NNTP server. > -snip- Well, it's possible that the ID isn't available when accessing a Typhoon 1.1.6 server (well, it's probably in both earlier and later versions too, but I'm sure about 1.1.6) and their support calls it a feature not a bug: ============== This is no bug. Typhoon lets the administrator decide on how many id's to keep indexed by message-id. If they have a number that is smaller than their total spool capacity for articles, you'll be able to bring up articles by group:number longer than you can by <id>. Not a bug, just a configuration issue. The admin is free to increase their retention of id's by using the "-queue" command line option. It is fully documented in the Operations Guide section of the documentation. I should note, however, that many admin's choose to limit the duration of message-id retention to preserve disk space. ============== -- John Moreno
Re: NNTP revision - it's about time?
Author: Jonathan I. Kamens
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
26 lines
2002 bytes
2002 bytes
In article <77sr6r$qlt$1@canoe.xcski.com>, ptomblin@canoe.xcski.com (Paul Tomblin) writes: |> In a previous article, curt@kcwc.com (Curt Welch) said: |> >that it exists or does not exist). This prevents the server from having |> >to do any extra work to count the number of articles in the group or |> >return a valid low article number. |> |> I thought those numbers came out of the active file? On many (most?) News servers, the low article number in the active file is updated only periodically (usually when "expire" runs). If the lowest article in a group is canceled, the active file doesn't get updated immediately, so it's wrong. Many (most?) News servers therefore look for the lowest available article in a group, starting at the low number specified in the active file, when they get a GROUP command, and send that number, rather than the number in the active file, to the client. This problem is exacerbated by the fact that some poorly maintained News servers don't update the low article numbers in the active file *at all*. I've encountered servers with active files showing a low article number hundreds of thousands less than the actual lowest article number in the group. News clients don't exactly appreciate this.
Re: NNTP revision - it's about time?
Author: Reality is a point of view
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
19 lines
1383 bytes
1383 bytes
+---- meowing@banet.net wrote (16 Jan 1999 16:41:00 GMT): | If client writers want to retrieve articles outside a group context, | then ARTICLE <message-id> is the way to do it. +---- How does one acquire ID's without issuing a GROUP first? Better yet, how does one pull headers/overviews without issuing a GROUP first? Because of the state-centric nature of the current protocol, rooted in GROUP, client writers are required to track potential race conditions when doing more than strictly reactive work. -- Gary Johnson gjohnson@season.com Privacy on the net is still illegal.
Re: NNTP revision - it's about time?
Author: Greg Andrews
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
30 lines
1935 bytes
1935 bytes
curt@kcwc.com (Curt Welch) writes: >Russ Allbery <rra@stanford.edu> wrote: >> Greg Andrews <gerg@shell1.ncal.verio.com> writes: >> >> > Today, abuses of the NEWNEWS command have led to many sites turning it >> > off. (I don't remember if the "NEWNEWS group-spec" form is still >> > allowed, though.) >> >> It's worth noting that it's not so much *abuse* of NEWNEWS that's caused >> a lot of sites to disable it, but the fact that pretty much everyone >> stores overview information keyed by either message ID or by group and >> article number within a group, not keyed by time of arrival. If you had >> an overview database keyed by time of arrival, NEWNEWS would be pretty >> fast. > >Ok, I should check before I write, but... Doesn't newnews take a group >pattern as well, so the additional problem is that even with a date >keyed message-id/group list you end up scanning hundreds of thousands >of records just to return a small handful of records. > Yes. In the past, answering a NEWNEWS command meant a linear scan through the history file, which is a date keyed id/group list. In recent years that scan must cover millions - perhaps tens of millions - entries, hence the "abuse" and disabling I mentioned. -Greg
Re: NNTP revision - it's about time?
Author: Jeremy
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
28 lines
1926 bytes
1926 bytes
Fluffy <meowing@banet.net> wrote: > Reality is a point of view <gjohnson@dream.season.com> wrote: > >> No, it's the protocol. Sure, GROUP's could be faster. And it >> would be nice of retrieve by ID were always available. > > Retrieval by ID *is* always available. If it's not available, then > what you're talking to is not an NNTP server. > >> Because they aren't (see Path: for details) I've noticed that the >> state that GROUP provides is required by some of the other commands, >> which can cause unnecessary headaches for client writers. > > If client writers want to retrieve articles outside a group context, > then ARTICLE <message-id> is the way to do it. That supernewS is > b0rken is still an implementation problem, not a standards problem. > The existing standard requires that syntax to work. Much as I hate to agree with Gary :) I have to. True, the supernewS server Gary uses is b0rken in that respect (not all are), but there *are* cases dictated by NNTP that require a GROUP prior to doing something else. XOVER, for example, always requires a GROUP first. -- Jeremy | jeremy@exit109.com "Who's scruffy-looking?" --Han Solo
Re: NNTP revision - it's about time?
Author: Curt Welch
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
49 lines
3435 bytes
3435 bytes
Jeremy <jeremy@exit109.com> wrote: > Fluffy <meowing@banet.net> wrote: > > Reality is a point of view <gjohnson@dream.season.com> wrote: > > > >> No, it's the protocol. Sure, GROUP's could be faster. And it > >> would be nice of retrieve by ID were always available. > > > > Retrieval by ID *is* always available. If it's not available, then > > what you're talking to is not an NNTP server. > > > >> Because they aren't (see Path: for details) I've noticed that the > >> state that GROUP provides is required by some of the other commands, > >> which can cause unnecessary headaches for client writers. > > > > If client writers want to retrieve articles outside a group context, > > then ARTICLE <message-id> is the way to do it. That supernewS is > > b0rken is still an implementation problem, not a standards problem. > > The existing standard requires that syntax to work. > > Much as I hate to agree with Gary :) I have to. True, the supernewS > server Gary uses is b0rken in that respect (not all are), but there *are* > cases dictated by NNTP that require a GROUP prior to doing something > else. XOVER, for example, always requires a GROUP first. Sure group is required. It's part of the protocol. And yes, the state nature can make writing the client a little more complex. But only because of the way most servers implement the group command. They set up a lot of internal context when you switch groups which makes it an expensive command. (or at least expensive to switch groups and then switch back). But this is clearly a server implementation problem and NOT a protocol proplem. It could be argued that the protocol and its typical historic usage tend to encourage that type of server design - but still the way to "fix" this isn't to change the protocol. At best, you could argue that the RFC needs to make it clear that the group command should not be an expensive command and that the servers should expect clients to change groups frequently. The one addition to the protocol that might make some sense in this regard is a group command which works the same as far as server state but which returns no information about the group (other than the fact that it exists or does not exist). This prevents the server from having to do any extra work to count the number of articles in the group or return a valid low article number. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: NNTP revision - it's about time?
Author: Curt Welch
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
35 lines
2447 bytes
2447 bytes
ptomblin@xcski.com (Paul Tomblin) wrote: > In a previous article, curt@kcwc.com (Curt Welch) said: > >that it exists or does not exist). This prevents the server from having > >to do any extra work to count the number of articles in the group or > >return a valid low article number. > > I thought those numbers came out of the active file? The GROUP command returns three numbers, the low article, the high article, and the total number of articles in the group. Only the high number and low number are in the active file - and the low number is likely to be wrong (or at least not very accurate) on many servers. The article count doesn't need to be accurate - it can just be calculated from the low and high numbers, but because it's returned by the protocol many servers will calculate it correctly. In inn's case for the old format, it would open the directory for the group and scan it to count the number of articles there and I think it would return a "true" low article number as well (not the one that's in the active file). With cycbuf formats which in effect expire articles continuously it gets much more difficult to calculate the low article number and the article count - I think you have to do something like try to read each article to see if it has been overwritten. I'm not sure what you have to do to figure out which ones have been canceled. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: NNTP revision - it's about time?
Author: Russ Allbery
Date: Sun, 17 Jan 1999 00:00
Date: Sun, 17 Jan 1999 00:00
35 lines
2313 bytes
2313 bytes
Greg Andrews <gerg@shell1.ncal.verio.com> writes: > Russ Allbery <rra@stanford.edu> writes: >> If clients really *use* the full power of the group pattern, which >> unfortunately can be almost a full-blown wildmat(3) pattern (it doesn't >> allow character classes, but it does allow inverted matches and * >> wildcards), then yeah, your life as the server pretty much sucks, since >> you have to scan the whole active file, find all matching groups, and >> then scan their individual overview files, or you have to scan one >> global overview file and throw away a lot of stuff. > Huh? The timestamp, group, and message-id are all in the traditional > history file. There was no need to go to an Overview file (much less > multiple ones for each group) with the reference implementation or INN > through 1.7.x. Yes, but linearly scanning the history file is slow, as you'd already pointed out. Linearly scanning overview files is much faster, and you don't even have to scan all the way through because they're in arrival order. Given knowledge of the expire time and the file size, you can pick a good starting guess. :) >> It gets even worse if they use the "feature" to limit the search to >> certain distributions. > That's true enough. The server would have to open the article files if > it didn't use Overview data. Distribution isn't in overview by default. Unless you're using a non-standard overview.fmt, you have to open the article files.a -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: NNTP revision - it's about time?
Author: BiPhi
Date: Mon, 18 Jan 1999 00:00
Date: Mon, 18 Jan 1999 00:00
20 lines
1504 bytes
1504 bytes
Jonathan I. Kamens <jik@kamens.brookline.ma.us> wrote in message news:77o2oe$4ti$1@jik.shore.net... >You are aware, of course, that the IETF NNTP Extensions working group >has been working on internet drafts concerning revisions to the NNTP >protocol for quite a while, right? > >If not, then I suspect you join the working group and learn what >they've done before you try to reinvent the wheel. Sometimes even the wheel needs reinventing. I have not seen the work of the IETF Extensions group, but will have next time you ask me. I'm just a CS student with lots of ideas and an inversly proportional amount of experience...
Re: NNTP revision - it's about time?
Author: Reality is a point of view
Date: Mon, 18 Jan 1999 00:00
Date: Mon, 18 Jan 1999 00:00
38 lines
2457 bytes
2457 bytes
+---- curt@kcwc.com wrote (17 Jan 1999 06:06:15 GMT): | The one addition to the protocol that might make some sense in this | regard is a group command which works the same as far as server state | but which returns no information about the group (other than the fact | that it exists or does not exist). This prevents the server from having | to do any extra work to count the number of articles in the group or | return a valid low article number. +---- I'd like a cheap context switch. I'd like an article count estimate that doesn't modify GROUPness. I'd also like a one shot approach (XOVER+G that doesn't modify GROUPness?). That would avoid races between foreground and background data retrieval (such as a user request competing with ongoing status pulls). It would also avoid command-delay-command-delay-command-delay-command-delay with user requests in second place (or would that be 3rd+4th?), especially if USENET consolidates into that one great feed satellite in the sky. Oh yeah; did the idea of interruptible requests get lost in the shuffle? It would nice to be able to gracefully interrupt pulls, instead of dropping and reconnecting. I wouldn't be bothered if servers were relieved of their context burden completely, even at the expense of request.strings.larger.larger.larger. But then I'm looking at the spec from the client side, not the server side, so implementation details and efficient data structures aren't a design issue for me. Responsive and flexible reader UI is. -- Gary Johnson gjohnson@season.com Privacy on the net is still illegal.
Re: NNTP revision - it's about time?
Author: Fluffy
Date: Tue, 19 Jan 1999 00:00
Date: Tue, 19 Jan 1999 00:00
52 lines
3426 bytes
3426 bytes
bill davidsen <davidsen@tmr.com> wrote: > In article <77qfel$kb@meow.invalid>, Fluffy <meowing@banet.net> wrote: > | Retrieval by ID *is* always available. If it's not available, then > | what you're talking to is not an NNTP server. > > I don't see anything in the standard which requires access to all online > articles, though. You can ask for an article by <msgid>, but I don't > think I have to give it to you. It's not spelled out as required -- I don't believe that any of the commands in 977 are broken out that way -- but in practice it's necessary unless you want to break things like threading for which that index exists. If you don't have an ID index, you can only reconstruct the portion of a thread that appeared in the group you're currently reading. We see things drifting between, say, n.s.readers and n.s.nntp often enough where this actually matters. > I hacked a custom version of 1.4.something a few years ago to enforce > the group restrictions in the access file. If it said you could read > alt.whatever you couldn't, including articles crossposted to a group you > could read. Well that's getting into access control, not the basic database availability. I take it that command <msgid> still worked for the groups visible to the reader? > | Again, that's implementation. The start-a-new-process-on-each-connect > | model is obsolete, and that's also nothing to do with the NNTP > | protocol. > > It has the advantage of working on most systems. There are enough broken > versions of threads out there that a threads implementation would be far > less portable than the current implementation. On the other hand, there are freely available threading implementations that work rather well. Having a server or three around that can take advantage of the capability where it exists seems like a Good Thing to me; and more apps that require a given capability are that much more incentive for vendors to get off their butts and fix it. > And with copy on write used in most systems, the overhead of multiple > processes is fairly slow if you use the daemon instead of running > readers from innd. Running readers from innd seems a lose-lose > proposal on most systems. Yup, it's absolutely evil. One thing that could benefit nnrpd without going to threads might be to borrow apache's trick of leaving a few spare copies idling in reserve. -- "Meow." --me
Re: NNTP revision - it's about time?
Author: bill davidsen
Date: Tue, 19 Jan 1999 00:00
Date: Tue, 19 Jan 1999 00:00
50 lines
3279 bytes
3279 bytes
In article <77qfel$kb@meow.invalid>, Fluffy <meowing@banet.net> wrote: | Reality is a point of view <gjohnson@dream.season.com> wrote: | > No, it's the protocol. Sure, GROUP's could be faster. And it | > would be nice of retrieve by ID were always available. | | Retrieval by ID *is* always available. If it's not available, then | what you're talking to is not an NNTP server. I don't see anything in the standard which requires access to all online articles, though. You can ask for an article by <msgid>, but I don't think I have to give it to you. | > Because they aren't (see Path: for details) I've noticed that the | > state that GROUP provides is required by some of the other commands, | > which can cause unnecessary headaches for client writers. | | If client writers want to retrieve articles outside a group context, | then ARTICLE <message-id> is the way to do it. I hacked a custom version of 1.4.something a few years ago to enforce the group restrictions in the access file. If it said you could read alt.whatever you couldn't, including articles crossposted to a group you could read. | > Of course opening multiple connections are an easy out, but that | > would create headaches for some server admins . . . | | Again, that's implementation. The start-a-new-process-on-each-connect | model is obsolete, and that's also nothing to do with the NNTP | protocol. It has the advantage of working on most systems. There are enough broken versions of threads out there that a threads implementation would be far less portable than the current implementation. And with copy on write used in most systems, the overhead of multiple processes is fairly slow if you use the daemon instead of running readers from innd. Running readers from innd seems a lose-lose proposal on most systems. This is one you *can't* do without separate processes or threads, unless you are willing to limit yourself to uniprocessor machine, or those smart enough to do threading by some o/s magic. That's one of the limitations of innd, and why crosspost was pulled out of it. And I seem to remember early versions of overview being in the innd as well, but I may well be thinking of discussion rather than implementation. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "Too soon we grow old, and too late we grow smart" -Arthur Godfrey
Re: NNTP revision - it's about time?
Author: Curt Welch
Date: Tue, 19 Jan 1999 00:00
Date: Tue, 19 Jan 1999 00:00
27 lines
2113 bytes
2113 bytes
davidsen@tmr.com (bill davidsen) wrote: > In article <77qfel$kb@meow.invalid>, Fluffy <meowing@banet.net> wrote: > | Reality is a point of view <gjohnson@dream.season.com> wrote: > | > No, it's the protocol. Sure, GROUP's could be faster. And it > | > would be nice of retrieve by ID were always available. > | > | Retrieval by ID *is* always available. If it's not available, then > | what you're talking to is not an NNTP server. > > I don't see anything in the standard which requires access to all online > articles, though. You can ask for an article by <msgid>, but I don't > think I have to give it to you. And there's probably nothing in the standard that says you have to give them the article when they ask for it by number either. But I bet most people would think the server was "broken" if the article was not expired yet the server couldn't return it when asked to. No matter what the RFC says, a good news server will be consistent. If the article is visible though one interface, then it should be visible though all interfaces. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: NNTP revision - it's about time?
Author: Andrew Gierth
Date: Fri, 22 Jan 1999 00:00
Date: Fri, 22 Jan 1999 00:00
32 lines
2159 bytes
2159 bytes
>>>>> "bill" == bill davidsen <davidsen@tmr.com> writes: [apache's preforking trick] bill> I've never been sure that was a good idea, either, at least on bill> all systems. You might want to look at Stevens UNP (2nd ed) volume 1, which has some comparisons of this kind of thing. bill> The overhead of a fork is basically copying the page tables and bill> setting the copy on write bit as you go. While the overhead of bill> passing a socket is low, I'm not sure in practice it matters. No passing of sockets is required (or used) in the apache model. Each preforked server does its own calls to accept(). (Some systems require locking around the accept calls, some don't.) bill> In theory it would be a big win if you had socket passing but bill> not a working vfork(), You seem to be misunderstanding vfork(), which is bugger-all use for the nnrpd-daemon situation (it's only ever useful if you're going to immediately follow the fork with an exec() call, because it suspends the parent process until either that happens or the child dies.) You need a full-blown fork() in this case. -- Andrew.
Re: NNTP revision - it's about time?
Author: bill davidsen
Date: Fri, 22 Jan 1999 00:00
Date: Fri, 22 Jan 1999 00:00
76 lines
3869 bytes
3869 bytes
In article <slrn7a9u1l.pgt.meowing@meowhost.meow.invalid>, Fluffy <meowing@banet.net> wrote: | bill davidsen <davidsen@tmr.com> wrote: | > I hacked a custom version of 1.4.something a few years ago to enforce | > the group restrictions in the access file. If it said you could read | > alt.whatever you couldn't, including articles crossposted to a group you | > could read. | | Well that's getting into access control, not the basic database | availability. I take it that command <msgid> still worked for the | groups visible to the reader? Yes, the check was just before delivery of the head/article data, and a clear message was returned to let the user know the article was there, but unavailable. In practice the cross posting probably never occurred except in my test cases, but I was sure someone would try it, and they did during acceptance. | > | Again, that's implementation. The start-a-new-process-on-each-connect | > | model is obsolete, and that's also nothing to do with the NNTP | > | protocol. | > | > It has the advantage of working on most systems. There are enough broken | > versions of threads out there that a threads implementation would be far | > less portable than the current implementation. | | On the other hand, there are freely available threading implementations | that work rather well. Having a server or three around that can take | advantage of the capability where it exists seems like a Good Thing to | me; and more apps that require a given capability are that much more | incentive for vendors to get off their butts and fix it. There are some user level threading libraries, but they only wind up with a single dispatch (CPU) in some cases. Of course if you only *have* one cpu all you can buy is reduced overhead. | > And with copy on write used in most systems, the overhead of multiple | > processes is fairly slow if you use the daemon instead of running | > readers from innd. Running readers from innd seems a lose-lose | > proposal on most systems. | | Yup, it's absolutely evil. One thing that could benefit nnrpd without | going to threads might be to borrow apache's trick of leaving a few | spare copies idling in reserve. I've never been sure that was a good idea, either, at least on all systems. The overhead of a fork is basically copying the page tables and setting the copy on write bit as you go. While the overhead of passing a socket is low, I'm not sure in practice it matters. In theory it would be a big win if you had socket passing but not a working vfork(), but I can't think of a system which actually has that misfeature set ;-) Feel free to share info on this, a bit of testing on vfork() performance indicates that it's a very fast operation. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "Too soon we grow old, and too late we grow smart" -Arthur Godfrey
Re: NNTP revision - it's about time?
Author: Fluffy
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
25 lines
2280 bytes
2280 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > >>>>> "bill" == bill davidsen <davidsen@tmr.com> writes: > bill> The overhead of a fork is basically copying the page tables and > bill> setting the copy on write bit as you go. While the overhead of > bill> passing a socket is low, I'm not sure in practice it matters. But rapid-fire NNTP sessions of the browser kind tend to do things like GROUP/ARTICLE nnn/QUIT. There goes most of the the copy-on-write advantage (assuming you're lucky enough to be on an OS that does that) because you've just modified the whole article array and buffer and have to request the pages anyway. Persistent daemons can malloc that space once and reuse it across sessions. > You seem to be misunderstanding vfork(), which is bugger-all use for > the nnrpd-daemon situation (it's only ever useful if you're going to > immediately follow the fork with an exec() call, because it suspends > the parent process until either that happens or the child dies.) This will confuse the heck out of linuxheads, where fork and vfork are the same call and so work interchangeably (it's got copy-on-write so it's cheap enough to do it that way). -- "Meow." --me
Re: NNTP revision - it's about time?
Author: BARRY BOUWSMA IS A PROUD MEMBER ...
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
15 lines
1590 bytes
1590 bytes
On 22 Jan 1999, Andrew Gierth wrote: > bill> In theory it would be a big win if you had socket passing but > bill> not a working vfork(), > > You seem to be misunderstanding vfork(), which is bugger-all use for > the nnrpd-daemon situation (it's only ever useful if you're going to > immediately follow the fork with an exec() call, because it suspends > the parent process until either that happens or the child dies.) This sounds to me like a good solution for the common problem of too many simultaneous parallel client connections...
Re: NNTP revision - it's about time?
Author: Andrew Gierth
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
39 lines
2756 bytes
2756 bytes
>>>>> "Fluffy" == Fluffy <meowing@banet.net> writes:
>> You seem to be misunderstanding vfork(), which is bugger-all use for
>> the nnrpd-daemon situation (it's only ever useful if you're going to
>> immediately follow the fork with an exec() call, because it suspends
>> the parent process until either that happens or the child dies.)
Fluffy> This will confuse the heck out of linuxheads, where fork and
Fluffy> vfork are the same call and so work interchangeably (it's got
Fluffy> copy-on-write so it's cheap enough to do it that way).
On many other systems besides Linux vfork() is either synonymous with
fork() or absent. On others, such as SCO OpenSwerver, vfork() copies
the address space (copy-on-write) etc., but still suspends the parent
process until the child execs or dies.
The "true" vfork() is actually quite a rare and elusive beast. But you
should only write code that calls vfork() if you understand the
restrictions on what the child process can do with it.
The Single Unix specification, incidentally, defines vfork as follows:
DESCRIPTION
The vfork() function has the same effect as fork(), except that
the behaviour is undefined if the process created by vfork()
either modifies any data other than a variable of type pid_t used
to store the return value from vfork(), or returns from the
function in which vfork() was called, or calls any other function
before successfully calling _exit() or one of the exec family of
functions.
This, you can see, is quite restrictive on what programs can do
(portably) in the child branch of a vfork.
--
Andrew.
Re: NNTP revision - it's about time?
Author: Matt Dillon
Date: Sun, 24 Jan 1999 00:00
Date: Sun, 24 Jan 1999 00:00
72 lines
3827 bytes
3827 bytes
:In article <87g1939f3h.fsf@erlenstar.demon.co.uk>,
:Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
:>>>>>> "bill" == bill davidsen <davidsen@tmr.com> writes:
:>
:>comparisons of this kind of thing.
:>
:> bill> The overhead of a fork is basically copying the page tables and
:> bill> setting the copy on write bit as you go. While the overhead of
:> bill> passing a socket is low, I'm not sure in practice it matters.
:>
:>No passing of sockets is required (or used) in the apache model. Each
:>preforked server does its own calls to accept(). (Some systems require
:>locking around the accept calls, some don't.)
Actually, most systems require locking around the accept calls.
You can get away without it, but without locking you get this
situation:
30 processes waiting on accept ( or select()ing on accept() )
1 (one) new connection comes in
30 processes wakeup
1 process gets the connection
29 processes go to sleep.
Oops. If the sysem uses fcntl locks or flock, however, the locking
code typically handles the exclusive-lock-handoff case reasonaly
optimally so only one or two processes wake up on a new connection.
:> bill> In theory it would be a big win if you had socket passing but
:> bill> not a working vfork(),
:>
:>You seem to be misunderstanding vfork(), which is bugger-all use for
:>the nnrpd-daemon situation (it's only ever useful if you're going to
:>immediately follow the fork with an exec() call, because it suspends
:>the parent process until either that happens or the child dies.)
:>
:>You need a full-blown fork() in this case.
:>
:>--
:>Andrew.
It should be noted that fork()'s internals have changed considerably
over the years. fork() is still highly OS independant, but some systems
( such as FreeBSD ) optimize it well enough that you basically do not
have to worry about it... the overhead is very small whether you use
vfork() or fork().
For example, FreeBSD does not actually have to duplicate a process's
map objects or page tables on a fork.
The real cost of fork() is, of course, unavoidable copy-on-write faults.
This is true of all systems.
Older systems had much more overhead. Even Linux has pretty significant
overhead due to having to copy physical page tables, but not as bad as
older systems which either couldn't do copy-on-write properly or couldn't
manage swap backing store properly ( all resulting in very slow fork()
performance ).
And, finally, even if the fork() overhead remained static, performance
goes up as cpu speed goes up. Fork() has probably gotten 2x to 4x more
efficient over the last ten years, but cpu's have gotten 100x faster or
more. Fork has become much less of an issue on modern computers.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
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