Article View: news.software.nntp
Article #6745Re: Storage of Usenet News Articles by MD5 Hash
From: Scott Lystig Fritchie
Date: Sat, 20 Apr 1996 00:00
Date: Sat, 20 Apr 1996 00:00
60 lines
3671 bytes
3671 bytes
Paul A Vixie <vixie@vix.com> wrote in <VIXIE.96Apr18164620@wisdom.vix.com>: > this won't solve the partial block wastage and it will still require a fair > amount of generalized filesystem code to be executed in order to create or > expire any given article file. True on both counts. I did it to demonstrate that it was feasible, that it does indeed reduce the total amount of disk activity a feeder machine makes (by a bit over 1/4), and that it was *really* easy to do. Granted, the hack is ugly, and to do it the Right Way would take more effort, but it only requires changes to innd: innxmit requires no modification. (I don't think nntplink would, either, or innfeed (?), but I haven't looked at them that carefully.) > once we are moving away from the group.name/### storage system that matches > the syntax used by the nnrp clients, we may as well move toward something > that is ideal for the kinds of accesses we do and insert whatever index > database is needed to make nnrp continue to work. I've got code running on a FreeBSD box which does half of that: it stores articles inside one or more big files (or disk partitions). The article "file name" is no longer a relative path name, but rather something in the form: filename_nickname:offset ... where a filename_nickname might be "c0t1d0s4" might be a nickname for /dev/dsk/c0t1d0s4 if you're scribbling directly to a raw Solaris disk partition. To write an article, it's one seek & one read. (In my implementation, it can be two seeks and two reads, for obscure reasons in order to assist some OSes which cannot seek more that 2GB at a time and would like to use a 4GB file/disk. More would be required to use bigger files/disks, though if you're using files, just put several 2GB files on a single big disk.) To read an article, it's one seek and two reads, but since the QIO library takes care of buffering it's effectively one read for articles under 8K (?). I don't mean to hold news.software.nntp readers in suspense, but the code is a bit buggy yet. I hope to have it in "production" use here at MRNet within a week, with release of patches relative to INN1.4unoff4 soon afterward. Sorry, like the MD5 hack, I have not tackled the problem of supporting news readers. Thanks to Brad Templeton for the idea of doing it this way in the first place. So far it works pretty well. As I type, a 120MHz Pentium, 64MB RAM, 2 2GB spool disks, and a Fast Ethernet card, is running 35 innxmits and averaging 22 "transactions" (according to iostat) per second and accepting a single incoming feed's worth of articles at 9 articles/second. In the last 11 hours 53 minutes it has offered 3,064,171 articles, 2,204,639 were accepted. Ah, the day is yet young. :-) -Scott --- Scott Lystig Fritchie, Network Engineer Minnesota Regional Network fritchie@mr.net, PGP key #152B8725 2829 University Ave SE v: 612/362.5820, p: 612/637.9547 Minneapolis, MN 55414 http://www.mr.net/~fritchie/
Technical Details
Message-ID:
<ytl3f5ybzkt.fsf@data.mr.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:
<ytlenpniaty.fsf@datadata.mr.net>Show Full Headers
Complete Article Headers
Message-ID: <ytl3f5ybzkt.fsf@data.mr.net> Subject: Re: Storage of Usenet News Articles by MD5 Hash Date: Sat, 20 Apr 1996 00:00:00 +0000 From: fritchie@MR.Net (Scott Lystig Fritchie) References: <ytlenpniaty.fsf@datadata.mr.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-mail X-Deja-AN: 150517798 Distribution: inet Sender: fritchie@data Organization: Minnesota Regional Network Newsgroups: news.software.nntp