Article View: news.software.nntp
Article #21698Re: *NEW* News Server Software!
From: Matt Dillon
Date: Fri, 19 Sep 1997 00:00
Date: Fri, 19 Sep 1997 00:00
45 lines
3196 bytes
3196 bytes
Inn's single biggest bottleneck is open(). Changing the spool storage
model to reduce the number of physical files by an order of magnitude
would go a long way increasing INN's efficiency, but it still suffers
from a mostly single-threaded model. If *any* I/O operation blocks,
the entire system stalls. This just doesn't scale, and things like
'crosspost' provide only an incremental improvement.
Now, obviously, it is possible to hack INN to get around its problems.
You can say that about *ANY* program which you have the source to. But
being able to hack a program is very different from actually doing it.
Most of the INN hacks I've seen so far are relatively simple.
But without doing a major redesign, these hacks will only go so far,
and unless one rewrites the whole thing from scratch one is still going
to be working from a relatively old, bloated, and already much-hacked
code base. Personally, I prefer a clean start. By choosing the right
topology in the first place, I can do much more to improve diablo's
efficiency then I could ever do with the INN codebase. I changed
a dozen lines of code in 1.12 and turned the precommit cache into a
precommit+general_history cache, doubling diablo's stability under very
heavy loads and quadrupling its efficiency when caught up. I'm going
to change a few more lines ... another 20 or 30 to consolidate
the dnewsfeed parsing in the parent (rather then reparse it in each
child) and that cut out about 45K per diablo process (x 100 = 4500K..
a significant memory savings for machines with lots of feeds).
I'm going to USE that dhistory database bandwidth to implement the reader
portion of the system, add local article caching using the same dhistory
database code, and implement a distribute article/overview fetching
subsystem to back a multi-threaded/multi-process reader, and it will
work because messages will be internally fetched by message-id rather
then by group+article#. Another simply-designed database will handle
article synchronization and overview will be handled through a cache
rather then a prebuild. The newsreading system will be entirely
separate from the newsfeeding system, allowing the news admin to
mix-and-match.
To do all of this with INN's codebase would require a complete rewrite.
-Matt
Technical Details
Message-ID:
<5vunel$6u1$1@flea.best.net>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:
<5vpddn$qlb$1@news5.ais.net> <5vt0pg$e3c$1@earth.execpc.com> <5vu731$1hjk$1@newssvr03-int.news.prodigy.com> <5vukhg$7f2$1@earth.execpc.com>Show Full Headers
Complete Article Headers
Message-ID: <5vunel$6u1$1@flea.best.net> Subject: Re: *NEW* News Server Software! Date: Fri, 19 Sep 1997 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <5vpddn$qlb$1@news5.ais.net> <5vt0pg$e3c$1@earth.execpc.com> <5vu731$1hjk$1@newssvr03-int.news.prodigy.com> <5vukhg$7f2$1@earth.execpc.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: 273909979 X-Trace: 874701079 7247 dillon 206.184.139.132 Organization: Best Internet Communications, Inc - 650 964 BEST Newsgroups: news.software.nntp