Thread View: news.software.nntp
9 messages
9 total messages
Started by Rahul Dhesi
Tue, 26 Aug 1997 00:00
proposal: separate ports for xfer and client access
Author: Rahul Dhesi
Date: Tue, 26 Aug 1997 00:00
Date: Tue, 26 Aug 1997 00:00
28 lines
1720 bytes
1720 bytes
Brief proposal: We need separate port numbers for nntp xfer access and nntp client access. I see that a lot of confusion results from the dual use of the current nntp port. And running feeder-only software on a News machine currently prevents client access on the standard port. One solution is to run feeder-only software on a second nonstandard port. (A slightly more awkward solution is to add a second IP address.) So long as we are doing such things, why not standardize them and create a second standard port? This second port would be for xfer access only. The assumption being that it's far easier to expect one's News peers to reconfigure their software to use this new port than to expect one's customers to do so for for nntp clients. So, eventually, all nntp client access would remain on the current port, and all xfer access would be at the second newly-standardized port. And dual-purpose software such as inn could be revised to bind to both ports, if this was the best way of doing it. Let the flame war begin... -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: proposal: separate ports for xfer and client access
Author: coneill
Date: Mon, 01 Sep 1997 00:00
Date: Mon, 01 Sep 1997 00:00
11 lines
1145 bytes
1145 bytes
drechsau@yuck.net (Mike Horwath) writes: > Fun item: multithreaded nnrpd without any forking :) (and this > would not interfere with a non-multithreaded INN) It'll be fun until it starts segv'ing. I'll take a per process model any day. I've yet to see anyone cite a worthwhile reason to thread nnrpd. I doubt that you'd see a performance benefit that would be worth the effort.
Re: proposal: separate ports for xfer and client access
Author: Vidar Hokstad
Date: Mon, 01 Sep 1997 00:00
Date: Mon, 01 Sep 1997 00:00
51 lines
3177 bytes
3177 bytes
In article <8690xhwk9k.fsf@blah.erols.com>, coneill@blah.erols.com writes: > drechsau@yuck.net (Mike Horwath) writes: >> Fun item: multithreaded nnrpd without any forking :) (and this >> would not interfere with a non-multithreaded INN) > > It'll be fun until it starts segv'ing. I'll take a per process model > any day. If it starts segv'ing, it's not written well enough ;) > I've yet to see anyone cite a worthwhile reason to thread > nnrpd. I doubt that you'd see a performance benefit that would be > worth the effort. Same reasons you do it for Web cache's like Harvest and Squid for instance. Allthough I doubt "true" multithreading would help much. Much of the advantage of a non forking, cooperatively multithreading approach lies in reduced dependency on locking and less expensive context switches. As the first release of my newscache software is nearing availability (just cleaning up some code before it goes beta), we've already started working on a non-forking version, and we already see massive speedups, as well as reduced memory usage (and for our particular application, I've so far cut the code size by approximately 20%, that became unnecessary when we stopped forking...) Stability has not been a problem. You won't see the same performance benefits as a webcache does (which is largely due to the lack of the fork() system call), since connections usually have a longer duration, but you will see some. And particularly because you have a large potential for optimizations that are messy with a forking approach: All data is already shared. And you can often know that a resource should be available for use. Besides, if implemented cleanly, a state based implementation can be very easy to maintain - especially if you use a tool like Libero <URL:http://www.imatix.com/> for instance. -- --- Vidar Hokstad <v@ncg.net> ------+-+-- NorConnect Internet Services AS --- DrStrange on Undernet / EFnet |+| Consulting on Internet and intranets <URL:http://a.ncg.net/DrStrange/> |+| <URL:http://www.norconnect.no/> ------------------------------------+-+-------------------------------------- -- Posted through a PRERELEASE of NCG NewsCache. For info or complaints: <URL:mailto:newscache@ncg.net> or <URL:http://www.ncg.net/newscache/>
Re: proposal: separate ports for xfer and client access
Author: Brian Hernacki
Date: Tue, 02 Sep 1997 00:00
Date: Tue, 02 Sep 1997 00:00
23 lines
1650 bytes
1650 bytes
coneill@blah.erols.com wrote: > > drechsau@yuck.net (Mike Horwath) writes: > > Fun item: multithreaded nnrpd without any forking :) (and this > > would not interfere with a non-multithreaded INN) > > It'll be fun until it starts segv'ing. I'll take a per process model > any day. I've yet to see anyone cite a worthwhile reason to thread > nnrpd. I doubt that you'd see a performance benefit that would be > worth the effort. It is alot of work, but if you do it right, you get a pretty good reduction in memory usage. Context switch between threads also seems a bit better (speed-wise) on some systems than bewteen processes. Of course if you're looking at threading INN's nnrpd then you're going to have to deal with things like thread-unsafe chdir, dbz routines, etc. Alot of the INN model is built around that multi-process model. --brian
Re: proposal: separate ports for xfer and client access
Author: Don Lewis
Date: Wed, 03 Sep 1997 00:00
Date: Wed, 03 Sep 1997 00:00
27 lines
1976 bytes
1976 bytes
In article <5ud7is$moh$2@darla.visi.com>, Mike Horwath <drechsau@yuck.net> wrote: >Joe Greco <jgreco@ns.sol.net> wrote: > >: INN requires hacking in order to realistically support this option. >: Running nnrpd out of inetd is sort of OK, but it becomes harder to >: control your reader sessions. Most admins don't take lots of time >: to hack their code :-( Conclusion: it's something that should be >: supported in the code base, or else it's never gonna have a chance >: of being widely used. > >What do you mean it is harder to control the reader sessions? The -X >-T -H items of INN? If so, writing up a daemon that acts like INN and >can restrict items should not be hard at all. I'd advocate just stealing this code directly out of innd, but instead of running it as a separate daemon that execs nnrpd after forking, merge it into nnrpd to make a monolithic program that just has to fork. That'll save you all the startup time consumed by having to find the executable, link in the shared libraries, etc. for each incoming connection. -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Re: proposal: separate ports for xfer and client access
Author: Jerry Aguirre
Date: Tue, 09 Sep 1997 00:00
Date: Tue, 09 Sep 1997 00:00
22 lines
1580 bytes
1580 bytes
In article <5tunnh$p43$1@samba.rahul.net>, Rahul Dhesi <c.c.eiftj@64.usenet.us.com> wrote: >Obviously I am out of touch. But why is it that nobody seems >to be converting to this port? Everything still defaults to 119. Converting is almost always going to require a period where both are supported. I can't get all my incomming feeds to switch to a new port overnight. The existing code does not provide for this conversion period. The way to make this happen is to modify innd so it listens on both ports, the old and the new. That way I can gradually get all my incomming feeds to switch. Once they have all moved to the new port I can configure innd to only listen on the feed port and reconfigure the reader port to launch nnrpd from inetd. Alternately I could run something like rcompress on the new port and forward it to the old. Extra overhead doing that but it might be survivable for the transition.
Re: proposal: separate ports for xfer and client access
Author: Peter Haag
Date: Fri, 12 Sep 1997 00:00
Date: Fri, 12 Sep 1997 00:00
43 lines
2792 bytes
2792 bytes
Jerry Aguirre wrote: > > In article <5tunnh$p43$1@samba.rahul.net>, > Rahul Dhesi <c.c.eiftj@64.usenet.us.com> wrote: > >Obviously I am out of touch. But why is it that nobody seems > >to be converting to this port? Everything still defaults to 119. > There could also be a solution, in having two different IP addresses on the machine and a separate innd running on these addresses, one for feeds and one for readers, so they may profit from the some news spool. - Peter > Converting is almost always going to require a period where both are > supported. I can't get all my incomming feeds to switch to a new > port overnight. The existing code does not provide for this conversion > period. > > The way to make this happen is to modify innd so it listens on both > ports, the old and the new. That way I can gradually get all my > incomming feeds to switch. Once they have all moved to the new port > I can configure innd to only listen on the feed port and reconfigure > the reader port to launch nnrpd from inetd. > > Alternately I could run something like rcompress on the new port > and forward it to the old. Extra overhead doing that but it might be > survivable for the transition. -- --------------------------------------------------------------------- | * * | | * * Peter Haag | | U N I S O U R C E peter@unisource.ch | | * * | | * * Business Tel. +41 (0)1 445 19 45 | | * * Networks FAX. +41 (0)1 445 19 50 | | | | PGP public key | | http://www-swiss.ai.mit.edu/~bal/pks-commands.html#extract | ---------------------------------------------------------------------
Re: proposal: separate ports for xfer and client access
Author: Jerry Aguirre
Date: Mon, 15 Sep 1997 00:00
Date: Mon, 15 Sep 1997 00:00
22 lines
1684 bytes
1684 bytes
In article <341955D3.4BA4@unisource.ch>, Peter Haag <peter@unisource.ch> wrote: >There could also be a solution, in having two different IP addresses on >the machine and a separate innd running on these addresses, one for >feeds and one for readers, so they may profit from the some news spool. The problem is that innd does not bind to a particular address. It binds to a port (NNTP) on ANY address. Thus if you run two IP addresses innd will be listening on both for port 119. Alright, so you can modify innd to bind to a particular address. (Yet another configuration item to set.) But if your going to do that then why not fix it to bind to both ports instead. It sounds like the same amount of work to me. Of course the separate IP is an advantage in that you can isolate the reader traffic from innd without having to wait for your feeds to switch ports. But it does require the availabilty and the ability to set up a second IP. Not something everyone may find practical.
Re: proposal: separate ports for xfer and client access
Author: bill davidsen
Date: Tue, 16 Sep 1997 00:00
Date: Tue, 16 Sep 1997 00:00
35 lines
2154 bytes
2154 bytes
In article <5vk7ik$m09$1@pluto.whowhere.com>, Jerry Aguirre <jerry@rigel.whowhere.com> wrote: | | In article <341955D3.4BA4@unisource.ch>, | Peter Haag <peter@unisource.ch> wrote: | >There could also be a solution, in having two different IP addresses on | >the machine and a separate innd running on these addresses, one for | >feeds and one for readers, so they may profit from the some news spool. This has no advantages I can see over using several ports on the same IP, which is already implemented. | The problem is that innd does not bind to a particular address. It | binds to a port (NNTP) on ANY address. Thus if you run two IP | addresses innd will be listening on both for port 119. | | Alright, so you can modify innd to bind to a particular address. (Yet | another configuration item to set.) But if your going to do that then | why not fix it to bind to both ports instead. It sounds like the | same amount of work to me. It's a trivial change to add a command line option to set the binding address. I did it in 1.4sec for a machine which had both internal and external IP addresses and was not supposed to be visible outside the firewall. -- bill davidsen <davidsen@tmr.com> "I think there's a problem with the server power supply" "Why?" "There were flames coming out of the cooling fan until it stopped." -actual conversation, on a Friday afternoon of course
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