🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
86 messages
86 total messages Page 2 of 2 Started by Brad Knowles Mon, 02 Aug 1999 00:00
Page 2 of 2 • 86 total messages
Re: NNTP - building the ultimate server
#39122
Author: meow
Date: Thu, 12 Aug 1999 00:00
41 lines
3134 bytes
Brad Knowles <brad@shub-internet.org> wrote:

>     Really?  I was under the impression that the new xover3 code (or
> whatever it's called) that Clayton contributed had fully replaced all of
> the previous overview code in INN 2.3,

Yep.

> and that it was totally dependant on mmap() in order to function.

It's certainly using mmap, but not in such a horrid way.  There is,
after all, still only one writer.

It does cause one small problem under the Linux implementation, but
it's the sort of thing that I doubt anyone would really notice unless
they were hand-cranking INN to watch how it works (which is how I
noticed it's there).  Specifically, an nnrpd session will hang if it
tries to access the NOV on the last group innd wrote to.  It
"unsticks" if you read another group, then go back in.  In a real
newsfeed with articles constantly streaming in, the window of
opportunity for this to actually happen, and the consequenses of it
happening, are small enough that I haven't been really motivated to
cook up a workaround.

>  Therefore, if mmap() doesn't work on a particular platform, then
> xover3 won't work, and as a result, INN 2.3 as a whole won't work.

If mmap doesn't work at all, you've got a problem.  But, the subset of
the mmap API that's actually being used isn't too hard to come by.

>     Have I missed something?  Is INN 2.3 usuable in any context without
> any of the overview code, other than perhaps as a transit server?

Sure, I've been playing with a couple 2.3 reader boxes for weeks and I
don't do Sun.  I ought also to mention that the OV3 file layout is not
exactly exotic -- just very sensible -- and could certainly be
implemented using traditional stat/read-type stuff.  Mmap is there for
the performance, it's not as though the design can't work without it.


Re: NNTP - building the ultimate server
#39123
Author: Andrew Gierth
Date: Thu, 12 Aug 1999 00:00
21 lines
2350 bytes
>>>>> "Richard" == Richard Michael Todd <rmtodd@intrepid.ecn.ou.edu> writes:

 Richard> This is true.  However, the question of how badly mmap() is
 Richard> actually broken on FreeBSD is another matter.  Marc Fournier
 Richard> has seen lots of lockups on his machine, but I did the work
 Richard> to import the ov3 code into INN on a FreeBSD 3.1-stable box,
 Richard> and have seen a grand total of one lockup/panic in the past
 Richard> 2 months that is attributable to the VM code.

Whereas I get lockups all the time, despite the fact that I think I've
turned off all the obvious mmap options (INN 2.2-stable snapshot of a
couple of months back, on FreeBSD 3.2ish-stable), and that's not even
on a full feed.

(Symptom is that innd hangs forever in 'vmpfw'; only fix is to reboot
aggressively (normal shutdown hangs too).)

-- 
Andrew.

Re: NNTP - building the ultimate server
#39124
Author: Jeremy
Date: Thu, 12 Aug 1999 00:00
21 lines
1579 bytes
Russ Allbery  <rra@stanford.edu> wrote:

> Hm, I'm not sure that's true any more.  Have you compared it against
> Linux 2.2?  I've never been very impressed with Solaris x86; it's
> always felt slower than Linux or *BSD on the same hardware and not had
> as good of hardware support, not to mention sitting in a weird support
> situation within Sun.

On the other hand, raw processing speed isn't everything.  If you're
running PC hardware, your machines are probably CPU-heavy anyway, and
you are wishing for more memory or I/O bandwidth or something like that,
but being 5 or 10 percent slower in raw number-crunching isn't an issue.
Solaris x86 is rock-solid.

-- 
Jeremy  |  jeremy@exit109.com
Don't like the new and "improved" Dejanews?
A kinder, gentler Deja Power Search:
   http://www.exit109.com/~jeremy/news/deja.html

Re: NNTP - building the ultimate server
#39125
Author: Jeremy
Date: Thu, 12 Aug 1999 00:00
12 lines
998 bytes
Brad Knowles <brad@shub-internet.org> wrote:

>     If I'm going to run Solaris, I'll run it on the "native" hardware
> (i.e., SPARC).

Heh... so will I, if I can afford it. :)

-- 
Jeremy  |  jeremy@exit109.com
"Who's scruffy-looking?"  --Han Solo

Re: NNTP - building the ultimate server
#39126
Author: Brad Knowles
Date: Thu, 12 Aug 1999 00:00
33 lines
2524 bytes
In article <aVns3.2836$Qn4.302374@ptah.visi.com>, drechsau+usenet@yuck.net
(Mike Horwath) wrote:

> Solaris with INN is great, but INN, in my current experience, isn't
> all that grand anymore for transit and Diablo works better.

    I'm told (by people whom I respect) that INN 2.2+ w/ CNFS *rocks* as a
transit machine, but that spool/readers probably won't work all that well
w/ CNFS until at least version 2.3.

    However, I can say that I find Diablo administration to be a lot
easier than INN, and I appreciate that most changes automatically take
place within five minutes, whereas with INN you have to explicitly reload
the server.

> Downside is that Diablo under Solaris is pretty horrendous.

    I contend that many applications work best under the OS for which they
were originally designed (or from which recent major improvements have
come).

    This means that Diablo will probably work best under FreeBSD, while
INN 2.3 will work best under Solaris -- in fact, until mmap() support is
improved in other OSes, INN 2.3 will work *only* under Solaris, since you
will no longer be able to disable mmap().

-- 
Brad Knowles <brad@shub-internet.org>  <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
        If you wouldn't take out a one-page ad in the Wall Street
        Journal to say something, then don't say it by email.

Re: NNTP - building the ultimate server
#39128
Author: Kjetil Torgrim Homme
Date: Thu, 12 Aug 1999 00:00
21 lines
2054 bytes
[Russ Allbery]

>   You installed FreeBSD by some method simpler than going to the
>   terminal server hooked to the machine, connecting to the right
>   machine, sending break, typing "boot net - install", and pressing
>   Enter?  This I've got to see.  I would have thought you'd at least
>   have to insert a floppy disk.

Huh, "going", as in "walking"?  I think you mean
  for m in `ng sunclients`; do
    rsh $m '(sleep 2; reboot -- "net - install")&'
  done

I tell you, my thighs and belly are due to this Solaris thing. ;-)


Kjetil T.

("ng" is a small program which dumps the contents of a netgroup to stdout)

Re: NNTP - building the ultimate server
#39129
Author: Russ Allbery
Date: Thu, 12 Aug 1999 00:00
27 lines
2397 bytes
Brad Knowles <brad@shub-internet.org> writes:

> No network ever built could take having hundreds of machines like that
> all installing themselves simultaneously.  If you tried that, the
> install procedure would end up slowing to a crawl on all of them, with
> the end result being that things that should just take a couple of hours
> instead taking perhaps days.

Switched networks... multiple Jumpstart servers... oh, never mind, you've
obviously already made up your mind and introducing facts isn't going to
help.

> Easier, no.  I did actually have to boot with a floppy disk, and I was
> actually required to swap floppy disks.  But I certainly installed much
> faster than that with FreeBSD, even when going across shared terrestrial
> WAN lines through busy NAPs and across international boundaries.

I'm lazy and don't pre-patch the Jumpstart image; of a two hour
installation time, about an hour and a half is installing patches, which
is a slow process.  A prepatched install would take substantially less
time; the operating system itself usually installs in about 10 to 15
minutes.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: NNTP - building the ultimate server
#39132
Author: Brad Knowles
Date: Thu, 12 Aug 1999 00:00
21 lines
2194 bytes
In article <87r9l9ckl2.fsf@slip129-37-108-65.nj.us.ibm.net>, meow
<meowing@banet.net> wrote:

> That's interesting, since the 2.3 code is definitely running on more
> things than Solaris.

    Really?  I was under the impression that the new xover3 code (or
whatever it's called) that Clayton contributed had fully replaced all of
the previous overview code in INN 2.3, and that it was totally dependant
on mmap() in order to function.  Therefore, if mmap() doesn't work on a
particular platform, then xover3 won't work, and as a result, INN 2.3 as a
whole won't work.

    Have I missed something?  Is INN 2.3 usuable in any context without
any of the overview code, other than perhaps as a transit server?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: NNTP - building the ultimate server
#39133
Author: Miquel van Smoorenburg
Date: Thu, 12 Aug 1999 00:00
18 lines
1425 bytes
In article <37b3059d.9860258@207.192.64.14>,  <superdave222@yahoo.com> wrote:
>It sounds like a statement based on fact though.   I feel most OSes
>are built on broken promises.  Linux just follows a long path of other
>OSes and vapor-promises.  

We'll take you serious if:

- you post with your real name and email address
- you take this to an advocacy newsgroup.

Besides, this doesn't have anything to do with news.software.nntp, so go away.

Mike.
-- 
... somehow I have a feeling the hurting hasn't even begun yet
	-- Bill, "The Terrible Thunderlizards"

Re: NNTP - building the ultimate server
#39134
Author: meow
Date: Thu, 12 Aug 1999 00:00
12 lines
1618 bytes
Brad Knowles <brad@shub-internet.org> wrote:

>     This means that Diablo will probably work best under FreeBSD, while
> INN 2.3 will work best under Solaris -- in fact, until mmap() support is
> improved in other OSes, INN 2.3 will work *only* under Solaris, since you
> will no longer be able to disable mmap().

That's interesting, since the 2.3 code is definitely running on more
things than Solaris.


Re: NNTP - building the ultimate server
#39135
Author: Brad Knowles
Date: Thu, 12 Aug 1999 00:00
29 lines
2578 bytes
In article <37aery5egf.fsf@cascade.cs.ubc.ca>, Brian Edmonds
<bedmonds@cs.ubc.ca> wrote:

> I went with Solaris for the comfort of my fellow admins since we're a
> primarily Solaris department (though we're getting more and more Linux), 
> but given my personal experiences with SMP Linux I have no reason to
> doubt it would lose its edge there either.  And things are even faster
> under 2.2, and who knows what 2.4 will be like, due out by 2000.

    INN 2.3 will require mmap(), the implementation of which is still
woefully incomplete under Linux.  Heck, last I heard (a couple of weeks
ago), even FreeBSD couldn't run the current 2.3-experimental code, leaving
the *only* OS that it will run under being Solaris.

    I suspect that if you ran FreeBSD on that same box with INN 2.2, you'd
see performance at least as high as that of Linux, if not higher.  But,
this is just a suspicion, based on my own personal experience.

> I see no reason why my next transit box will not be either Linux or
> FreeBSD, and little reason for it to be Solaris.

    Depends on what you want for transit.  If you want to run Cyclone,
then Solaris would definitely be your best bet.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: NNTP - building the ultimate server
#39138
Author: Andrew Gierth
Date: Fri, 13 Aug 1999 00:00
14 lines
1882 bytes
>>>>> "N" == N  <niels@usenet.bakker.net> writes:

 > In article <87oggcrddm.fsf@erlenstar.demon.co.uk>, Andrew Gierth wrote:
 >> (Symptom is that innd hangs forever in 'vmpfw'; only fix is to reboot
 >> aggressively (normal shutdown hangs too).)

 N> Upgrade to 4.0-CURRENT.

not feasible.

-- 
Andrew.

Re: NNTP - building the ultimate server
#39139
Author: Curt Welch
Date: Fri, 13 Aug 1999 00:00
40 lines
3026 bytes
Etienne <etienne@nospam.fr> wrote:
> Hi all
>
> Curt Welch a �crit :
>
> > toby.douglass@arm.com (Comrade Yum Yum) wrote:
> > > I couldn't agree more.  I'm thinking about writing an NNTP server,
> > > and threading is an obviously sensible and useful programming method
> > > for servicing requests.  If you agree with that, and use threads, the
> > > better your threads are, the better your service will be.  And if
> > > you've no threads at all, you're either running single threaded (not
> > > viable, surely) or you're forced to start a full, heavyweight process
> > > for each request ....
> >
> > Not true at all.  If you are on a single CPU machine, you are running a
> > single thread.  It's only an issue of which way is best for scheduling
> > all the work to do (threads, vs processes, vs select loops, etc).
> > Threads are not the obvious best soulution at all.  They are just one
> > soultion which has it's advantages and disadvantages.
>
>   This is wrong. Once the new thread or the new process is created, then
> switching from one context to another is basically the same.
>   But fork is quite a very heavy work, particularly when it is repeated
> for a high number of connection each second. And this is the same, with
> one or more processors ...
>   So the point is not to know how many processors you have, but how long
> is the process of creating a new thread or a new process.

No.  The point is that fork times and the number of processors are just two
of many design issues that need to be evaluated when designing a news
server. And if you take all the issues into account, then you can build a
good server using threads, or processes, or whaterver.  There are many
soultions and none of them (that I've seen so far) are obviously better
than the others.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP - building the ultimate server
#39140
Author: Greg Andrews
Date: Fri, 13 Aug 1999 00:00
21 lines
1790 bytes
brad@shub-internet.org (Brad Knowles) writes:
>
>    I'm sorry.  It's been my experience that if you haven't worked at AOL,
>you just can't possibly understand the scale of the kinds of problems they
>have.  I'm sure that you consider this to be arrogant in the extreme, but
>this is a view that is pretty universally held at AOL.  And since most
>people do consider it arrogant in the extreme, I don't normally express
>it.  Nevertheless, I believe it to be true.
>

This is true of ISPs in general.  Most (not all) people who have worked
in a corporate or university environment have a large adjustment to
make when they come to work at an ISP.  In this respect, AOL is a huge
magnification of the general ISP case.

  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@wco.com  :::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Re: NNTP - building the ultimate server
#39142
Author: Comrade Yum Yum
Date: Fri, 13 Aug 1999 00:00
25 lines
1703 bytes
Mike Horwath wrote:
> Curt Welch <curt@kcwc.com> wrote:
> : And unlike HTTP, NNTP connections are mostly long lived, so the time
> : required to start a new process is not nearly so important even if you do
> : decide to fork a new process for each connection.
> 
> The way many 'news browsers' do things, forking sucks.
> 
> I can't believe how many connections per second I see on our news
> reader box where they connect, grab an article, disconnect, all rapid
> fire.

Also an excellent point =)

Comrade Yum Yum...

----mailto:toby.douglass@arm.com
"you're such a sensitive boy that sometimes i just wanna slap you really 
hard."
	-- Aimee Lortskell
----http://www.serve.com/douglass/index.shtml



Re: NNTP - building the ultimate server
#39144
Author: Bob Frady
Date: Fri, 13 Aug 1999 00:00
14 lines
1311 bytes


> On a related topic. I have INN 2.2 running on Slackware Linux 2.2.10.

My questions to the newsgroup are:
  Does MMAP work on Linux?
 If so, what is optimal size of partitions for CNFS?

Thanx



Re: NNTP - building the ultimate server
#39146
Author: meow
Date: Fri, 13 Aug 1999 00:00
21 lines
1642 bytes
Bob Frady <bob@after10.com> wrote:

> On a related topic. I have INN 2.2 running on Slackware Linux 2.2.10.

Slackware, having minimal instalation cruft, is nice as a staging area
for building your own Linux system from scratch.  I would not,
however, trust it for a production system.

> My questions to the newsgroup are:
>   Does MMAP work on Linux?

The parts of mmap that INN needs will work on 2.2 kernels.

>  If so, what is optimal size of partitions for CNFS?

I like to keep them smallish, to minimize the amount of data lost if
one gets corrupted.  It also makes life easier when it comes time to
juggle retention times.


Re: NNTP - building the ultimate server
#39148
Author: Russ Allbery
Date: Fri, 13 Aug 1999 00:00
33 lines
3004 bytes
Brad Knowles <brad@shub-internet.org> writes:

> I'm sorry.  It's been my experience that if you haven't worked at AOL,
> you just can't possibly understand the scale of the kinds of problems
> they have.  I'm sure that you consider this to be arrogant in the
> extreme, but this is a view that is pretty universally held at AOL.  And
> since most people do consider it arrogant in the extreme, I don't
> normally express it.  Nevertheless, I believe it to be true.

I'm not trying to argue that AOL should use Jumpstart.  AOL is well into
the "we're so big we're going to have to work with vendors and write our
own stuff to get *anything* done" area, and I'm not questioning that.  I'm
trying to point out that Jumpstart scales to reasonable-sized
installations, and scales about as well as any other out-of-the-box
solution.

I'm quite sure I don't understand the scale of problems that AOL has.  I
also don't *care* about the scale of problems that AOL has, as I have no
intention of ever working for them or any other institution with that kind
of scale.  That's mostly because I enjoy administering a wide variety of
different types of services and have very little desire to do *just* mail
or *just* news or *just* anything, and I would presume that with an
organization that size, they're far more interested in specialists than
people like me who get their fingers in all the pies at the same time.

I'm not suggesting how AOL should run servers, just like I wouldn't
suggest that Supernews run INN.  There is *always* a scaling point beyond
which you have to write your own rules, methods, and software.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: NNTP - building the ultimate server
#39149
Author: Bob Frady
Date: Fri, 13 Aug 1999 00:00
43 lines
2710 bytes

meow wrote:

> Bob Frady <bob@after10.com> wrote:
>
> > On a related topic. I have INN 2.2 running on Slackware Linux 2.2.10.
>
> Slackware, having minimal instalation cruft, is nice as a staging area
> for building your own Linux system from scratch.  I would not,
> however, trust it for a production system.

It is a productions system; however, I run a small ISP and the news-server
usage is quite small. I probably have only about 50 people who actually use
newsgroups. I personally use it more than just about anyone else. I have
never seen more than 2 or 3 readers connected at one time.  And also, as
such, I don't want to budget a large amount of cash for a "better" machine
until I can justify it by customer usage.

>
>
> > My questions to the newsgroup are:
> >   Does MMAP work on Linux?
>
> The parts of mmap that INN needs will work on 2.2 kernels.
>
> >  If so, what is optimal size of partitions for CNFS?
>
> I like to keep them smallish, to minimize the amount of data lost if
> one gets corrupted.  It also makes life easier when it comes time to
> juggle retention times.

Agreed. I'm getting ready to install a 9G SCSI UW drive and was thinking
about 250M-500M-1G partitions. I was wondering where the peak efficiency
would be between small partitions, versus file overhead of larger
partitions. I don't think it would be as much of an issue with MMAP CNFS.
Not very familiar with it, but was going to try to set that up in this
upgrade...

Thanx for the input...


Re: NNTP - building the ultimate server
#39151
Author: Dave Pascoe
Date: Fri, 13 Aug 1999 00:00
16 lines
1745 bytes
Rumor has it that Brad Knowles <brad@shub-internet.org> wrote:

> No network ever built could take having hundreds of machines like that
> all installing themselves simultaneously.  If you tried that, the
> install procedure would end up slowing to a crawl on all of them, with
> the end result being that things that should just take a couple of hours
> instead taking perhaps days.

Huh?  What are you using - 10Mb/s shared hubs, all chained together?  :-)

-- 
Dave Pascoe <dave@mathworks.com>
Voice: 508.647.7362 | FAX: 508.647.4362 | http://www.mathworks.com
PGP fingerprint: 53 AD 71 88 2F AA 45 AC D0 2E 68 91 71 77 39 AF

Re: NNTP - building the ultimate server
#39154
Author: Etienne
Date: Fri, 13 Aug 1999 00:00
35 lines
2484 bytes

Curt Welch a �crit :
> 
> Etienne <etienne@nospam.fr> wrote:
> >   This is wrong. Once the new thread or the new process is created, then
> > switching from one context to another is basically the same.
> >   But fork is quite a very heavy work, particularly when it is repeated
> > for a high number of connection each second. And this is the same, with
> > one or more processors ...
> >   So the point is not to know how many processors you have, but how long
> > is the process of creating a new thread or a new process.
> 
> No.  The point is that fork times and the number of processors are just two
> of many design issues that need to be evaluated when designing a news
> server. And if you take all the issues into account, then you can build a
> good server using threads, or processes, or whaterver.  There are many
> soultions and none of them (that I've seen so far) are obviously better
> than the others.

Curt,

  My precedent point was just to compare process and threads. I was not
talking about the full news server, which, for sure, must take into
account .. let's say .. some other little details   ;-)

Etienne


> 
> --
> Curt Welch                                            http://CurtWelch.Com/
> curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP - building the ultimate server
#39159
Author: Brad Knowles
Date: Fri, 13 Aug 1999 00:00
68 lines
5248 bytes
In article <yl3dxozmhs.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:

> Switched networks... multiple Jumpstart servers... oh, never mind, you've
> obviously already made up your mind and introducing facts isn't going to
> help.

    We were on switched FDDI networks.  In each room (one per row?), we
had multiple DEC FDDI Gigaswitches (not the DEC ATM Gigaswitches, which
sucked rocks).  Lord-only-knows what we had as the actual backbone at that
point.  However, each of the machines was capable of saturating the FDDI
connection they had (some even had multiple FDDI interfaces), and there is
no doubt in my mind that however fast the backbone was at the time, it
could have been saturated.

    I guess we could have had multiple JumpStart servers per row --
perhaps one per rack (you've got to watch saturation of the machine being
used to serve the installations, in addition to all the network traffic
and switch congestion).  But then you're talking about spending more time
building all the JumpStart servers (and moving them from rack to rack to
rack as you install machines) than they'd be likely to ever save you. 
You'd certainly have a hard time building JumpStart servers that were
significantly bigger and capable of handling more simultaneous connections
than many of the machines they'd be serving.


    I'm sorry.  It's been my experience that if you haven't worked at AOL,
you just can't possibly understand the scale of the kinds of problems they
have.  I'm sure that you consider this to be arrogant in the extreme, but
this is a view that is pretty universally held at AOL.  And since most
people do consider it arrogant in the extreme, I don't normally express
it.  Nevertheless, I believe it to be true.

    If you don't believe me, ask Marcus Ranum.  He came down there on a
lark one day (he and his wife just happened to be in the area, and he has
some personal contacts with a number of people who work(ed) there).  When
the conversation started, he was all hyped on good things that could be
done and how web hosting machines could be set up so that the entire OS
disk was on removable physically write-protected media (so an OS upgrade
would involve just swapping the removable media, and they could literally
all be clones of each other, etc...), and all the actual system log and
user data would be written through symlinks to different physical media (I
think he was even talking about WORM, so that you could be sure that you'd
always have a good audit trail).  By the time he left, he was sunk down in
his chair, with his hair seriously frizzed and mumbling at random times
"you're f*cked.  you're f*cked.  you're f*cked."  Bring experts into this
kind of an environment, and by the time they leave, their views of the
world have permanently changed.


    Imagine trying to have a firewall that is capable of handling dozens
of simultaneous OC-192 connections.  While AOL may not currently have
dozens of OC-192 connections to the 'net, this is the kind of scale of
problem you're dealing with, because all the internal and external OC-48
connections they do have will add up to more than dozens of OC-192s.

    Now that T-3s are rather ubiquitous in the US, you'll note that Marcus
is no longer in the business of selling firewalls.  That's because
(according to him), they just don't scale to T-3 levels, much less
anything faster.  Heck, if you're in a 100% switched environment, even
with his NFRs, you may end up needing almost as many sniffers as you have
servers, if the utilization on the servers is high enough.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: NNTP - building the ultimate server
#39160
Author: Russ Allbery
Date: Fri, 13 Aug 1999 00:00
19 lines
1730 bytes
Bob Frady <bob@after10.com> writes:

> Agreed. I'm getting ready to install a 9G SCSI UW drive and was thinking
> about 250M-500M-1G partitions. I was wondering where the peak efficiency
> would be between small partitions, versus file overhead of larger
> partitions. I don't think it would be as much of an issue with MMAP
> CNFS.  Not very familiar with it, but was going to try to set that up in
> this upgrade...

Oh, yeah, that reminds me of another nice advantage of Solaris over Linux
correctly:  Unless they've added better raw device support to Linux
recently, it still can't do what Solaris can do with CNFS (namely just
directly use the raw disk and do away with all of the file/block/inode
overhead).

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: NNTP - building the ultimate server
#39165
Author: Comrade Yum Yum
Date: Fri, 13 Aug 1999 00:00
25 lines
1661 bytes
Curt Welch wrote:
> toby.douglass@arm.com (Comrade Yum Yum) wrote:
[snip]

> And unlike HTTP, NNTP connections are mostly long lived, so the time
> required to start a new process is not nearly so important even if you do
> decide to fork a new process for each connection.

That's an extremely good point.

I have to say, I immediately issued a cancel for my post, because once 
I'd posted it I realized some of what I'd said was quite wrong.  
Unfortunately, the cancel seems to have failed :/

Comrade Yum Yum...

----mailto:toby.douglass@arm.com
"you're such a sensitive boy that sometimes i just wanna slap you really 
hard."
	-- Aimee Lortskell
----http://www.serve.com/douglass/index.shtml



Re: NNTP - building the ultimate server
#39170
Author: Brad Knowles
Date: Sat, 14 Aug 1999 00:00
62 lines
4418 bytes
In article <yl1zd7kwi9.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:

>                                                                        I'm
> trying to point out that Jumpstart scales to reasonable-sized
> installations, and scales about as well as any other out-of-the-box
> solution.

    That statement I can agree with.  I know of at least one place that is
using it quite effectively, and they have now probably a couple hundred
"brick" size PC servers that are even running Solaris x86 (in a very heavy
production e-commerce operation).  To the best of my knowledge, they are
quite happy with the way this works for them.

    Although I only worked there on a temporary basis for one week, I have
kept in touch with some of the people there, and I have a great deal of
respect for their talents and capabilities.  While I might have made
different choices were I put into that situation, there's also the
possibility that I might have either made what ended up being worse
decisions for them, or I might have ended up making the exact same choices
they did.

    Since that didn't happen, I can't really say much more one way or the other.

>            That's mostly because I enjoy administering a wide variety of
> different types of services and have very little desire to do *just* mail
> or *just* news or *just* anything, and I would presume that with an
> organization that size, they're far more interested in specialists than
> people like me who get their fingers in all the pies at the same time.

    They have a strange mix.  Most people tend to do primarily one thing,
but even if you were just administering news, mail, NFS, or database
servers, there's also plenty of "standard" systems administration tasks
that you'd also need to deal with (including writing scripts to automate
different aspects of system maintenance, doing system performance
monitoring/analysis/tuning, etc...).

> I'm not suggesting how AOL should run servers, just like I wouldn't
> suggest that Supernews run INN.  There is *always* a scaling point beyond
> which you have to write your own rules, methods, and software.

    That's also a statement that I agree with.

    However, it was my understanding that what we were talking about was
how AOL did things or could have done things, and in that context I stand
by my previous statements.


    Regardless, I humbly apologize if I have annoyed you or offended you
in any way.

    I respect your skills, knowledge, and talents, and hope that I can
continue to learn from you about how USENET news administration is done in
general, and how INN works in particular.

    Again, my apologies.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: NNTP - building the ultimate server
#39173
Author: Miquel van Smoorenburg
Date: Sat, 14 Aug 1999 00:00
71 lines
3322 bytes
In article <ylso5mj564.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Oh, yeah, that reminds me of another nice advantage of Solaris over Linux
>correctly:  Unless they've added better raw device support to Linux
>recently, it still can't do what Solaris can do with CNFS (namely just
>directly use the raw disk and do away with all of the file/block/inode
>overhead).

ftp://ftp.cistron.nl/pub/people/miquels/kernel/v2.2/rawfs-0.6.tar.gz

It's a loadable module, you don't even need to reboot before you
can start using it. I've been running it on our news servers for
over a year now (there's also a 2.0 version) and it works fine.

Here is the README:

                        README for RawFS 0.6

0. INTRODUCTION

Rawfs is a filesystem that shows you the partitions on a disk as
files. It can be used, for example, to do mmap() on block-
devices (which Linux doesn't support directly).

The files are numbered from 0 .. max_partitions. "0" is always the
whole disk. If the disk has partitions in it, you will see them as
files 1 and up. If you don't mount a whole disk, but for example
only /dev/hda1, you will only see file "0".

On 32bit systems such as the i386, the maximum file size is limited
to 2GB. This is because all access goes through the pagecache, which
is (as part of the memory subsystem) limited to 32bits.

1. COMPILING

Edit the Makefile and adjust the path to your kernel headers. You may want
to remove -DMODVERSIONS if you don't have module-versioning turned on
in your kernel (if unsure just try). Type "make". The module "rawfs.o"
should now be built.

This module was tested under 2.2.1, 2.2.7 and 2.2.9. The 0.5 version works
for 2.2.x kernels where x < 7, the 0.6 version works on 2.2.7+. For a
version that runs under the 2.0.x (x >= 36) kernels, use rawfs-0.4.tar.gz


2. USAGE

First insmod the module:

        insmod rawfs.o

Then mount the partition(s):

        mount -traw -ooptions /dev/hda /mnt

Options:
        uid=xxx         User that owns root directory and files.
        gid=xxx         Ditto for group
        umask=xxx       Umask. Default is 077.
        show=1+3+...    Use if you only want to make certain
                        files visible.


        rawfs  0.6  29-Apr-1999  miquels@cistron.nl

Mike.
-- 
... somehow I have a feeling the hurting hasn't even begun yet
	-- Bill, "The Terrible Thunderlizards"

Re: NNTP - building the ultimate server
#39175
Author: Wolfgang Schelongowski
Date: Sat, 14 Aug 1999 00:00
19 lines
1796 bytes
In <ylpv0vauai.fsf@windlord.stanford.edu>
 Russ Allbery <rra@stanford.edu> writes:

>Linux running Apache testing out slower than NT had quite a bit to do with
>the fact that Apache is optimized for a real web load, not an artificial
>insane page load that saturates quad-Ethernet.  Apache's process hunt
>group concept *probably* isn't inherently slower than threads.

Those of you who can read German might want to read c't 13/1999,
page 186 etc. (Linux und NT als Web-Server im Test) for a realistic 
comparison. It's probably also available on http.//www.heise.de/.
Result: Linux is better than NT except for delivering the same page
over a fast connection.
-- 
The weaknesses and the strengths of computer networking derive from the same
feature: it is easy to send messages to anyone who has access to the network.
  -- Donald A. Norman, The Trouble with Networks (Datamation 1/1982)

Re: NNTP - building the ultimate server
#39190
Author: Russ Allbery
Date: Mon, 16 Aug 1999 00:00
24 lines
1465 bytes
Miquel van Smoorenburg <miquels@cistron.nl> writes:

> ftp://ftp.cistron.nl/pub/people/miquels/kernel/v2.2/rawfs-0.6.tar.gz

> It's a loadable module, you don't even need to reboot before you
> can start using it. I've been running it on our news servers for
> over a year now (there's also a 2.0 version) and it works fine.

> Here is the README:

>                         README for RawFS 0.6

> 0. INTRODUCTION

> Rawfs is a filesystem that shows you the partitions on a disk as
> files. It can be used, for example, to do mmap() on block- devices
> (which Linux doesn't support directly).

Oh, *very* nice.  I hope this will be rolled into the core kernel.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: NNTP - building the ultimate server
#39195
Author: bill davidsen
Date: Mon, 16 Aug 1999 00:00
30 lines
2222 bytes
In article <87k8r0b3ka.fsf@slip129-37-108-65.nj.us.ibm.net>,
meow  <meowing@banet.net> wrote:
| Bob Frady <bob@after10.com> wrote:
| 
| > On a related topic. I have INN 2.2 running on Slackware Linux 2.2.10.
| 
| Slackware, having minimal instalation cruft, is nice as a staging area
| for building your own Linux system from scratch.  I would not,
| however, trust it for a production system.

I have about 40 SW systems running, and I really like it better than
other distributions, at least for servers run by folks who have a clue.
All the GUI stuff is very nice for end users, and everybody is getting
better at it. But when I want to get a few lines changed in a config
file, trying to get a GUI to change two lines in a config file is like
fly tying in boxing gloves. And if the package install process lack all
the prerequisite stuff of rpm (you can use them should you wish), it
will never try to up/down/de grade my other packages, possibly to a
version having undesired features.

As for "trust it," Linux is Linux. The only issue is system admin, and
you need to choose how much you want to trust automation.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: NNTP - building the ultimate server
#39200
Author: bill davidsen
Date: Mon, 16 Aug 1999 00:00
29 lines
2227 bytes
In article <37B17055.89EBC5A0@nospam.fr>, Etienne  <etienne@nospam.fr> wrote:

|   This is wrong. Once the new thread or the new process is created, then
| switching from one context to another is basically the same.

Yes. No. You can have kernel level process switch (fork), kernel level
thread switch, and user level "context switch" to consider. User level
becomes less desirable as the price of SMP machines goes down and the
reliability of SMP o/s goes up.

|   But fork is quite a very heavy work, particularly when it is repeated for a
| high number of connection each second. And this is the same, with one or more
| processors ...
|   So the point is not to know how many processors you have, but how long is the
| process of creating a new thread or a new process.

As above, using user level threads keeps overhead very low on a
uniprocessor, but doesn't allow other processors to work. The time to
create a process or thread and the time to context switch are o/s
dependent. Some do it really well, Linux and NT, some do it well,
freeBSD, and some pay a high penalty for context switch at the kernel
level.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.

Re: NNTP - building the ultimate server
#39201
Author: bill davidsen
Date: Mon, 16 Aug 1999 00:00
34 lines
2593 bytes
In article <7opp11$b3r@netaxs.com>, Avi Freedman <freedman@netaxs.com> wrote:
| Comrade Yum Yum (toby.douglass@arm.com) wrote:
| 
| : I couldn't agree more.  I'm thinking about writing an NNTP server, and 
| : threading is an obviously sensible and useful programming method for 
| : servicing requests.  If you agree with that, and use threads, the better 
| : your threads are, the better your service will be.  And if you've no 
| : threads at all, you're either running single threaded (not viable, 
| : surely) or you're forced to start a full, heavyweight process for each 
| : request - which, as I understand matters, was the one of the two reasons 
| : Linux running Apache was slower than NT; the need to run a new process 
| : for each request and the lack of multithreaded TCP/IP.

I'm not sure that's been true for some years, either. Tests run by folks
who don't care which o/s looks better find little overall difference
between Linux and NT in threads. The thread creation is marginally
faster in one and context switching is marginally faster in the other,
but in general comparing a stable Linux release with NT doesn't show
much to choose.

| Or just sit in a select() loop, servicing tens or hundreds per process.

Nope, as the number of fd's gets higher the performance goes to hell
(relatively), because the search is order N. I believe N is about 20 for
BSD, see the Diablo stuff for some references, I believe that's where I
saw the latest set of measurements.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: NNTP - building the ultimate server
#39220
Author: Avi Freedman
Date: Tue, 17 Aug 1999 00:00
28 lines
1733 bytes
bill davidsen (davidsen@tmr.com) wrote:

: | Or just sit in a select() loop, servicing tens or hundreds per process.
: 
: Nope, as the number of fd's gets higher the performance goes to hell
: (relatively), because the search is order N. I believe N is about 20 for
: BSD, see the Diablo stuff for some references, I believe that's where I
: saw the latest set of measurements.
: 
: bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc

But searching is quick compared to full-weight context switches; don't
know about thread switches.

Even doing 20 means you can support 1000 readers with only 50 processes.

Doing tests with some custom code it appears that a few normal processes 
with 200 connections per in a select() loop is actually faster under Linux 
and BSD than having a separate thread per reader, and a lot more portable
to boot...

I'll look at the diablo stuff again; I didn't remember seeing measurements
and discussion in the docs; maybe in the code...

Avi


Re: NNTP - building the ultimate server
#39235
Author: Simon Lyall
Date: Tue, 17 Aug 1999 00:00
40 lines
2918 bytes
bill davidsen <davidsen@tmr.com> wrote:
>I have about 40 SW systems running, and I really like it better than
>other distributions, at least for servers run by folks who have a clue.
>All the GUI stuff is very nice for end users, and everybody is getting
>better at it. But when I want to get a few lines changed in a config
>file, trying to get a GUI to change two lines in a config file is like
>fly tying in boxing gloves. And if the package install process lack all
>the prerequisite stuff of rpm (you can use them should you wish), it
>will never try to up/down/de grade my other packages, possibly to a
>version having undesired features.

Where I was we were very much a slackware shop until about 4 months ago.
The problem with slackware is that package manager is way to primitive a
tool for large number of machines. For example when the bug was found
with ssh 1.2.26 a little while back we had to manually login to every
machine and manually replace the binaries with the patched version. Even
with only 60 machines this took us over a day. With the hundreds of
machines some people here have it would have taken a week during which
time there was a potential security hole in each machine.

With the debian based system we are moving to now we just need to update a
central package and then "apt-get install ssh" on each machine (possibly
automated but not this week ) and it's done. This enables us to have a
single "image" of what things are supposed to look like and concentrate on
the extra bits rather than the day to day.

It's not as high end as some of the stuff people around here are running
but it should scale okay for our ends. 

The pre-supplier packages for most things are pretty good, in some cases
we are working on our own though. I notice that debian's INN doesn't have
perl support compiled in and diablo is way out of date. 

-- 
Simon J. Lyall  |  Very Busy  |  Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention."  |  MT.

Important. Anti-spam measures in use. Spammers, please add "nospam" to address.

Re: NNTP - building the ultimate server
#39282
Author: ellis
Date: Thu, 19 Aug 1999 00:00
22 lines
1704 bytes
In article <MPG.121e23d9efcab2db989cad@news.earthlink.net>,
Comrade Yum Yum <toby.douglass@arm.com> wrote:

>> And unlike HTTP, NNTP connections are mostly long lived, so the time
>> required to start a new process is not nearly so important even if you do
>> decide to fork a new process for each connection.
>
>That's an extremely good point.
>
>I have to say, I immediately issued a cancel for my post, because once 
>I'd posted it I realized some of what I'd said was quite wrong.  

Actually I see *lots* of readers creating new connections very quickly.
Netscape (for one) closes the tcp connection to abort the download of
an article.  People scanning through dirty pictures in alt.binaries often
hit the next button before the download is complete.  It can be very
hard on the server.

--
http://www.fnet.net/~ellis/photo/

Re: NNTP - building the ultimate server
#39394
Author: Russ Allbery
Date: Tue, 24 Aug 1999 00:00
34 lines
2882 bytes
Brad Knowles <brad@shub-internet.org> writes:

> They have a strange mix.  Most people tend to do primarily one thing,
> but even if you were just administering news, mail, NFS, or database
> servers, there's also plenty of "standard" systems administration tasks
> that you'd also need to deal with (including writing scripts to automate
> different aspects of system maintenance, doing system performance
> monitoring/analysis/tuning, etc...).

Sure, but they're all oriented towards the same thing.  :)

I'm currently doing AFS volume releases for a TeX installation, just
finished compiling binutils for eight platforms after reviewing what
combination of vendor and GNU tools should work best with gcc 2.95.1, am
writing our own package management system in Perl to handle the site-wide
software installation, have a couple of pending changes to make to bring
our Kerberos 5 production cell fully on-line, am working on debugging a
problem with our new IMAP servers, and am getting ready to add a new news
feed to my test server.

I thrive on that sort of cross-application, cross-platform workload.  I'd
go nuts working on just the same thing all the time.

> Regardless, I humbly apologize if I have annoyed you or offended you in
> any way.

Nah, I was just snippy.  Sorry about that.  I do understand your point,
and I don't have experience with systems on the scale of what you're
talking about.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Page 2 of 2 • 86 total messages
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