Article View: news.software.nntp
Article #26354Re: Support for NEWNEWS
From: Jeff Garzik
Date: Tue, 17 Feb 1998 00:00
Date: Tue, 17 Feb 1998 00:00
149 lines
7119 bytes
7119 bytes
bill davidsen wrote: > Jeff Garzik <jeff.garzik@spinne.com> wrote: > | "Loading the server" is no excuse not to use a command. That implies a > | crappy NEWNEWS implementation. If this is the case, your beef is with > | the implementation, not with the command itself. > If a command is inherently uses lots of resources there is no good > implementation. Doing a good NEWNEWS seems a lot like writing a > multithreaded bubble sort in assembler, it's a great implementation > of a poor solution. You seem to be assuming that NEWNEWS will require lots of resources regardless of its implementation. As a computer scientist this stance just boggles my mind. I've learned time and time again there is always a better implementation than the one I think of ;) > | Running NEWNEWS to suck "misc.*" is a lot better than repeatedly calling > | GROUP for each misc.* group. > > Is it? That's question, not a comment, the last time I timed NEWNEWS > (before I disabled it) it was orders of magnitude slower than GROUP. To be fair you must compare the cost of 1 NEWNEWS command, versus 1 LIST ACTIVE misc.* command, and 131 GROUP commands Assuming an immediate response from ALL NNTP commands (i.e.. a "perfect" implementation), you must factor in network RTT times 132 in the second example. > | NEWNEWS facilitates group independence. Clients using NEWNEWS do not > | have to process active file updates [if they don't want to.] A NEWNEWS > | request for "comp.*" automatically gets all the comp.* newsgroups, even > | the ones added just yesterday. > > So to avoid coding NEWGROUPS in the client we kill the server? Don't quite follow you. active.times exists for new-groups functionality. But taking your question to a higher level, we begin to approach the "fat client" versus "thin client" question, to which the answer remains hotly debated. The NNTP Search extension is just around the corner. ftp://ds.internic.net/internet-drafts/draft-ietf-nntpext-srch-00.txt Enabling NNTP Search will undoubtedly cause admins worldwide to wonder about the issues we are debating here today. Do I want to create server-side indexes for my clients? Surely the client can better store the indexes on his side... And as you will find in many "fat client" versus "thin client" discussions, there are positive arguments for both sides. Just because you don't need to use NEWNEWS doesn't mean the command is unnecessary... > | NEWNEWS can be implemented efficiently, so that it does not impose even > | a minimal strain on the server. > > The process is inherently (it seems to me) because you have to do a > match on both newsgroups and distributions. If the distributions > weren't there you would not have to either open each article or keep > a database of all articles by both newsgroups and distribution. In > any case, this is a LOT over overhead, and given the time people > have spent getting cycles out of the news process, I don't see > building a database as articles come in. It is probably practical to > have a process do this, but it still loads the server to do > something the client should be doing. You made me question my own memory of the RFC, so I went back and read about NEWNEWS again: http://www.mibsoftware.com/userkt/nntp/0020.htm The RFC does not specifically say the Distribution header. I was surprised -- I thought you were right! :) Reading the RFC, the wording instead seems to imply that the Newsgroups header is the thing we must examine/match on. > We disagree on the philosophy, I think that if a site wants a feed > they should pay for it or peer with me. If a site wants a feed for > the price of a reader, they should run software which imposes the > impact of a reader. That has to do with your business model -- which says nothing about how viable a command NEWNEWS is... :) > I do agree that NEWNEWS could be made a lot less painful to the > server, and I even know how to do it with minimal impact everywhere, > just add the distribution to the history file entry, before the > filenames. That would allow a single check of the history line to do > both newsgroups and distribution. A better way would be to just drop > distribution and move the overhead back to the client ;-) > > You really want to avoid searching the the history file for the > starting date, too. I don't have a good idea on this, the binary > search method rots on a file as large as history, even if you decide > that you will go to linear search when you get to +/-10k or so. Typhoon implements NEWNEWS 100% separate from the history file, though its implementation is not optimized (at present) either. > | NEWNEWS is still useful. It is the best way to retrieve articles by > | date and time. > | > | Calling client software that uses NEWNEWS crappy is just an attempt to > | make excuses for inadequacies in server software. > > It is a concession to reality that there are a lot more cycles on > the client side of the connection (in aggregate) than the server. > Providing a function which beats the server to make it nice for the > client is not cost effective. I will be happy to provide a server > which does fast NEWNEWS, I just won't do it for $15-20/mo reader > price. Your reality isn't necessarily anyone else's reality. :) Fat client versus thin client again. If you have 500 users that use NEWNEWS, then it certainly makes sense to build and maintain a small index once, instead of 500 times. Overall, I would say that reality is NEWNEWS is disabled on many news servers, so clients have been driven to other implementations (not using NEWNEWS). Since most clients don't need/use NEWNEWS, server admins don't have much motivation to implement it. There are enough examples of NEWNEWS' usefulness to warrant its continued existence. i.e.. Your site isn't my site. (read IETF nntp and nntp-extensions list archives for examples, I won't rehash here) But each site should know their users' needs, and not bother with NEWNEWS if it is not needed (common sense right?) -- Jeff Garzik Typhoon, Cyclone, Diablo, and INN http://www.spinne.com/usenet/ News tuning and consulting
Technical Details
Message-ID:
<34E8D775.33A7B5F8@spinne.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<34E483C1.2EE1@mci.net> <34E49FA2.7568@mci.net> <6c2ou1$20k$1@flea.best.net> <34E50756.C1396A75@spinne.com> <6caf17$hco$1@newssvr03-int.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <34E8D775.33A7B5F8@spinne.com> Subject: Re: Support for NEWNEWS Date: Tue, 17 Feb 1998 00:00:00 +0000 From: Jeff Garzik <jeff.garzik@spinne.com> References: <34E483C1.2EE1@mci.net> <34E49FA2.7568@mci.net> <6c2ou1$20k$1@flea.best.net> <34E50756.C1396A75@spinne.com> <6caf17$hco$1@newssvr03-int.news.prodigy.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 325707399 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Spinne http://spinne.com MIME-Version: 1.0 NNTP-Posting-Date: Mon, 16 Feb 1998 16:18:45 PST Newsgroups: news.software.nntp