Thread View: news.software.nntp
14 messages
14 total messages
Started by Matt Dillon
Thu, 15 Oct 1998 00:00
Preview of features in next Diablo release. Expect release this weekend.
Author: Matt Dillon
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
32 lines
2252 bytes
2252 bytes
I expect to do another Diablo release this weekend. This one is going
to add support for the defaulting of Distribution: ala distrib.pats,
but more importantly I am testing dynamic resizing of the overview index
files (i.e. getting rid of the 1024 article-per-group max).
As an added bonus, dexpireover is going to also be able to piecemeal
delete header information from the data.* files in /news/spool/group.
Dexpireover normally just remove()'s data.* files, but it can only do
so if all contained articles have expired. If only some have expired,
the whole file sticks around. By rewriting them, additional space savings
is obtained at the cost of serious disk and cpu overhead, hence rewriting
should only be done once a week while the normal mode is used on a daily
basis.
The dynamic overview management is the last *major* feature. I've cut
disk utilization down to around 4 GB for the overview partition for a 14
day expiration (but I still recommend at least a 9G partition), but
groups with shorter expirations will now use radically less space and
longer expirations will now store data more efficiently.
Due to the major changes in the guts of the overview database, I am holding
off the release until I've had a chance to test it a few days. It looks
good so far, but reindexing overview & data files is scary :-)
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Rahul Dhesi
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
28 lines
1806 bytes
1806 bytes
I would like to make a suggestion to Matt about the directory organization used by Diablo. And I will post it here so others may comment on it. Currently, Diablo likes to put its history files in the same places (approximately) as other files that change less frequently. Only the main spool directory tree is easily separable from the rest. I would like to be able to use a directory organization that puts files into these separate directory trees: 1. Files that should be backed up. 2. Files that need not be backed up. I would include the history files in category 2. Then remaining files in category 1 would fit in a very small amount of disk space. One could just put the Diablo tree into a subtree of /usr, and keep both the history files and the main spool in another filesystem. Perhaps one compromise would be for there to be a separate 'history' directory. Then individual sites could put that on any filesystem of their choice, either via a mount or via a symbolic link. You could also have an 'active' subdirectory for the same reason. -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Matt Dillon
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
37 lines
2079 bytes
2079 bytes
:In article <705l5m$i9h$1@samba.rahul.net>,
:Rahul Dhesi <c.c.eiftj@96.usenet.us.com> wrote:
:>I would like to make a suggestion to Matt about the directory
:>organization used by Diablo. And I will post it here so others
:>may comment on it.
:>
:>Currently, Diablo likes to put its history files in the same places
:>(approximately) as other files that change less frequently. Only the
Someone else suggested something similar to me. I was thinking of
simply putting a command in diablo.config to specify the location of
the dhistory file.
:>I would include the history files in category 2. Then remaining files
:>in category 1 would fit in a very small amount of disk space. One could
:>just put the Diablo tree into a subtree of /usr, and keep both the
:>history files and the main spool in another filesystem.
There's also /news/dqueue, which can get quite large on a big feeder
machine.
In anycase, I have it on my TODO list. I should probably make *all*
the control file paths configurable via diablo.config.
:>You could also have an 'active' subdirectory for the same reason.
:>--
:>Rahul Dhesi <dhesi@spams.r.us.com>
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Bill Gunshannon
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
19 lines
1292 bytes
1292 bytes
In article <705ujb$fvu$1@flea.best.net>, dillon@best.net (Matt Dillon) writes: |> |> |> In anycase, I have it on my TODO list. I should probably make *all* |> the control file paths configurable via diablo.config. |> This sounds like the best idea to me and probably the easiest to implement other than making it a ".h" file config option. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.uofs.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h>
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Terry Kennedy
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
20 lines
1712 bytes
1712 bytes
Matt Dillon <dillon@best.net> writes:
> Someone else suggested something similar to me. I was thinking of
> simply putting a command in diablo.config to specify the location of
> the dhistory file.
That would be good (did I ask you for it? I forget) - I'm running with my
dhistory on a 1GB solid state disk. Running the SSD for 5 days last month
bumped my server up about 40 positions in the Freenix list - it should be
interesting to see what happens in the coming months when I upgrade the OS
and hardware.
Anyway, the command files that need to access dhistory (biweekly.atrim
comes to mind) also need to know where it is, and whether to build the new
one in the same place, or in another area and then swap it in.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.spc.edu St. Peter's College, Jersey City, NJ USA
+1 201 915 9381 (voice) +1 201 435-3662 (FAX)
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Joe Greco
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
51 lines
3222 bytes
3222 bytes
In news.software.nntp article <705l5m$i9h$1@samba.rahul.net>, c.c.eiftj@96.usenet.us.com (Rahul Dhesi) wrote: :I would like to make a suggestion to Matt about the directory :organization used by Diablo. And I will post it here so others :may comment on it. : :Currently, Diablo likes to put its history files in the same places :(approximately) as other files that change less frequently. Only the :main spool directory tree is easily separable from the rest. : :I would like to be able to use a directory organization that :puts files into these separate directory trees: : :1. Files that should be backed up. :2. Files that need not be backed up. : :I would include the history files in category 2. Then remaining files :in category 1 would fit in a very small amount of disk space. One could :just put the Diablo tree into a subtree of /usr, and keep both the :history files and the main spool in another filesystem. : :Perhaps one compromise would be for there to be a separate 'history' :directory. Then individual sites could put that on any filesystem of :their choice, either via a mount or via a symbolic link. : :You could also have an 'active' subdirectory for the same reason. This is a good point. In my case, just the opposite, I don't really care about anything _BUT_ history, since everything else is pulled out of a mini configuration management system.... but the point is valid. I was sorta hoping that this message would deal with one of the things that I would _really_ like to see: support for multiple spool file- systems. I like to build my spools out of a lot of disks. One of my Diablo spools is 108GB (12 x 9GB), and I am scared to think that there will come a day I need to run fsck on it after a crash. I used to run INN with Mr. Fritchie's MD5 file storage hack (anyone else remember this pre-CNFS innovation?), which used the MD5 of a Message-ID to derive a filename, which got split up somehow into a dir/dir/file filename. One could take the top level dirs and make them mount points (or symlinks into secondary spools). It was great for fault tolerance, I could safely lose a disk without losing the entire spool. It also made for hellishly fast recovery after a crash, as all drives fsck'ed at full speed simultaneously. I think such an approach might be possible with Diablo as well, but I have not looked at the specifics. Any comments? ... JG
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Matt Dillon
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
54 lines
2453 bytes
2453 bytes
Here's the tentative diablo.config additions. These are all optional,
of course (I list the defaults below). This is in my test code now. I've
also written a new utility 'dpath', that allows you to query the paths
from shell scripts.
The path to diablo.config itself can be overriden with an environment
variable or a command line option.
I haven't actually tried mounting /news as something else yet to see if I
got all the paths right :-).
Hmm... maybe I should make 1.20 a test release, I've changed an aweful
lot.
-Matt
# Directories
#
path_home /news
path_spool %s/spool/news
path_dqueue %s/dqueue
path_group %s/spool/group
path_cache %s/spool/cache
path_feeds %s/feeds
path_log %s/log
# Diablo and DReaderD
#
path_diablo_socket %s/.diablosock
path_dreader_socket %s/.dreadersock
path_server_dactive %s/dactive.kp
path_reader_dactive %s/dactive.kp
path_dexpire %s/dexpire.ctl
path_dcontrol %s/dcontrol.ctl
path_dhistory %s/dhistory
path_diablo_hosts %s/diablo.hosts
path_dreader_hosts %s/dreader.hosts
path_dserver_hosts %s/dserver.hosts
path_moderators %s/moderators
path_spam_cache %s/spam.cache
path_dnewsfeeds %s/dnewsfeeds
path_dnntpspool %s/dnntpspool.ctl
path_distrib_pats %s/distrib.pats
path_distributions %s/distributions
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Matt Dillon
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
23 lines
1433 bytes
1433 bytes
:In article <g63e8phv9s.fsf@aluminum.crosslink.net>,
:Michael Shields <shields@crosslink.net> wrote:
:>In article <705hqp$1td$1@flea.best.net>,
:...
:>
:>Will it dynamically resize downwards? I cranked that constant up in
:>my installation, and would like to reclaim the space for the
:>low-traffic groups.
:>--
:>Shields, CrossLink.
Yah, both directions. Hopefully I haven't botched the hysteresis
but the worse that will happen is that dexpireover will rewrite
the over.* files more often then it needs to.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Rahul Dhesi
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
39 lines
2061 bytes
2061 bytes
In <7061mp$cl6$2@info.cs.uofs.edu> bill@cs.uofs.edu (Bill Gunshannon) writes: >In article <705ujb$fvu$1@flea.best.net>, dillon@best.net (Matt Dillon) writes: >|> >|> >|> In anycase, I have it on my TODO list. I should probably make *all* >|> the control file paths configurable via diablo.config. >|> >This sounds like the best idea to me and probably the easiest to implement >other than making it a ".h" file config option. I hope good defaults will be picked. Personally, I think too many hard-coded paths, even if in a config file, are not a good idea. They lead to different sites having different directory trees. This eventually leads to problems when people write various utilities that do not completely parse the config file. I highly recommend simply putting groups of closely related files into different subdirectories, and allowing individual sites to relocate subdirectories via mounts or symlinks. Then actual pathnames remain unchanged but locations can be site-specific. binaries logs dqueue history files active files config files spool .. others .. Pathnames in config files are best used for external programs which might vary from site to site. -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Michael Shields
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
14 lines
1230 bytes
1230 bytes
In article <705hqp$1td$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote: > I expect to do another Diablo release this weekend. This one is going > to add support for the defaulting of Distribution: ala distrib.pats, > but more importantly I am testing dynamic resizing of the overview index > files (i.e. getting rid of the 1024 article-per-group max). Will it dynamically resize downwards? I cranked that constant up in my installation, and would like to reclaim the space for the low-traffic groups. -- Shields, CrossLink.
Re: Preview of features in next Diablo release. Expect release this weekend.
Author: Joe Greco
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
14 lines
1181 bytes
1181 bytes
In news.software.nntp article <705ujb$fvu$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote: : There's also /news/dqueue, which can get quite large on a big feeder : machine. You're tellin' me... drwxrwxrwx 2 news news 344064 Oct 16 00:26 /news/dqueue/ (goes off to a corner, muttering something about wanting a subdirectory per feed object) ... JG
Diablo and multiple spool filesystems
Author: Michael S. McMahon
Date: Wed, 21 Oct 1998 00:00
Date: Wed, 21 Oct 1998 00:00
42 lines
2674 bytes
2674 bytes
In <706lbh$m5i@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) writes: >[...] one of the things that I would _really_ like to see: support for >multiple spool filesystems. I like to build my spools out of a lot of >disks. One of my Diablo spools is 108GB (12 x 9GB), and I am scared to >think that there will come a day I need to run fsck on it after a crash. We're preparing to give the diablo reader code a good workout on a large spool, and I'm concerned about the same thing. I haven't started coding it yet, but here's what I'm planning to do: Create another config file called diablo.spools which lists, one per line, paths to directories which can be used for spools. When the time comes to create a new D.whatever spool directory, read the diablo.spools file and look for the filesystem with the most free space on it. Make the D.whatever directory on that filesystem, and create a symbolic link between /news/spool/news/D.whatever and the actual directory on that filesystem. When dexpire runs, cycle through the diablo.spools file and remove directories until the free space requirement is met on at least six of the filesystems. Assuming that dexpire is run once per hour, the free space requirement would then be taken to mean the maximum amount of news you expect to arrive in any single 10-minute period. Some sanity checking will be needed to ensure proper handling of free space calculations for filesystems containing more than one directory listed in diablo.spools. Because of the symbolic links, I'm having a hard time shaking the feeling that it's a big kludge--but I don't want to deviate too far from the distributed code base. Using an MD5 hash or any other method I can think of affects everything that depends on a path to a spool file, whereas this only affects dexpire and a small part of the master diablo. This method should work well for a feeder expire, but I'm not sure yet what kind of contortions (if any) will be necessary in dexpire for systems set to do a reader expire. Mike --- Michael S. McMahon mcmahon@novia.net
Re: Diablo and multiple spool filesystems
Author: Rahul Dhesi
Date: Wed, 21 Oct 1998 00:00
Date: Wed, 21 Oct 1998 00:00
18 lines
1425 bytes
1425 bytes
In <7mqX1.6582$1d.1059812@news.novia.net> mcmahon@novia.net (Michael S. McMahon) writes: >In <706lbh$m5i@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) writes: >>[...] one of the things that I would _really_ like to see: support for >>multiple spool filesystems. I like to build my spools out of a lot of >>disks. One of my Diablo spools is 108GB (12 x 9GB), and I am scared to >>think that there will come a day I need to run fsck on it after a crash. > Create another config file called diablo.spools which lists, one >per line, paths to directories which can be used for spools. Yes, please. And include a space parameter limiting total size to that much, if possible. -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: Diablo and multiple spool filesystems
Author: Matt Dillon
Date: Thu, 22 Oct 1998 00:00
Date: Thu, 22 Oct 1998 00:00
61 lines
3477 bytes
3477 bytes
:In article <70le0n$b19$1@samba.rahul.net>,
:Rahul Dhesi <c.c.eiftj@46.usenet.us.com> wrote:
:>In <7mqX1.6582$1d.1059812@news.novia.net> mcmahon@novia.net (Michael S.
:>McMahon) writes:
:>
:>>In <706lbh$m5i@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) writes:
:>>>[...] one of the things that I would _really_ like to see: support for
:>>>multiple spool filesystems. I like to build my spools out of a lot of
:>>>disks. One of my Diablo spools is 108GB (12 x 9GB), and I am scared to
:>>>think that there will come a day I need to run fsck on it after a crash.
:>
:>> Create another config file called diablo.spools which lists, one
:>>per line, paths to directories which can be used for spools.
:>
:>Yes, please. And include a space parameter limiting total size to that
:>much, if possible.
:>--
:>Rahul Dhesi <dhesi@spams.r.us.com>
Hmmm. Well, to do it right would mean adding a spool directory prefix
pattern to diablo.config which might then contain %-escapes for various
flavors, e.g.:
# Stripe%t/D.xxxxxxxx/B.yyyy
#
# %t - rotate 0-5 (*10 minutes), i.e. rotate through 6
# directories each hour.
#
spool_prefix Stripe%t
It would be fairly easy to put this into 80% of the code, but the last
20% would require significant work. dexpire would have to be able to
figure out the three-level directory structure (vs the prexisting two-level
directory structure), plus dexpire's expire would have to be more
sophisticated. Diablo's directory scan would also have to be more
sophisticated. Not difficult, but at least several hours of programming
to get it right.
I don't think it would be possible to expire each partition independantly
due to Diablo's requirement that the spool directory range be linear.
dexpire would have to run in sequence until all four spools met an
appropriate free space margin. If we rotated through the partitions on
10 minute boundries they ought to be balanced well enough that this would
probably work ok.
I'm not sure how well it would work in practice, though. It might be
easier to simply make one massive spool and use a big block size, like
32K or something to reduce fsck's overhead. In fact, you could
also tune the bytes-per-inode ratio to reduce the number of inodes
to make the fsck go even faster. A 100G spool would not need more then
a million inodes (my 40G spool is eating only 320,000 inodes in
steady-state). Say, 2 million to be safe. That isn't too bad.
-Matt
--
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