Article View: news.software.nntp
Article #21785Diablo 1.12 released (news transit software)
From: Matt Dillon
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
192 lines
9572 bytes
9572 bytes
Diablo 1.12, news transit software (think: Buffy, vampire slayer :-)),
has been released. The release notes for the last two releases are
included below.
This is a medium sized release. Mainly bug fixes and a rounding-out
of features. A few major improvements in stability under extreme
loads and with efficiency.
http://www.backplane.com/diablo/
-Matt
Diablo V1.12
The spam cache is turned on by default, for real this time.
Added USE_PCOMMIT_SHM, USE_PCOMMIT_RW_MAP, DO_PCOMMIT_POSTCACHE,
USE_SPAM_SHM, and USE_SPAM_RW_MAP. *_RW_MAP causes the diablo to
use a shared r/w map rather then a read-only/lseek+write() mmap for
the precommit and/or spam caches. << this will significantly improve
the performance and stability of diablo >>. If you set
USE_PCOMMIT_SHM, Diablo will use SYSV shared memory rather then a file
mmap for the precommit cache. If you set USE_SPAM_SHM, Diablo will
use SYSV shared memory rather then a file mmap for the spam cache, but
it will not be non-volatile storage so if you kill and restart diablo,
the spam cache will get reset. If you have sysv shared memory, you
want to set USE_PCOMMIT_SHM and DO_PCOMMIT_POSTCACHE at the very least.
When shared memory is used for the spam filter, the spam.cache file
(if it exists) will be loaded into shared memory when diablo is started
and written out when the master diablo server exits.
DO_PCOMMIT_POSTCACHE tells diablo to use the precommit cache to also
cache dhistory lookups and commits. It is not suggested that you
use this feature unless you also set USE_PCOMMIT_SHM or at least
set USE_PCOMMIT_RW_MAP. Many lookups will hit the precommit cache
and thus avoid hitting the dhistory file, greatly reducing internal
kernel filesystem lock contention and disk I/O on the dhistory file
The FreeBSD 2.2.x, IRIX, and Solaris config automatically
turn on the new precommit features.
Casts the pointer argument to setsockopt() to void * to avoid
compiler warnings on solaris (which still uses arcane 'char *' in
its prototypes rather then 'void *').
The bytes= logging for the marks by dnewslink was incorrect, it was
logging cumulative bytes rather then deltas for the marks.
Added 'rtflush' to dnewsfeeds. This option causes the queue file to
be flushed on every line rather then buffered. Useful when used with
'realtime' in dnntpspool.ctl.
Added Path: name checking. If the first element of the Path:
received by an article does not match any 'alias' statements
for the incoming connection, the IP address is prepended
to the path: with .MISMATCH appended.
* >>> NOTE <<< you should grep through newly created spool
directories every so often looking for .MISMATCH in the spool
files to locate incoming feeds with improperly configured
'alias's (in dnewsfeeds). When I turned this feature on,
I found that four of my 80+ feeds were misconfigured.
DNewsfeeds file processing moved to the main diablo server and
removed from the children, saving parsing and memory overhead
of around 45K per child in heavy loaded diablo systems (x 100
processes = 4.5 MBytes saved).
Queue-delay 'q#' option added to dnntpspool.ctl. This allows you
to tell diablo to purposefully delay N queue files before transfering
a feed to a destination, thus introducing a feed delay on purpose.
This feature can be used to hold articles while allowing control
messages to propogate, getting the cancels in front of the articles
being canceled.
Diablo now uses it's own memory allocation code in order to better
manage memory. This has simplified certain memory management
operations, such as when the parent forks and needs to deallocate
memory pools that the child will not use.
Minor fix to dnewslink: Now exits if it gets a 400 return
code (ERR_GOODBYE) rather then retry the connection.
Reverse dns lookup now uses case insensitive compare against forward
lookup.
The post-fork openlog() for syslog was being called prior to the
mass file descriptor closures. Moved so it is called after. Doh!
Beta 64 bit support (e.g. linux on 64 bit alphas and such)
Diablo V1.11 -- NOTE: new pseudo groups control.* added to the group list
for control messages. This requires some minor
modifications to your dnewsfeeds file so you do not get
all control messages when taking a partial feed. See
below.
Added control.* pseudo groups. If an article is a control message,
the control message type is appended to the list of newsgroups
as 'control.MESSAGETYPE'. For example, a cancel is appended to
the list of newsgroups as 'control.cancel'.
This means that if you do an 'addgroup *' then use delgroup to remove
the groups you don't want, YOU WILL STILL RECEIVE CONTROL MESSAGES
FOR ALL GROUPS. The solution is to put a 'delgroup control.*' after
the 'addgroup *' for all of your normal feeds. If you do this,
only control messages for the groups that pass the filter will be
propogated.
If you use the more standard 'delgroup *' followed by 'addgroup ...'
lines for the groups you want, the delgroup covers it and no
modifications are required for that feed.
I have added another filter command called 'requiregroup'. It is
similiar to addgroup, delgroup, and delgroupany. What it does,
however, is require that the specified group BE in the Newsgroups
list. This allows you to create a secondary feed to your newsreader
boxes containing ONLY the control messages that also pass your normal
group filters by appending 'requiregroup control.*' to the end
of your addgroup/delgroup filter commands. Please see the example in
the samples/dnewsfeeds file for more information. Note that control
bypasses generally require two dnewsfeeds labels, one for non-control
messages and one for control messages.
Changed a bunch of printf's for stdout to fprintf's for stderr.
samples/dnewsfeeds incorrectly described the 'alias' command in
the comments, fixed.
Added Iain's bytes= stats to diablo and his latest stats stuff
to contrib. Also added -h option to diablo (see man page).
'T' and 'R' parameters in dnntpspool.ctl now work, allowing you to
set the transmit and receive buffer sizes on a connection-by-connection
basis.
dnewslink now calls the socketopt to set the transmit/receive buffer
sizes after the connect as well as before, in case the connect()
call overrides the first ones (which it does on FreeBSD and linux
boxes, since the route table dictates nominal buffering parameters)
Ability to set the dhistory hash table size in the diload command.
The default is 4 million entries, equivalent to the '-h 4m' option
to diload. Each hash table entry is 4 bytes, so 4 million entries
results in a 16MByte hash table. The hash table size must be a power
of 2, so the next logical step is -h 8m (32 MBytes) or
-h 16m (64 MBytes). If your news box has a lot of memory, changing
your biweekly.atrim script (see the adm directory for a sample) to
generate a larger hash table will greatly reduce the load on the
/news partition.
'-n' and '-f configfile' options added to dspoolout. Minor adjustments
made to realtime code to handle a race condition between diablo
creating the realtime spoolfile and dspoolout trying to open it.
Minor adjustments made to realtime code in dnewslink to handle a
race condition between diablo creating the realtime spoolfile and
dnewslink closing out the previous one and openning the next one.
DNewslink now sends the 'quit' command at the end of the session
and waits for a response.
Fixed another session reporting bug, diablo was not logging the
correct number of elapsed seconds (non critical).
New options added for lib/vendor.h. You can set the USE_SHORT_REMEMBER
define to 1 to use a shorter history retention for didump -x & diablo,
or you can leave that option commented out and specify a specific
REMEMBERDAYS. The default remember is 14 days, the default short
remember is 7 days. Diablo adds a bit of slop internally to deal with
Date: conversion errors. Usually the bottleneck that develops
first is in access to the dhistory file. A shorter remember/retention
can significantly improve access times.
/* #undef USE_SHORT_REMEMBER */
/* #define USE_SHORT_REMEMBER 1 */
/* #define REMEMBERDAYS 9 */
NOTE(!) always be sure to recompile diablo completely when making
#define option changes. 'xmake clean; xmake'. The history retention
is especially sensitive since it must be properly compiled into both
the DIDUMP and DIABLO binaries. If you update one but not the other
it is possible to get into article transfer loops with your peers.
Diablo now identifies itself on 502's rather then using the same
error essage as INN.
Technical Details
Message-ID:
<606pno$4js$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-mailShow Full Headers
Complete Article Headers
Message-ID: <606pno$4js$1@flea.best.net> Subject: Diablo 1.12 released (news transit software) Date: Mon, 22 Sep 1997 00:00:00 +0000 From: dillon@best.net (Matt Dillon) 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: 274638589 X-Trace: 874965562 28687 dillon 206.184.139.132 Organization: Best Internet Communications, Inc - 650 964 BEST Newsgroups: news.software.nntp