🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Dr Yufan Hu Tue, 09 Jun 1998 00:00
Question regarding CNFS storage method in INN2.0
#28978
Author: Dr Yufan Hu
Date: Tue, 09 Jun 1998 00:00
17 lines
1189 bytes
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?

Your advice is appreciated.

Yufan


Re: Question regarding CNFS storage method in INN2.0
#28950
Author: Dr Yufan Hu
Date: Tue, 09 Jun 1998 00:00
13 lines
932 bytes
This is yet another question regarding CNFS. 

Since CNFS consists of many cycbuffs, is it possible to expand the spool
by adding more cycbuffs without affecting the existing spool? How about
rearranging the existing cycbuffs, or retiring some cycbuffs?

Thanks for information.

Yufan


Re: Question regarding CNFS storage method in INN2.0
#29016
Author: Marc G. Fournier
Date: Wed, 10 Jun 1998 00:00
20 lines
1615 bytes
In article <6li5gm$bm$1@news.rightiming.com>,
	Dr Yufan Hu <yufan@rightiming.com> writes:
> This is yet another question regarding CNFS. 
> 
> Since CNFS consists of many cycbuffs, is it possible to expand the spool
> by adding more cycbuffs without affecting the existing spool? How about
> rearranging the existing cycbuffs, or retiring some cycbuffs?

	Yes...adding is simply a matter of changing cycbuffs.conf to add the
file buffer...removing is the same, but you will lose the articles in the
buffer that you removed (you can't "move" them to a new buffer)

-- 
Marc G. Fournier                                 marc.fournier@acadiau.ca
Systems Administrator, Acadia University

  "These are my opinions, which are not necessarily reflected by my employer"

Re: Question regarding CNFS storage method in INN2.0
#29017
Author: Marc G. Fournier
Date: Wed, 10 Jun 1998 00:00
23 lines
1780 bytes
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..

-- 
Marc G. Fournier                                 marc.fournier@acadiau.ca
Systems Administrator, Acadia University

  "These are my opinions, which are not necessarily reflected by my employer"

Re: Question regarding CNFS storage method in INN2.0
#29030
Author: Forrest J. Cavalier III
Date: Wed, 10 Jun 1998 00:00
99 lines
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 


Re: Question regarding CNFS storage method in INN2.0
#29052
Author: brian moore
Date: Wed, 10 Jun 1998 00:00
53 lines
2840 bytes
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)?

-- 
Brian Moore                             Kill A Spammer For Jesus
Sysadmin, C/Perl Hacker, Usenet Vandal 

Re: Question regarding CNFS storage method in INN2.0
#29075
Author: Forrest J. Cavalier III
Date: Thu, 11 Jun 1998 00:00
47 lines
2464 bytes
A followup to my post about disk fragmentation when creating cycbuffs
.....

>
>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....

Further thoughts.

If I understand the code correctly, cycbuffs in a metacycbuff are used
in strict round-robin fashion.  This means that if you have more than
one cycbuff on the same spindle, a head seek to write the next article
would be required, even if you initialized your cycbuffs on an empty
file system.

Example: two cycbuffs in a metacycbuf on a 10 block disk.

Disk block: 0 1 2 3 4 5 6 7 8 9            
Cycbuff     X X X X X Y Y Y Y Y

Article writes would be to cycbuff X, then Y, then X, etc.

If these ideas on cnfs seeking are accurate reflections of
reality there are some implications.  One is that having as few
cycbuffs on a disk as possible minimizes seeking.  Another is that
ordering cycbuffs in a metacycbuff on alternating disks may be
better than ordering cycbuffs on the same disk adjacent to each other.

With all of the head seeking that creating many cycbuffs into
a fragmented spool would cause, I wonder if this is the reason
for lower performance that some people are reporting.  

Since there could be a good deal of seeking with cycbuffs sharing
a disk, I wonder how much of the improvement seen with CNFS is just
due to not having to update directory information per article, and how
much is due to lowered seek times for writing.  Has anyone ever tried
to determine this?

Forrest


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