Thread View: news.software.nntp
1 messages
1 total messages
Started by Matt Dillon
Wed, 29 Jul 1998 00:00
Diablo 1.16-test12 now available
Author: Matt Dillon
Date: Wed, 29 Jul 1998 00:00
Date: Wed, 29 Jul 1998 00:00
268 lines
13163 bytes
13163 bytes
Diablo 1.16-test12 is now available on my site:
http://www.backplane.com/diablo/
The features added and bugs fixed in this release are too numerous
so I am posting the release notes for the last few test releases.
This release fixes all known seg-faults (both reader and dns processes),
adds significant new features and fixes significant bugs in the reader.
It adds poll() support and significantly improves performance for
the feeder by avoiding unnecessary ftruncate() calls and setting tcp
sockets to TCP_NODELAY. This release also uses madvise() heavily.
Most of the new features are enabled only for FreeBSD in the config,
but to handle the new tcp option I have to #include <netinet/tcp.h>.
If your system doesn't have it, please email a bug report and simply
comment out that #include line. #ifdef's in the code will take care
of the rest. if you find that a feature works well on your platform,
please email me the appropriate context diffs so I can make the
feature the default for that platform.
I have tested the ftruncate() optmizations and they appear to work
fine, but since these optimizations involved significant adjustment
of the spool-writing code for the feeder, please consider the feeder
portion of this release *experimental* as well as the reader. It
should be well enough tested by the next release.
*****************
This is considered a release candidate. I plan on doing a cleanup pass
with whatever bug reports I get and then turning around and doing an
official 1.17 release with the reader code officially production.
*****************
Other notes: My open-reader has tested out extremely well. The
system barely notices the load with 130 online users (all downloading
porn, sigh, but at least I get to test my rate-limiting features on
them!). Running the feeder & reader on the same box has not produced
full-feed rates to my satisfaction-- it maxes out at 1000arts/min on
the full feed (w/ article size limit set to 1 megabyte), but the problem
could be partialy due to the feed coming *from* my already heavily
loaded newsfeeds machine. It could also be related to dhistory file
utilization and size... due to the size of the spool and nominal
expiration, the dhistory file is relatively large for diablo
(around 300MB). All spools have stabilized. The overview partition
has stabilized at around 4.5GB.
There are some reports of file corruption due to simultanious mmap'ing
and appending on FreeBSD boxes. I've seen this myself. dnewslink should
be able to detect such corruption and not pass on those articles.
I'm working with FreeBSD to attempt to isolate the problem... most
people will not notice it but some configurations seem to bring the
bug out. It's definitely not a Diablo bug.
RELEASE NOTES
DIABLO NEWS TRANSIT AND READER SYSTEM
Matthew Dillon
dillon@backplane.com
http://www.backplane.com/diablo/
http://www.backplane.com/xmake/
Diablo V1.16-test12 ***** EXPERIMENTAL RELEASE *****
dreader.hosts scan changed AGAIN.. sorry. Ok, now it scans the file
once checking for matches against the IP address or FQDN from the
reverse lookup. Previously it scanned the file checking FQDN's, then
scanned the file again checking for IP's which could cause a "*"
wildcard at the end of the file match an FQDN before an IP address
earlier in the file matched the IP. It is now much more intuitive.
'q' flag added for dreaderd.hosts, surpress logging. Useful when
you want to get rid of an idiot who connects a lot, and don't want
to clutter your logs.
Added 'L' flag - global rate limiting (per connection) to
dreader.hosts. The specification is 'Lnnnn' where nnnn is
the number of bytes per second the connection is to be limited
to. Example: 'L2048' limits the datarate to 2 KBytes/sec.
madvise() support added for diablo feeder. XADV_WILLNEED and
XADV_SEQUENTIAL added to both the feeder and dnewslink. (On
FreeBSD systems, XADV_SEQUENTIAL will fault in more pages
at a time and XADV_WILLNEED will pre-load the page table for
pages residing in the buffer cache). This is turned on
automatically for FreeBSD (people need to submit patches
for other OS's).
dnewslink sets TCP_NODELAY to turn off nagle because it could
cause unnecessary write buffering delays. We do a good job
flushing our output properly and it's already a transaction
oriented protocol, so...
dnewslink reconnects to the destination for each queue file. Now
it tries to reconnect to the *same* destination it succesfully
connected to previously. It does not call gethostbyname() again
unless a connect() fails. This way if a host has multiple IN A's
and some don't work, dnewslink will tend to stick to the one that
does work. (this problem noticed with sprintlink).
increased dnewslink's internal write gather buffer from 4K to 8K.
Added USE_POLL option for dnewslink to use poll(). It's turned on
automatically for FreeBSD-3.0 or later. poll() is used to wait
for new data to be appended to the queue file so dnewslink can read
it ('realtime' and 'd-1' options in dspoolout.ctl must be specified),
and poll()/read() is used rather then alarm(Timeout)/read()/alarm(0)
when waiting for responses from the remote.
The Diablo feeder code no longer ftruncate()'s spool files for every
post-write reject (spam cache, article too large, in-transit history
collision, etc...). Instead it simply seeks back. The feeder will
ftruncate trailing 'garbarge' from a prior post-write reject on the
descriptor close() only. Since ftruncate() must typically fsync()
a file (or at least the file metadata), the new algorithm should save
disk I/O.
Added 'readerdns' option to diablo.config
syslog logging fixed for dreaderd... it was logging the wrong
description process identifier.
debug aid added to dreaderd, -C option - cause SIGSEGV to be caught
and infinite-loop the process. Otherwise process just dies without
a core due to system setuid() security.
Fixed dreaderd reader crash - was holding KPDB record pointers across
state changes (where the KPDB might get remapped) for long scans
(i.e. 'list active'). Changed KPDB ScanFirst/Next to operate on offsets
rather then pointers.
Fixed dreaderd.status slot assignment for when a reader process dies
and is reforked by the parent.
Added forward DNS lookup to verify reverse. hostname matching is
not considered legal if reverse lookup does not match forward
(if you are doing a public server, FQDN:* would disallow mismatched
reverse/forwards while IP:* would allow them. Put IP:* after FQDN:*
to attempt to obtain the fqdn first, but still allow even if the fqdn
cannot be obtained)
Diablo V1.16-test11 ***** EXPERIMENTAL RELEASE *****
Added additional errno checks in lib/buffer.c.
Fixed ps status line reporting of number of active spooler and poster
servers.
Made fixes to record locking when reading data from dactive.kp... there
were a few race conditions where one process could be parsing a group
record while another was simultanious making modifications to it. This
will hopefully fix a 'bogus group' race that occurs sometimes... don't
know yet, crossing my fingers.
Added 'L' and 'l' rate-limiting options to dreaderd.hosts, added 'h'
option to dreaderd.hosts, set maximum number of connections from host.
Added 'u' option to dreaderd.hosts, set maximum number of connections
from user@host (only applies when identd lookups are successful).
(NOTE: 'l' and 'L' not yet implemented)
documented user authentication options in dreaderd.hosts
Fixed wildcard handling in dreaderd.hosts ... you specify that a
wildcard is to be applied specifically to an IP address or FQDN
by using the IP: or FQDN: prefix. Otherwise it will apply to an FQDN
only if the wildcard does not start with a digit.
The sample dcontrol.ctl file was broken. Removed bogus all: entries
that were droping valid checkgroups messages.
Added more explicit instructions in README.READER on how to setup pgp.
Added options for HPUX in lib/config.h, tested w/B.11.00-A. Added
errno tests for EAGAIN (previously only checked for EWOULDBLOCK), again
to support hpux.
Diablo V1.16-test10 ***** EXPERIMENTAL RELEASE *****
** Upgrade your xmake to 1.05 before compiling Diablo **
** Note, new fields added to dactive.kp. Run
'dexpireover -a -U999' to add new fields. It is then
suggested that you shut everything down and run
'dkp -t dactive.kp' to remove all the garbage from
the dactive.kp file. **
Gave the diablo *feeder* side the ability to process header-only
feeds. The feeder can process a mix of header-only and full-article
feeds. The feeder-side 'article' and 'body' commands will return an
article-not-found error if an attempt is made to retrieve an article
that was originally stored from a header-only feed. This allows you
to run a mix of feeds into a diablo feeder frontend in order to
deal with duplicates, and then pass a header-only feed onto the
reader.
Fixed minor bug in snprintf().. it should cap the return value
at the size of the buffer. The bug didn't effect anything and
neither will the fix.
dexpire now has a new option, '-s', which is to be used if your
spool is softupdates-mounted. The option causes dexpire to
sync/sleep/sync/sleep after removing each directory in order for
statsfs() to be more reasonable.
Fixed NumPending/NumActive counter error when a dreaderd/DNS
process dies or gets stuck.
Added 'activedrop' option to diablo.config .. when 'active on'
is set, causing the feeder to assign article numbers from the
dactive.kp file, the feeder normally continues to spool articles
with no matching groups in dactive.kp. If activedrop is set,
the feeder will reject such articles.
Note that when running the feeder and reader on the same box, they
can safely share the same dactive.kp file. This is because the feeder
assigns article numbers via the "NX" field rather then the "NE" field.
option -X[E,X] added to dsyncgroups to allow the NX field to be
adjusted based on a remote NNTP host. Works like the -N option.
The reader no longer creates overview for non-existant groups.
'b' option lines expire in dexpire.ctl was not working quite as
advertised. Changed the math a bit to make it more exponential.
Add pre-cancel cache to dreader to allow it to process cancels
for articles that have not yet arrived. Only pre-cancels are
entered into the cache, so as long as we get the article a reasonable
amount of time after receiving the cancel, we will be able to
properly detect that it was canceled. post-article-cancels are already
handled.
redid debugging. If you send a USR1 signal to a diablo process,
normally a child diablo process, it will syslog a line for each
received article indicating whether the article was accepted or
not and, if not, why. More USR1's can be sent to bump up the
debug level. Send a single USR2 to reset the debug level back to 0.
dexpire's -s option enhanced somewhat. '-s#' specifies the sleep
period inbetween sync()'s. See manual page.
Added CTS and LMTS fields to dactive.kp ... keep track of when
a group was created and when a group last received a new article.
(see also: -O option to dexpireover). CTS will also eventually
be used to implement active.times and related NNTP commands.
Added -O option dexpireover. When combined with the -w ( wildcard
specification ) option, dexpireover will delete stale newsgroups.
See the manual page to dexpireover.
Added -h0 option to dexpire. Allow you to expire the spool without
updating the history file. Useful in emergencies or in order to
expire on a tighter scheduler without incuring the history update
overhead for every dexpire run.
Fixed bug in feeder where offset/size was being stored in history
for articles canceled by size, which could cause dreadart to
attempt to map the (non existant) article.
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
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