Article View: news.software.nntp
Article #29030Re: Question regarding CNFS storage method in INN2.0
From: Forrest J. Cavalier III
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
99 lines
4796 bytes
4796 bytes
Posted and emailed In article <slrn6ntghm.puc.bem@thorin.cmc.net>, bem@news.cmc.net wrote... > >On 10 Jun 98 11:44:18 GMT, > Marc G. Fournier <marc@acadiau.ca> wrote: >> In article <6li1o3$71$1@news.rightiming.com>, >> Dr Yufan Hu <yufan@rightiming.com> writes: >> > Ok I have pulled down the INN 2.0 and compiled and installed it on my >> > server. I would like the new server to use CNFS as its storage method. >> > >> > My question is that, if I choose to use CNFS or timehash storage format >> > instead of the traditional method, how should I do with the existing articles >> > in the spool? Is it possible to convert these articles into new storage >> > format? How to do it if the answer is yes? And if later on I had any >> > reason need to use alternative storage format, or even fall back to the >> > traditional method, is it possible? Any tools? >> >> See the 'makehistory' man page, which has options to pull in data >> from the traditional spool.. > >Is there a method of saving as much of the spool as possible when >converting? > >My current plans: > 1) toast a whole-slew-of-stuff-noone-reads, which will give me a bit > of breathing room disk space wise. > > 2) use that disk space to make up some buffers and have a relatively > dinky spool > > 3) snarf a couple hundred thousand lines of history through > makehistory and have it steal the articles from traditional and > move them into the buffers. > > 4) this will free up more space as the articles move out of > traditional, so make some more buffers on the now-free space > > 5) repeat 3-4 until everything is moved. > >That would allow me to keep most of my articles (at least those that >people read)... but is it worth the trouble and the time? > >Would rm'ing the spool and history (and keeping active the same so that >clients don't get confused) be better? There'd be lots of lost >articles, and even duplicated articles, but the down time would be >a lot less. > >In short, is conversion through makehistory reasonably quick, or is it >like snarfing the spool to build the history (doable, but goofy)? Look at the code in makehistory. There isn't any magic. It takes a line from the history file, uses it to get the traditional article, then uses the storage manager to store it. Since lines in the history file are not ordered by newsgroup, I think it has to take longer than "makehistory" to rebuild your history. ------------------------------------------------------------------ I do have a comment about the "convert it in little steps" method which you proposed. It would seem to me that many of the gains of CNFS require that disk blocks in a cycbuff are located close to each other on the disk. Unless you create a cycbuff on a mostly empty disk, you are going to have lots of fragmentation. Suppose you have some disk with 10 blocks, (yeah, really small disk!) and it is 90% full. You plan to create cycbuffs a little bit at a time.... Block # 0 1 2 3 4 5 6 7 8 9 Stores: A B A E D C - D D E Remove the "A" newsgroup, and you get: Block # 0 1 2 3 4 5 6 7 8 9 Stores: - B - E D C - D D E If you use that space to create a cycbuf, your cycbuf is going to be spread over blocks 0, 2, and 6. Remove the B and C newsgroups, and create another cycbuf. using blocks 1 and 5. See the problem? CNFS write might require some seeking, which is a delay to be avoided. To be sure CNFS doesn't have to write all the directory information, so there is still that improvement. But not as much as there would be if you were able to create cycbufs into a blank spool.... -------------------------------- Any agreements? Disagreements? Do modern file systems allocate blocks in lowest first order? Forrest J. Cavalier III, Mib Software, INN customization and consulting 'Pay-as-you-go' commercial support for INN: Only $64/hour! Searchable hypertext INN docs, FAQ, RFCs, etc: 650+ pages: Free access! http://www.mibsoftware.com/innsup.htm
Technical Details
Message-ID:
<6lmrl0$j1n$1@news1.epix.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:
<6li1o3$71$1@news.rightiming.com> <357e7192.0@131.162.2.91> <slrn6ntghm.puc.bem@thorin.cmc.net>Show Full Headers
Complete Article Headers
Message-ID: <6lmrl0$j1n$1@news1.epix.net> Subject: Re: Question regarding CNFS storage method in INN2.0 Date: Wed, 10 Jun 1998 00:00:00 +0000 From: mibsoft@mibsoftware.com (Forrest J. Cavalier III) References: <6li1o3$71$1@news.rightiming.com> <357e7192.0@131.162.2.91> <slrn6ntghm.puc.bem@thorin.cmc.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: 361479759 Content-Type: Text/Plain; charset=US-ASCII Organization: Mib Software Mime-Version: 1.0 Newsgroups: news.software.nntp