🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Scott Gifford Mon, 06 Jul 1998 00:00
INN 2.0 and CNFS
#29551
Author: Scott Gifford
Date: Mon, 06 Jul 1998 00:00
36 lines
2291 bytes
  I've been experimenting with INN 2.0 and CNFS on a test news server here,
and have a feq questions that I can't seem to find an answer for.

  First, can I easily grow my CNFS MetaBuffs without losing my articles?
And how do I go about doing that?  If I just add cycbuffs to my metabuffs or
increase the size of my cycbuffs will it handle it correctly?

  Second, I have read here that I can't have cycbuffs larger than 2 GB.  We
have a 20GB RAID that we keep our news on, so that would be a little silly
for us.  Is it impossible to use larger cycbuffs?  And if I do, are there
any catches?

  Third, if I have old channel-feed programs written in Perl, is there a
straightforward way to convert them to use the storage API?

  Fourth, are there programs I can use for poking around inside the CNFS
system, to make sure that articles are getting there?  I'm used to just
being able to go into the directory for the group and doing a grep to see if
an article is there, using "du" to see how much space that group is taking
up, etc...Is there a suite of tools for doing things like that?

  Finally, anybody got any ideas on how to move the articles over cleanly
from my current INN system to a CNFS-based one, without my users'
newsreaders getting confused?  Or on running a hybrid system for a week or
two until the old articles get expired?  I really need the speed benefits of
CNFS, but my avid news readers are going to be upset if they have to lose
all their articles, or read them a second time...

  Thanks for any help, info, or references!

------Scott.



Re: INN 2.0 and CNFS
#29541
Author: Timothy J. Miller
Date: Mon, 06 Jul 1998 00:00
44 lines
2551 bytes
"Scott Gifford" <sgifford@tir.com> writes:

>   First, can I easily grow my CNFS MetaBuffs without losing my articles?
> And how do I go about doing that?  If I just add cycbuffs to my metabuffs or
> increase the size of my cycbuffs will it handle it correctly?

	Add cycbuffs; this is gracefully handled.  Growing cycbuffs is
probably a bad thing.

>   Second, I have read here that I can't have cycbuffs larger than 2 GB.  We
> have a 20GB RAID that we keep our news on, so that would be a little silly
> for us.  Is it impossible to use larger cycbuffs?  And if I do, are there
> any catches?

	It's possible, but insure that the filesystem supports it.  Also, 
be aware that some filesystems have performance issued with files above
2GB.  It's considered safer just to avoid the whole mess and just limit
cycbuffs to 2GB and make more of them.

>   Fourth, are there programs I can use for poking around inside the CNFS
> system, to make sure that articles are getting there?  

	Read the man pages for 'sm' and 'grephistory'.

>   Finally, anybody got any ideas on how to move the articles over cleanly
> from my current INN system to a CNFS-based one, without my users'
> newsreaders getting confused?  Or on running a hybrid system for a week or
> two until the old articles get expired?  I really need the speed benefits of
> CNFS, but my avid news readers are going to be upset if they have to lose
> all their articles, or read them a second time...

	Toss the spool and start fresh.  If they complain, tell them
where DejaNews lives.  It's only news, after all.

	But then, I *enjoy* being a BOFH.  YMMV.

-- 
Cerebus <tmill06@ibm.net>
"No one's jumped off the top of the [Windows] building here, so I guess
 that's a pretty good indicator that it can't be all that bad."
		-- Rob Bennett, Microsoft group product manager.

Re: INN 2.0 and CNFS
#29563
Author: Scott Gifford
Date: Tue, 07 Jul 1998 00:00
28 lines
1688 bytes
Timothy J. Miller wrote...
>"Scott Gifford" <sgifford@tir.com> writes:
>
>>   First, can I easily grow my CNFS MetaBuffs without losing my articles?
>> And how do I go about doing that?  If I just add cycbuffs to my metabuffs
or
>> increase the size of my cycbuffs will it handle it correctly?
>
> Add cycbuffs; this is gracefully handled.  Growing cycbuffs is
>probably a bad thing.

  I was hoping to get the performance gain of using the raw disk partition
of the whole RAID as my cycbuff, in which case my only real option would be
to increase its size.  Anybody know for sure if this is handled correctly?
I'll experiment with it, but I'm not real confident that I know enough about
CNFS to devise good experiments...

  Is the performance gain from using raw disk partitions worth the hassle,
if my OS can support it?  (I'm running Solaris, and I believe that it does)

  Thanks,

------Scott.




Re: INN 2.0 and CNFS
#29568
Author: Andrew Gierth
Date: Tue, 07 Jul 1998 00:00
13 lines
1102 bytes
>>>>> "Scott" == Scott Gifford <sgifford@tir.com> writes:

 Scott>   I was hoping to get the performance gain of using the raw
 Scott>   disk partition

In the absence of threading, AIO, or very careful application design,
using raw partitions for an application heavy on write access is
usually a major performance *loss*.

-- 
Andrew.

Re: INN 2.0 and CNFS
#29571
Author: bill davidsen
Date: Tue, 07 Jul 1998 00:00
49 lines
3080 bytes
In article <6ns93p$58l$1@news.uxd.fc.nec.co.jp>,
Katsuhiro Kondou <kondou@uxd.fc.nec.co.jp> wrote:
| In article <6nrimn$gno$1@uranus.tir.com>,
| 	"Scott Gifford" <sgifford@tir.com> writes:
| 
| }   First, can I easily grow my CNFS MetaBuffs without losing my articles?
| } And how do I go about doing that?  If I just add cycbuffs to my metabuffs or
| } increase the size of my cycbuffs will it handle it correctly?
| 
| Yes, but note that write pointer of already used cycbuff will
| never be changed.  This means articles stored in those cycbuff
| may be overwritten although new cycbuff has enough space.

Now I have to try this on my toy server again. I thought I did this and
it confused the API. One caveat here, if you make the buff larger you
may or may not get a contiguous disk slice, and fragmentation will slow
your disk access by anything from "not measurable" to "all bogged down."

| }   Third, if I have old channel-feed programs written in Perl, is there a
| } straightforward way to convert them to use the storage API?
| 
| Probably you simply need to change the line like
| 'open(ART, "sm $art|");' instead of 'open(ART, "$art");'.

It's not that simple, since you now need a token of some sort, not a
filename. What I find I miss is being able to grep history for something
I can't get out of NOV or grephistory easily, such as "all posts with
this name in the message-id" and things like that. Not something you
need every day, something you can get from overview or the news server
log with some effort, but not all in one place.

| }   Fourth, are there programs I can use for poking around inside the CNFS
| } system, to make sure that articles are getting there?
| 
| Currently not.

grephistory+sm is useful, although not a complete or drop-in solution
for some things. I do find I miss my tools, but they will be rewritten,
and in most cases I'll do a better job based on what I wish I had but
could never find the time to add. If I have to write tools, they will be
better tools.
-- 
    bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
"If heros often had feet of clay, they were, at least, still heros. How
many other clay-footed humans could claim as much?"
	Michael Flynn, _Firestar_


Re: INN 2.0 and CNFS
#29597
Author: Katsuhiro Kondou
Date: Tue, 07 Jul 1998 00:00
32 lines
1920 bytes
In article <6nrimn$gno$1@uranus.tir.com>,
	"Scott Gifford" <sgifford@tir.com> writes:

}   First, can I easily grow my CNFS MetaBuffs without losing my articles?
} And how do I go about doing that?  If I just add cycbuffs to my metabuffs or
} increase the size of my cycbuffs will it handle it correctly?

Yes, but note that write pointer of already used cycbuff will
never be changed.  This means articles stored in those cycbuff
may be overwritten although new cycbuff has enough space.

}   Third, if I have old channel-feed programs written in Perl, is there a
} straightforward way to convert them to use the storage API?

Probably you simply need to change the line like
'open(ART, "sm $art|");' instead of 'open(ART, "$art");'.

}   Fourth, are there programs I can use for poking around inside the CNFS
} system, to make sure that articles are getting there?

Currently not.

}   Finally, anybody got any ideas on how to move the articles over cleanly
} from my current INN system to a CNFS-based one, without my users'
} newsreaders getting confused?

See makehistory(8).
-- 
Katsuhiro Kondou

Re: INN 2.0 and CNFS
#29621
Author: Jeremy
Date: Wed, 08 Jul 1998 00:00
17 lines
1296 bytes
Andrew Gierth  <andrew@erlenstar.demon.co.uk> wrote:

>  Scott>   I was hoping to get the performance gain of using the raw
>  Scott>   disk partition
> 
> In the absence of threading, AIO, or very careful application design,
> using raw partitions for an application heavy on write access is
> usually a major performance *loss*.

The INN 2.0 install instructions claim otherwise...

-- 
Jeremy  |  jeremy@exit109.com
"If it's not real, WHY DOES IT TAKE UP DISK SPACE?" --bev.
                                   net.subculture.usenet

Re: INN 2.0 and CNFS
#29630
Author: Andrew Gierth
Date: Wed, 08 Jul 1998 00:00
22 lines
1507 bytes
>>>>> "Jeremy" == Jeremy  <jeremy@exit109.com> writes:

 Scott> I was hoping to get the performance gain of using the raw
 Scott> disk partition

 >> In the absence of threading, AIO, or very careful application design,
 >> using raw partitions for an application heavy on write access is
 >> usually a major performance *loss*.

 Jeremy> The INN 2.0 install instructions claim otherwise...

Hmm. Some confused terminology here:

      1. Use a raw disk partition (best). This will give you the most speed,
         but it required that your OS support mmap()'ing a block device.

So it's not, in fact, using the raw device, but the block device.

-- 
Andrew.

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