Article View: news.software.nntp
Article #5304Re: How to do a better USENET file system
From: Brad Templeton
Date: Tue, 27 Feb 1996 00:00
Date: Tue, 27 Feb 1996 00:00
54 lines
2933 bytes
2933 bytes
In article <LOC.4gssas$1h1@piano.synapse.net>, Evan Champion <evanc@synapse.net> wrote: >brad@clarinet.com (Brad Templeton) wrote: > >>You just take chunks of raw disk (block devices). You need a "free" >>list when it starts, but in truth once running there is no free list, just >>a list of the "oldest" (least desired) articles. > >I like having news on a regular filesystem. It makes maintenance >relatively easy, and I can use all my favourite UNIX utils on it. The >only really good use I see for application-level raw disk access is in >commercial database servers on platforms that can't handle large disk >slices. Even there, however, I see a trend away from using raw disk >partitions because on newer UNIXen and disk technology the performance >boost from using raw partitions does not justify the "pain in the ass" >factor :-) You "like" this at a vast cost. News is really different from files: a) News articles are written once and never change size. b) There is no need for a free list, block allocation, or fragmentation c) News articles are written in one big write, they do not grow during creation Right now you pay the tremendous cost to get an article: a) Open directory chain down to article directory, opening many directory inodes and reading directories. b) Read large article directory file. Find inode of file c) Read inode. d) Go to blocks, possibly fragmented, and read them Writing is even more expensive. The alternate -- direct from the overview database or history database (depending on whether lookup is by messageid or article number) then one seek and one contiguous block read -- is so much vastly more efficient that you would gladly give up the convenience. Besides, you can get it back in a couple of ways: a) Write a series of tools that do things like article-cat and article rm given an old style path b) If you want to really do it, write a filesystem handler that creates a read or unlink only filesystem with the articles, and then even old readers will work. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.) http://www.clari.net/brad/
Technical Details
Message-ID:
<DnFDJM.CMw@clarinet.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-mailReferences:
<Dn4HrC.KIx@twwells.com> <Dn5KLH.Muy@twwells.com> <DnCo3D.Cz3@clarinet.com> <4gssas$1h1@piano.synapse.net>Show Full Headers
Complete Article Headers
Message-ID: <DnFDJM.CMw@clarinet.com> Subject: Re: How to do a better USENET file system Date: Tue, 27 Feb 1996 00:00:00 +0000 From: brad@clarinet.com (Brad Templeton) References: <Dn4HrC.KIx@twwells.com> <Dn5KLH.Muy@twwells.com> <DnCo3D.Cz3@clarinet.com> <4gssas$1h1@piano.synapse.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: 141298616 X-original-newsgroups: office.clip.brad Organization: ClariNet Communications Corp. Newsgroups: news.software.nntp