🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by David M. Meyer 503/346-1747 Mon, 09 May 1994 21:40
scaling your news server
#2563
Author: David M. Meyer 503/346-1747
Date: Mon, 09 May 1994 21:40
32 lines
2058 bytes
	Hi,

	We have been having an ongoing discussion here about how
	best to scale up our news server (innd). The two problems
	we are experiencing appear to be (i). too many processes
	(not hard on a sparc 1+) and (ii). pegged disk (io bound).

	The first problem seems to be easily solved by getting
	some hardware that has better support for, among other
	things, context switching. The second problem, if it
	really exists, seems harder. It doesn't seem reasonable
	to have to scale the size of your news partition with the
	volume of news, while is is desirable to keep a single
	news partition. What are people doing about this?

	Does anyone have any words of wisdom about these points?
	Also, what are people doing about multi-partition news?

	Thanks,

	Dave

	David M. Meyer			Voice:     +1-503-346-1747
	Senior Network Engineer		Pager:	   +1-503-342-9458
	Office of University Computing	Cellular:  +1-503-954-1103
	Computing Center		FAX:	   +1-503-346-4397
	University of Oregon		Internet:  meyer@ns.uoregon.edu
	1225 Kincaid
	Eugene, OR 97403


Re: scaling your news server
#2568
Author: Paul Pomes
Date: Tue, 10 May 1994 17:15
25 lines
1968 bytes
meyer@frostbite-falls.uoregon.edu (David M. Meyer 503/346-1747) writes:

>	The first problem seems to be easily solved by getting
>	some hardware that has better support for, among other
>	things, context switching. The second problem, if it
>	really exists, seems harder. It doesn't seem reasonable
>	to have to scale the size of your news partition with the
>	volume of news, while is is desirable to keep a single
>	news partition. What are people doing about this?

Keep the active and history files on a separate spindle from the articles.
Make sure you have enough memory to keep innd resident as well as most
of the active reading processes.  Otherwise part of your disk traffic
competing with article transfer will be paging of news processes.  For
further help, split alt.* or comp.* onto a third spindle with a symlink
back under /var/news.  Buy a Sparc-10.  If you have disk to waste (and
I do mean waste with 4K disk blocks), look at the IBM RS-6000/250.  HP
has some very impressive hardware as well.

/pbp
-- 
		 Alan Frederick Engelbrecht-Wiggans
		quem di diligunt, adolescens moritur

Re: scaling your news server
#2569
Author: ghudson
Date: Tue, 10 May 1994 17:17
46 lines
3187 bytes
David M. Meyer 503/346-1747 (meyer@frostbite-falls.uoregon.edu) wrote:
: 	Hi,

: 	We have been having an ongoing discussion here about how
: 	best to scale up our news server (innd). The two problems
: 	we are experiencing appear to be (i). too many processes
: 	(not hard on a sparc 1+) and (ii). pegged disk (io bound).

: 	The first problem seems to be easily solved by getting
: 	some hardware that has better support for, among other
: 	things, context switching.

Another solution, which I'm working on for MIT, is to modify the
software to use one process for each N connections (N ~= 10) rather
than one process for each connection.

The tradeoff here is that a multiplexing process can subject clients
to noticeable delays, if other clients on the same process are running
expensive queries.  Even if you do a really good job of multiplexing
your queries, Unix does not provide a mechanism for non-blocking file
I/O, so you're still going to have trouble with delays if you multiplex
too many connections in the same process.  (I've been experimenting
with server architectures involving subprocesses for file I/O to avoid
this problem, but that's separate from my work on modifying inn.)

I'm fairly convinced that forking off a process for each connection is
not a feasible strategy for high-load situations and even for some low-
load situations.  At MIT, we regularly have 150-180 simultaneous
connections, and our news servers (Decstations running Ultrix) don't
have enough memory for all those 1MB nnrpd processes.  If too many nnrpd
processes start up at the same time, then the working set becomes large
enough to flood the available physical memory, and the system can't
recover from thrashing until the demand has gone down significantly (a
few hours, in our experience).

As for the pegged disk: if your hardware simply can't keep up with the
ork required of it, then clearly software won't help (except insofar as
it can reduce that workload through caching and the like).  You can
distribute your news server using inn's slave mode, or you can buy more
disks and disk controllers.  We've been using two to three disks for
news storage at MIT for a while now, and it works fine except for a few
problems with makehistory.

--GBH

Re: scaling your news server
#2571
Author: Bengt Larsson
Date: Tue, 10 May 1994 20:21
17 lines
1665 bytes
In news.admin.technical, ghudson@glacier.mit.edu wrote:

>The tradeoff here is that a multiplexing process can subject clients
>to noticeable delays, if other clients on the same process are running
>expensive queries.  Even if you do a really good job of multiplexing
>your queries, Unix does not provide a mechanism for non-blocking file
>I/O, so you're still going to have trouble with delays if you multiplex
>too many connections in the same process.  (I've been experimenting
>with server architectures involving subprocesses for file I/O to avoid
>this problem, but that's separate from my work on modifying inn.)

Here's an idea. For people who need max capacity for newsreading,
make a commercial NNTP server and base it on Windows NT. 

Whatever you think of NT, it would be near-ideal for this. 

Re: scaling your news server
#2595
Author: Phil Trubey
Date: Mon, 16 May 1994 18:41
16 lines
1411 bytes
In article <2qoqbp$27t@ftp.uu.net>, Bengt Larsson <bengtl@maths.lth.se> wrote:
>
>Here's an idea. For people who need max capacity for newsreading,
>make a commercial NNTP server and base it on Windows NT. 
>
>Whatever you think of NT, it would be near-ideal for this. 
>

Huh?  Now why would NT be any better than Unix for this sort
of task?  Extremely curious...
-- 
Phil Trubey                 | Providing independent consulting in the 
NetPartners                 |   application of Internet technology.
E-mail: phil@netpart.com    |   Home Page: http://www.netpart.com/

Re: scaling your news server
#2603
Author: Bengt Larsson
Date: Wed, 18 May 1994 18:36
28 lines
1952 bytes
In news.admin.technical, phil@netpart.com (Phil Trubey) wrote:
>In article <2qoqbp$27t@ftp.uu.net>, Bengt Larsson <bengtl@maths.lth.se> wrote:
>>
>>Here's an idea. For people who need max capacity for newsreading,
>>make a commercial NNTP server and base it on Windows NT. 
>>
>>Whatever you think of NT, it would be near-ideal for this. 
>>
>
>Huh?  Now why would NT be any better than Unix for this sort
>of task?  Extremely curious...

The problem was that for newsreading via NNTP, you may either start a
process per newsreader on the server, or try to do multitasking within
one server process. 

In the message I responded to, someone had tried the latter. There are
problems with it, like you get message delays because among other
things you can't do asynchronous I/O. If you have one process for
each reader, that may be quite a lot of processes using a lot of
memory. 

For a newsreading server, it would be good to have multithreading,
good disk cache, asynchronous I/O, and of course TCP/IP.
Multiprocessing (SMP) doesn't hurt either. NT has these,
most Unix variants haven't (I'm not sure about Solaris though).

Re: scaling your news server
#2604
Author: ghudson
Date: Wed, 18 May 1994 18:42
40 lines
2592 bytes
Phil Trubey (phil@netpart.com) wrote:
: In article <2qoqbp$27t@ftp.uu.net>, Bengt Larsson <bengtl@maths.lth.se> wrote:
: >
: >Here's an idea. For people who need max capacity for newsreading,
: >make a commercial NNTP server and base it on Windows NT. 
: >
: >Whatever you think of NT, it would be near-ideal for this. 
: >

: Huh?  Now why would NT be any better than Unix for this sort
: of task?  Extremely curious...

My guess is that Bengt was referring to kernel support for threads.
Really, all that's needed is some form of support for non-blocking
file I/O within a single address space; multiple kernel threads per
address space is one way of going about that.  (Windows NT isn't
the only operating system which provides kernel thread support, of
course.)

Although most Unix-like operating systems don't provide any way of
doing non-blocking file I/O, you can simulate it somewhat
inefficiently using IPC and some number of subprocesses.  This is in
some sense how your average nfsd works, although that's a slightly
different picture.

Threads are a convenient way to make sure that no single client
request takes too much time, and they allow you to avoid the big ugly
select() loop that makes most network servers difficult to write or
understand.  On the other hand, not everyone likes to think about
asynchronous flows of control accessing the same data, so threads
aren't for everyone.

(I'm still mystified as to why such an NNTP server should be
commercial, though.  With appropriate tools, constructing a news
server which operates as a single process should require no more
effort than has gone into existing news servers.)

--GBH

Re: scaling your news server
#2605
Author: David Barr
Date: Wed, 18 May 1994 22:54
17 lines
1465 bytes
In article <2rdn83$57d@ftp.uu.net>, Bengt Larsson <bengtl@maths.lth.se> wrote:
>For a newsreading server, it would be good to have multithreading,
>good disk cache, asynchronous I/O, and of course TCP/IP.
>Multiprocessing (SMP) doesn't hurt either. NT has these,
>most Unix variants haven't (I'm not sure about Solaris though).

Not really true.  Most current-generation UNIX variants have
all these (many have SMP too).   They're not hard to find at all.

It's just a matter of rewriting INN to be thread-based instead
of forking a process for each reader.

NT != "New Technology"

--Dave

Re: scaling your news server
#2608
Author: Brad Templeton
Date: Thu, 19 May 1994 23:02
15 lines
1600 bytes
Most Unix operating systems allow the code and pure parts of the data to
exist in memory only once, making multiple copies only of the data that changes.

One way to get efficient reading would be cache the last few days worth of
articles less than a certain size.  (Set the size so that you can keep a few
days.)   You would then pull almost all articles from the cache and be able
to handle most reading sessions with little disk i/o.

Doing it all with one process multi-threaded is not a bad way to do it,
but not the only way.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.
The net's #1 electronic newspaper (circulation 60,000) -- info@clarinet.com

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