Thread View: news.software.nntp
11 messages
11 total messages
Started by Avi Freedman
Thu, 02 Jan 1997 00:00
Single-process NNRPd for hundreds of users
Author: Avi Freedman
Date: Thu, 02 Jan 1997 00:00
Date: Thu, 02 Jan 1997 00:00
21 lines
1125 bytes
1125 bytes
Besides ACME's java-based multi-threaded nnrpd, is anyone aware of, or aware of an effort to build, a single-process (or multithreaded) NNRPd? Basically, an NNRPd that operates like squid, spider, or a mud (or inn, with a huge-ass select loop on tens or hundreds of connections) is what I'm looking for. No single operation should take so long as to slow down the reading of the other connected users, I think, so the logic shouldn't be too complicated. We'll probably write one if one doesn't exist. Running the ACME one in a Java interpreter is not my idea of fun. Thanks, Avi
Re: Single-process NNRPd for hundreds of users
Author: Avi Freedman
Date: Thu, 02 Jan 1997 00:00
Date: Thu, 02 Jan 1997 00:00
46 lines
2069 bytes
2069 bytes
Jef Poskanzer (jef@acme.com) wrote: : freedman@netaxs.com (Avi Freedman): : }We'll probably write one if one doesn't exist. Running the ACME one : }in a Java interpreter is not my idea of fun. No disrespect intended - I plan to run it on a Sparc 2 to see how well it performs with a few hundred clients, mounting things via NFS. If it (or whatever multi-threaded or single-process nnrpd) can do that well, I hope to set up a few dedicated Sparc 2s to it. Or Sparc 10 model 41-type machines max. And I don't want to lose overhead to running things in an interpreter. I thank you for the work you've done on this... : a) Don't knock it if you haven't benchmarked it. Java performs : just fine for I/O, which is handled natively. The Java nnrpd is : admittedly too slow for things like parsing the active file, : but due to aggressive caching it doesn't have to do those things : very often. Do you have a Java interpreter you like for SunOS? : b) Just yesterday I used the Toba Java-to-native compiler to : generate a standalone Solaris executable of the Java nnrpd. The : abovementioned slow things run nine times faster, about as fast : as the C version. I'll continue posting updates on this project. I'll see if there's a compiler for SunOS - if there is, I may try it shortly... : c) I have heard rumor of an upcoming multi-threaded C nnrpd. : : But it won't freeware. : --- : Jef Thanks, Avi
Re: Single-process NNRPd for hundreds of users
Author: Brad Templeton
Date: Thu, 02 Jan 1997 00:00
Date: Thu, 02 Jan 1997 00:00
32 lines
1988 bytes
1988 bytes
Long before the days of huge loads on servers I always thought a single process NNRPd type program would be a great win just for the ability to cache. In particular what it woudl cache, or regularly rebuild, would be the XOVER data for the most recent news in the most popular newsgroups. And it wouldn't merely cache this the way a disk cache does, but have it in ram in advance of my reading it, so that all group menus were instantaneous unless I hadn't read the group in a long time. With ram prices as they are these days, even with 200,000 articles per day at say 150 bytes per article for the overview info (with some decent compression, easy on the date and numeric fields, plus mapping message-ids to ints in Reference lines) that's just 30 megs of ram per day, so for the modern cost of about $500 for 128 megs of ram you could hold the overview for your entire spool, plus more to boot. Enough, for example, so that header-based killfile predicates could be done very fast, always served from ram. This is good even if you don't have a lot of users, and of course if you do it's even better. You only go to disk to serve actual articles. You could even cache the most popular articles too, but disk caches are decent at doing that. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: Single-process NNRPd for hundreds of users
Author: Jef Poskanzer
Date: Thu, 02 Jan 1997 00:00
Date: Thu, 02 Jan 1997 00:00
25 lines
1555 bytes
1555 bytes
freedman@netaxs.com (Avi Freedman):
}We'll probably write one if one doesn't exist. Running the ACME one
}in a Java interpreter is not my idea of fun.
a) Don't knock it if you haven't benchmarked it. Java performs
just fine for I/O, which is handled natively. The Java nnrpd is
admittedly too slow for things like parsing the active file,
but due to aggressive caching it doesn't have to do those things
very often.
b) Just yesterday I used the Toba Java-to-native compiler to
generate a standalone Solaris executable of the Java nnrpd. The
abovementioned slow things run nine times faster, about as fast
as the C version. I'll continue posting updates on this project.
c) I have heard rumor of an upcoming multi-threaded C nnrpd.
But it won't freeware.
---
Jef
Jef Poskanzer jef@acme.com http://www.acme.com/jef/
"There are some who call me... Tim?"
Re: Single-process NNRPd for hundreds of users
Author: Doug Sewell
Date: Fri, 03 Jan 1997 00:00
Date: Fri, 03 Jan 1997 00:00
28 lines
1529 bytes
1529 bytes
Thus spake Brad Templeton <brad@clari.net>: >Long before the days of huge loads on servers I always thought a >single process NNRPd type program would be a great win just for >the ability to cache. > >In particular what it woudl cache, or regularly rebuild, would be >the XOVER data for the most recent news in the most popular newsgroups. Gee, this sounds like DNews. One big server process, cached XOVER data... Actually, while I'm generally happy with INN, I helped a site set up DNews and was very pleased with the results. With a few changes to it, I could give it some consideration here (I've already discussed these needs with Netwin). If I recall right, there IS a limit of 300 or so connections for Solaris. -- Doug Sewell (doug@cc.ysu.edu) (http://cc.ysu.edu/~doug/) E-mail advertisers: put me on your "don't call, don't e-mail" list. You are your own worst critic. Strive for excellence, not perfection.
Re: Single-process NNRPd for hundreds of users
Author: Avi Freedman
Date: Fri, 03 Jan 1997 00:00
Date: Fri, 03 Jan 1997 00:00
17 lines
904 bytes
904 bytes
Brad Templeton (brad@clari.net) wrote: : Long before the days of huge loads on servers I always thought a : single process NNRPd type program would be a great win just for : the ability to cache. <snip> : Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net Here here. Avi
Re: Single-process NNRPd for hundreds of users
Author: Jef Poskanzer
Date: Fri, 03 Jan 1997 00:00
Date: Fri, 03 Jan 1997 00:00
14 lines
1051 bytes
1051 bytes
brad@clari.net (Brad Templeton):
}Long before the days of huge loads on servers I always thought a
}single process NNRPd type program would be a great win just for
}the ability to cache.
Well, sure. That's why the one I wrote does lots of caching.
---
Jef
Jef Poskanzer jef@acme.com http://www.acme.com/jef/
"It's the cows."
Re: Single-process NNRPd for hundreds of users
Author: Larry Snyder
Date: Mon, 06 Jan 1997 00:00
Date: Mon, 06 Jan 1997 00:00
16 lines
1172 bytes
1172 bytes
Doug Sewell wrote: > Actually, while I'm generally happy with INN, I helped a site set up > DNews and was very pleased with the results. With a few changes to > it, I could give it some consideration here (I've already discussed > these needs with Netwin). > > If I recall right, there IS a limit of 300 or so connections for > Solaris. how can this be changed? - and is this *total connections of all types*? larry
Re: Single-process NNRPd for hundreds of users
Author: Simon Burr
Date: Mon, 06 Jan 1997 00:00
Date: Mon, 06 Jan 1997 00:00
17 lines
1404 bytes
1404 bytes
Doug Sewell wrote: > If I recall right, there IS a limit of 300 or so connections for > Solaris. I don't think so; we have a Solaris 2.5.1 machine here which is happily coping with almost 400 or so readers with no problems. With respect to the monolithic nnrpd, I think that it would be a good idea. If threads are used, it would also be a good win for multi-processor machines. Caching would also improve things; XOVER data and Message-ID to spool location mappings are two things which spring to mind. Its something I'm tempted to do in my Copious Free Time (tm) at home just for the practise with threads. However, since I've got lots of other things on right now... *sigh*
Re: Single-process NNRPd for hundreds of users
Author: Avi Freedman
Date: Tue, 07 Jan 1997 00:00
Date: Tue, 07 Jan 1997 00:00
27 lines
1381 bytes
1381 bytes
Larry Snyder (larry@fpmbh.com) wrote: : Doug Sewell wrote: : : > Actually, while I'm generally happy with INN, I helped a site set up : > DNews and was very pleased with the results. With a few changes to : > it, I could give it some consideration here (I've already discussed : > these needs with Netwin). : > : > If I recall right, there IS a limit of 300 or so connections for : > Solaris. : : how can this be changed? - and is this *total connections of all types*? : : larry I think this can be changed in /etc/system (as I recall the default is 400). Our news box peaks at 800 tcp connections (as reported by netstat), so I suspect that we've passed the 300 limit. Avi, who still hates Solaris
Re: Single-process NNRPd for hundreds of users
Author: bill davidsen
Date: Wed, 08 Jan 1997 00:00
Date: Wed, 08 Jan 1997 00:00
25 lines
1820 bytes
1820 bytes
In article <32D11C10.6209@bpfh.net>, Simon Burr <simes@bpfh.net> wrote: | With respect to the monolithic nnrpd, I think that it would be a good | idea. If threads are used, it would also be a good win for multi-processor | machines. Caching would also improve things; XOVER data and Message-ID to | spool location mappings are two things which spring to mind. Careful! Threads may be at user level and all share a single dispatch. Threads at kernel, called "lightweight processes" by both some early ACM articles and the series in _SunExpert_ last fall, will use multiple processors. Somewhere I have a demo program using PO)SIX threads which I linked with two libraries, and which demonstrates this on a dual PPro-200 Linux box. The LWP version uses all the cycles and run (no surprise) in half the time. -- bill davidsen <davidsen@tmr.com> Some people hack for fun, some because they want things their way, some don't because they can't, and some because they can't be bothered. Some can make anything work, some can but would rather not, and some could misconfigure a bowling ball.
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