🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
17 messages
17 total messages Started by Joel Goldberger Wed, 07 Apr 1999 00:00
Config files for CNFS
#36388
Author: Joel Goldberger
Date: Wed, 07 Apr 1999 00:00
19 lines
1258 bytes
I find the docs somewhat confusing regarding the interaction of the CNFS
storage method and the required and/or optimal configuration of the other
inn components, in particular expire.  Does anyone have some advice on how
to put this all together ?  Sample files would be great, references in the
documentation, that I obviously haven't found would be great too.

Thanks in advance,
Joel

--
Joel Goldberger
InfoMagic, Inc.
11950 N. Hwy 89
Flagstaff, AZ 86004
(520) 526-9565



Re: Config files for CNFS
#36367
Author: Russ Allbery
Date: Wed, 07 Apr 1999 00:00
69 lines
3638 bytes
Joel Goldberger <Joel@InfoMagic.com> writes:

> I find the docs somewhat confusing regarding the interaction of the CNFS
> storage method and the required and/or optimal configuration of the
> other inn components, in particular expire.  Does anyone have some
> advice on how to put this all together ?  Sample files would be great,

Well, are you trying to make a transit machine or a reader machine?

If you use CNFS cycbuffs exclusively, the only line in expire.ctl that
matters is the /remember/ line.  Everything else is ignored.  You need to
define a set of cycbuffs in cycbuff.conf and then organize them into
metacycbuffs; here's an example from my server (which uses raw devices;
this will be slightly different with regular files):

                      ------------------------------

# $Id: cycbuff.conf,v 0.5 1999/03/14 06:44:59 news Exp $

# We have fourteen available partitions to use as cycbuffs, each slightly
# over 1GB in size.  (We partitioned each available 2.11GB "disk" into two
# partitions to avoid running into 2GB device limits in Solaris).  We're
# using them all as raw devices and using the extra paths created with mknod
# under /var/news/cycbuffs.  Note that all cycbuffs must be specified before
# any metacycbuffs.
cycbuff:T10:/var/news/cycbuffs/c1t1d0s0:1103520
cycbuff:T11:/var/news/cycbuffs/c1t1d0s1:1104000
cycbuff:T20:/var/news/cycbuffs/c1t2d0s0:1103520
cycbuff:T21:/var/news/cycbuffs/c1t2d0s1:1104000
cycbuff:T30:/var/news/cycbuffs/c1t3d0s0:1103520
cycbuff:T31:/var/news/cycbuffs/c1t3d0s1:1104000
cycbuff:T40:/var/news/cycbuffs/c1t4d0s0:1103520
cycbuff:T41:/var/news/cycbuffs/c1t4d0s1:1104000
cycbuff:T50:/var/news/cycbuffs/c1t5d0s0:1103520
cycbuff:T51:/var/news/cycbuffs/c1t5d0s1:1104000
cycbuff:T60:/var/news/cycbuffs/c1t6d0s0:1103520
cycbuff:T61:/var/news/cycbuffs/c1t6d0s1:1104000
cycbuff:T80:/var/news/cycbuffs/c1t8d0s0:1103520
cycbuff:T81:/var/news/cycbuffs/c1t8d0s1:1104000

# Now the metacycbuffs, which storage.conf will associate with various
# newsgroups.  Some effort is made here to spread binaries out across the
# various "disks", but whatever optimization effects this has are probably
# lost in cache effects.
metacycbuff:GOOD:T11,T21
metacycbuff:REGULAR:T31,T81
metacycbuff:REST:T51,T61
metacycbuff:ALT:T40,T41
metacycbuff:BINARIES:T10,T20,T30,T50,T60,T80

                      ------------------------------

Then in storage.conf, you assign certain classes of articles to
metacycbuffs.  I personally organize just by newsgroup; another good way
of organizing is by size.  Make sure that you have a catch-all entry to
pick up the stuff that doesn't fit anywhere else.

For readers, you'll also need an overview.ctl.  There's a suggestion in
the documentation on a good first shot at that; people here have reported
more success and more speed by using more buckets than just 26.  If you're
doing transit, you don't need an overview.ctl at all, nor do you need to
run overchan.

Does that help any?

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Config files for CNFS
#36393
Author: Arthur Hagen
Date: Thu, 08 Apr 1999 00:00
30 lines
2241 bytes
In article <ylvhf7pbzb.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> writes:

> So let me try to understand this, since this definitely sounds like
> something I want to do on my transit server.  (I don't care about
> overview, since I don't generate any of it in the first place, but I do
> care quite a bit about history file size.)  If I put *:A:0:2:2 in
> expire.ctl, expire will then drop from the history file the article tokens
> for all articles older than two days?  Or only if I run expire with the
> "expireover" option?  (That would seem rather strange, since I don't have
> any overview on this machine.)

No, I don't think expireover is needed.  It's the expire itself that
rebuilds the history file, and cleans it up.
From the history(5) man page:

      The token field is a token of the article which is stored by
      storage api.  This field consists of an atmark, a token, and an
      atmark.  This field is empty if the article has been expired.

So yes, you can expire the articles with storage api and cnfs too,
afaict, and I find it a big help.  It's more cumbersome to tweak
how big areas you want, and redirect different groups to different
areas.  I'll rather waste some disk space - speed is more important.

Regards,
-- 
*Art

Re: Config files for CNFS
#36396
Author: Russ Allbery
Date: Thu, 08 Apr 1999 00:00
34 lines
2224 bytes
Arthur Hagen <art@kether.broomstick.com> writes:

> Uhm, no.  You may want to set up expire dates for use by expireindex to
> keep the overview and history files down to a manageable size.

Er... that surprises me.  Seriously?  Why?  Why doesn't expire simply see
what articles are no longer in the CNFS cycbuffs and expire the overview
information for them?

I know that you definitely don't need anything besides the /remember/ line
to keep the history file size down; expire takes care of that just fine by
itself.  Entries are expired out of the history file when they're no
longer in any cycbuff (and the /remember/ time has passed).  Or maybe
you're sayin that one should expire lines out of the history file faster
than that?

> If you run "news.daily expireover", it will read the individual
> old-style expiry settings (as opposed to the new type of expiry based on
> which metacycbuff index a posting is in) and do the expiry for you with
> the default settings.  I recommend this for several reasons - not only
> does it limit load on the server with a smaller history / smaller
> overview files, but also because it limits the amount of traffic and
> prevents e.g. new sites from pulling down 8 million control.cancel
> postings the first time they connect.

It sounds to me like this would result in not having overview entries for
all of the articles you actually have on disk.  Is that really what you
mean?  (And does expireover really have an effect on how the history file
is expired?)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Config files for CNFS
#36405
Author: Russ Allbery
Date: Thu, 08 Apr 1999 00:00
28 lines
1961 bytes
Arthur Hagen <art@kether.broomstick.com> writes:

> Yep, that's what I meant.  No use in keeping news.lists.filters and
> control.cancel overviews around forever, or pointers to them in the
> history file.  It's enough that the msgid hash is remembered in case you
> get it offered again.

Well, normally I'd just put them in a cycbuff that rolls over fairly
quickly.  That takes care of that fairly well.

> As far as I know, the msgid or hash stays, but the reference to where
> the article is stored is removed.  So you save quite a bit of
> space/memory in the history (and history.pag/history.index) too, and
> things run noticably faster.

So let me try to understand this, since this definitely sounds like
something I want to do on my transit server.  (I don't care about
overview, since I don't generate any of it in the first place, but I do
care quite a bit about history file size.)  If I put *:A:0:2:2 in
expire.ctl, expire will then drop from the history file the article tokens
for all articles older than two days?  Or only if I run expire with the
"expireover" option?  (That would seem rather strange, since I don't have
any overview on this machine.)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Config files for CNFS
#36408
Author: Arthur Hagen
Date: Thu, 08 Apr 1999 00:00
39 lines
2409 bytes
In article <ylemlvs8fn.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> writes:

> I know that you definitely don't need anything besides the /remember/ line
> to keep the history file size down; expire takes care of that just fine by
> itself.  Entries are expired out of the history file when they're no
> longer in any cycbuff (and the /remember/ time has passed).  Or maybe
> you're sayin that one should expire lines out of the history file faster
> than that?

Yep, that's what I meant.  No use in keeping news.lists.filters and
control.cancel overviews around forever, or pointers to them in the
history file.  It's enough that the msgid hash is remembered in case
you get it offered again.

> It sounds to me like this would result in not having overview entries for
> all of the articles you actually have on disk.  Is that really what you
> mean?

That's what I mean, yes.

> (And does expireover really have an effect on how the history file
> is expired?)

As far as I know, the msgid or hash stays, but the reference to where
the article is stored is removed.  So you save quite a bit of
space/memory in the history (and history.pag/history.index) too, and
things run noticably faster.

At the very least I would recommend "expiring" the big 3 groups daily,
even though the articles stay on the spool.
*.test is also a prime candidate for being removed from the overview
and index before it disappears from the spool.  Few people would be
interested in 13 days old alt.test postings.

-- 
*Art

Re: Config files for CNFS
#36410
Author: Arthur Hagen
Date: Thu, 08 Apr 1999 00:00
49 lines
3236 bytes
In article <ylyak3wwvx.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> writes:

> If you use CNFS cycbuffs exclusively, the only line in expire.ctl that
> matters is the /remember/ line.  Everything else is ignored.

Uhm, no.  You may want to set up expire dates for use by expireindex to
keep the overview and history files down to a manageable size.  If you
run "news.daily expireover", it will read the individual old-style
expiry settings (as opposed to the new type of expiry based on which
metacycbuff index a posting is in) and do the expiry for you with the
default settings.  I recommend this for several reasons - not only does
it limit load on the server with a smaller history / smaller overview
files, but also  because it limits the amount of traffic and prevents
e.g. new sites from pulling down 8 million control.cancel postings the
first time they connect.

(For HP-UX 10.20 it is a must, btw, cause new articles won't be
fetchable until you run an expireindex.  I never found a solution to
this problem, and believe it's because of mmap'ing not working well
with more than one process on HP-UX, even with msync.  If anyone else
have managed to fix INN-2.2 to work well with HP-UX 10.20, I'd like
to hear how you did it.  Rewriting the code so mmap is NEVER used
seems to be an option, but one I hope others have done before, also
for INN-2.2 (I found a patch for INN 2.0, but unfortunately things
have changed too much since then)).

> For readers, you'll also need an overview.ctl.  There's a suggestion in
> the documentation on a good first shot at that; people here have reported
> more success and more speed by using more buckets than just 26.

Putting the busiest groups in their own slots/buckets seems to help
more than the number of slots.  Especially control.cancel should have
its own slot.  For new users it's worth noting that you easily can run
into OS restrictions if you try to configure too many slots without
tuning the OS to handle more simultaneously open file descriptors per
user (and, if using mmap, number of concurrent mmaps too).  Even with
tuning, many OS'es have a hard limit of 255 open file descriptors per
user, so making 255 slots/buckets would often be a bad idea.

I also believe I saw a script that analyzed the active file, and
reconfigured overview.ctl into X number of slots with patterns based
on how busy the groups were.

Regards,
-- 
*Art

Re: Config files for CNFS
#36426
Author: Joel Goldberger
Date: Fri, 09 Apr 1999 00:00
23 lines
1992 bytes
It seems from the replies that there is some difference of opinion on how
all this gets set up.  Now at least I don't feel so bad for not completely
understanding the process.

We are trying to run a single server to support readers and therefore do use
overview data.  We just started using the CNFS storage system a couple of
weeks ago and the history file seemed to grow without bound and result in
innd, expire and the nnrpd processes using absurd amounts of memory.

Our intent was obviously to rely on the cycling of the buffers to handle
expiration, but there also seems to be some need to coordinate that
expiration with the normal expire process to manage the history file if
nothing else.

Does the timehash stuff make this simpler ?  I found the timehash references
in the installation notes confusing especially when trying to figure out the
interaction with CNFS.

- Joel -



Re: Config files for CNFS
#36432
Author: Kjetil Torgrim Homme
Date: Fri, 09 Apr 1999 00:00
14 lines
1386 bytes
[Russ Allbery]

>   If I put *:A:0:2:2 in expire.ctl, expire will then drop from the
>   history file the article tokens for all articles older than two
>   days?  Or only if I run expire with the "expireover" option?

That doesn't match my experience.  I use an expire.ctl to handle my
timehashed articles, but the CNFS articles are left alone (you had me
worried for a moment!)


Kjetil T.

Re: Config files for CNFS
#36446
Author: Arthur Hagen
Date: Sat, 10 Apr 1999 00:00
17 lines
1524 bytes
In article <1rvhf68vbt.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> That doesn't match my experience.  I use an expire.ctl to handle my
> timehashed articles, but the CNFS articles are left alone (you had me
> worried for a moment!)

You can indeed get the articles "expired" although they'll still be
physically present and can be "salvaged", i.e. made available again
by rebuilding the history.
See the -c and -N options to expire(8).

Regards,
-- 
*Art

Re: Config files for CNFS
#36465
Author: Russ Allbery
Date: Mon, 12 Apr 1999 00:00
31 lines
2195 bytes
Joel Goldberger <Joel@InfoMagic.com> writes:

> We are trying to run a single server to support readers and therefore do
> use overview data.  We just started using the CNFS storage system a
> couple of weeks ago and the history file seemed to grow without bound
> and result in innd, expire and the nnrpd processes using absurd amounts
> of memory.

Define without bound; how big has it gotten?  How long are you keeping
articles currently and how close to a full feed are you taking?

> Our intent was obviously to rely on the cycling of the buffers to handle
> expiration, but there also seems to be some need to coordinate that
> expiration with the normal expire process to manage the history file if
> nothing else.

news.daily expireover lowmark should be trimming the history file as
well.  Is expire failing because it doesn't have enough memory?

> Does the timehash stuff make this simpler ?  I found the timehash
> references in the installation notes confusing especially when trying to
> figure out the interaction with CNFS.

There isn't much; you just define a few timehash storage classes as well
as CNFS storage classes and stuff goes one place or the other.  However
I've not used timehash, since I think CNFS is cleaner (and faster).

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Config files for CNFS
#36478
Author: Russ Allbery
Date: Mon, 12 Apr 1999 00:00
24 lines
1808 bytes
Joel Goldberger <Joel@InfoMagic.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> Define without bound; how big has it gotten?  How long are you keeping
>> articles currently and how close to a full feed are you taking?

> After about a week or so the history file was up to 500MB.  We are
> taking as full a feed as MCI will provide.

That doesn't surprise me.  My history file is 800MB on a full feed (and
that's with fairly few tokens since we run with a reduced active file).

> There were no log entries concerning failure.  Expire would grow to a
> set size of 80MB or so.  Also the nnrpd processes were getting up to
> 30-40MB.

80MB isn't too bad; expire takes about 120MB for me.  Did you compile INN
with tagged-hash?  (I didn't, so I was expecting large history sizes like
this.)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Config files for CNFS
#36481
Author: Joel Goldberger
Date: Mon, 12 Apr 1999 00:00
34 lines
2448 bytes
Russ Allbery <rra@stanford.edu> wrote in message
news:ylzp4ecl40.fsf@windlord.stanford.edu...
> Joel Goldberger <Joel@InfoMagic.com> writes:
>
> > We are trying to run a single server to support readers and therefore do
> > use overview data.  We just started using the CNFS storage system a
> > couple of weeks ago and the history file seemed to grow without bound
> > and result in innd, expire and the nnrpd processes using absurd amounts
> > of memory.
>
> Define without bound; how big has it gotten?  How long are you keeping
> articles currently and how close to a full feed are you taking?

After about a week or so the history file was up to 500MB.  We are taking as
full a feed as MCI will provide.

>
> > Our intent was obviously to rely on the cycling of the buffers to handle
> > expiration, but there also seems to be some need to coordinate that
> > expiration with the normal expire process to manage the history file if
> > nothing else.
>
> news.daily expireover lowmark should be trimming the history file as
> well.  Is expire failing because it doesn't have enough memory?

There were no log entries concerning failure.  Expire would grow to a set
size of 80MB or so.  Also the nnrpd processes were getting up to 30-40MB.

- Joel -



Re: Config files for CNFS
#36488
Author: Arthur Hagen
Date: Mon, 12 Apr 1999 00:00
23 lines
2019 bytes
In article <yl3e26dzum.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> writes:

> Unfortunately, from that man page, I'd have to store uniover data in order
> to do early expiry of articles in CNFS buffers that haven't rolled over
> yet.  Since this is a pure transit box, I don't want to store uniover
> data.  Do you know of a way of expiring articles early without having
> uniover data?  (If not, I may have to see about hacking that in.)

Sorry, no.

As the alternative to having the unified overview seems to be to scan
the CNFS buffers directly and base the actions upon that, I wonder if
it wouldn't save more CPU/IO juice to use the overviews after all, even
with a transit server.  Scanning and rescanning the cycbuffs every day
isn't a light operation, and may take quite a few hours.  Try a
makehistory to a new file from the buffers to see how long it takes.

Regards,
-- 
*Art

Re: Config files for CNFS
#36489
Author: Russ Allbery
Date: Mon, 12 Apr 1999 00:00
21 lines
1777 bytes
Arthur Hagen <art@flying.broomstick.com> writes:
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

>> That doesn't match my experience.  I use an expire.ctl to handle my
>> timehashed articles, but the CNFS articles are left alone (you had me
>> worried for a moment!)

> You can indeed get the articles "expired" although they'll still be
> physically present and can be "salvaged", i.e. made available again by
> rebuilding the history.  See the -c and -N options to expire(8).

Unfortunately, from that man page, I'd have to store uniover data in order
to do early expiry of articles in CNFS buffers that haven't rolled over
yet.  Since this is a pure transit box, I don't want to store uniover
data.  Do you know of a way of expiring articles early without having
uniover data?  (If not, I may have to see about hacking that in.)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Config files for CNFS
#36494
Author: Russ Allbery
Date: Tue, 13 Apr 1999 00:00
22 lines
1916 bytes
Arthur Hagen <art@flying.broomstick.com> writes:

> As the alternative to having the unified overview seems to be to scan
> the CNFS buffers directly and base the actions upon that, I wonder if it
> wouldn't save more CPU/IO juice to use the overviews after all, even
> with a transit server.  Scanning and rescanning the cycbuffs every day
> isn't a light operation, and may take quite a few hours.

I'm pretty sure it's scanning the buffers anyway, since it's dropping
article tokens for those articles which have expired from the spool but
haven't passed 14 days.  And expire certainly doesn't take a few hours;
more like fifteen minutes.

But the functionality that I want could be controlled entirely from the
history file itself; what I basically want is a flag to expire that says
to throw away the article tokens for anything older than X days.  The time
stamps are already in the history file.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Config files for CNFS
#36526
Author: Charles Singhanet
Date: Tue, 13 Apr 1999 00:00
30 lines
2122 bytes
Arthur Hagen <art@flying.broomstick.com> wrote:

> In article <1rvhf68vbt.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> > That doesn't match my experience.  I use an expire.ctl to handle my
> > timehashed articles, but the CNFS articles are left alone (you had me
> > worried for a moment!)

> You can indeed get the articles "expired" although they'll still be
> physically present and can be "salvaged", i.e. made available again
> by rebuilding the history.
> See the -c and -N options to expire(8).

The -N option was crucial in controlling our server.  Without that option
in expire, the file system on which the overview and uniover were on would
explode during the expire process.  Could someone explain why the overview
and uniover seem to grow during the expire process?  I would really like
to know.

I also noted another minor twitch in that when loading up groups from 
a news reader (communicator 4.06), the news reader does not seem to
expire old articles.  

We're currently using inn 2.1 with CNFS.

thanks.



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