🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by default Wed, 14 Apr 1999 00:00
Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36579
Author: default
Date: Wed, 14 Apr 1999 00:00
15 lines
1411 bytes
How do I track space used and space left in the various metacycbuff
files that INN 2.2 uses when CNFS storage method is used? I find it
strange that no documentation (that I could find) specified any api or
tools that can be used to analyze this, how else could one optimize the
sizes of each metacycbyff?

Another little question, is it possible to change the cycbuff structure
without clearing history (e.g. to add a cycbuff to a metabuff and
possible at least keep not-modified metabuff contents intact)? Must I do
a "makehistory -o" after a cycbuff change?

Many thanks for comments and answers!


Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36549
Author: Arthur Hagen
Date: Wed, 14 Apr 1999 00:00
29 lines
1865 bytes
In article <3714952B.92ACC18B@the.net>, default <default@the.net> writes:
> How do I track space used and space left in the various metacycbuff
> files that INN 2.2 uses when CNFS storage method is used? I find it
> strange that no documentation (that I could find) specified any api or
> tools that can be used to analyze this, how else could one optimize the
> sizes of each metacycbyff?

cnfsstat

It's briefly mentioned in the inn.conf man page, but generally you
should read all the man pages, cause the "SEE ALSO" sections aren't
really up to date.

> Another little question, is it possible to change the cycbuff structure
> without clearing history (e.g. to add a cycbuff to a metabuff and
> possible at least keep not-modified metabuff contents intact)? Must I do
> a "makehistory -o" after a cycbuff change?

No, but you have to *stop* the server if you want to add cycbuffs.
At least for one implementation, that means the server will start writing
at the start of the cycbuffs again after being restarted, and not where
it left off.

Regards,
-- 
*Art

Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36560
Author: Kjetil Torgrim Homme
Date: Wed, 14 Apr 1999 00:00
20 lines
1392 bytes
[default@the.net]

>   How do I track space used and space left in the various metacycbuff
>   files that INN 2.2 uses when CNFS storage method is used?

cnfsstat should give you an idea.  It is a simple Perl script.  It
will not handle cycbuffs which are larger than 2 GB.

>   Another little question, is it possible to change the cycbuff
>   structure without clearing history (e.g. to add a cycbuff to a
>   metabuff and possible at least keep not-modified metabuff contents
>   intact)? Must I do a "makehistory -o" after a cycbuff change?

No.  You do need to restart innd, though.


Kjetil T.


Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36564
Author: aa
Date: Wed, 14 Apr 1999 00:00
33 lines
2209 bytes
Thanks Kjetil, that was what I was looking for, can't believe that I missed
that tool.
A little follow up question, cnfsstat reports how much is used in each
cycbuff and how many times it has cycled, in one of the buffers (and in the
other belonging to the same class) cnfstat reports that only about 25% is
used, but it has cycled 6 times so far. This seems very strange to me, this
class (binaries) should be filled quickly and since it has cycled, why does
it report that only 25% is used??

Maybe it has something to do with history file not beeing in sync with the
cycbuff because news.daily hasn't been executed for a couple of hours, or?

Kjetil Torgrim Homme wrote:

> [default@the.net]
>
> >   How do I track space used and space left in the various metacycbuff
> >   files that INN 2.2 uses when CNFS storage method is used?
>
> cnfsstat should give you an idea.  It is a simple Perl script.  It
> will not handle cycbuffs which are larger than 2 GB.
>
> >   Another little question, is it possible to change the cycbuff
> >   structure without clearing history (e.g. to add a cycbuff to a
> >   metabuff and possible at least keep not-modified metabuff contents
> >   intact)? Must I do a "makehistory -o" after a cycbuff change?
>
> No.  You do need to restart innd, though.
>
> Kjetil T.


Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36584
Author: bill davidsen
Date: Wed, 14 Apr 1999 00:00
24 lines
2178 bytes
In article <3714EFD9.23279C89@bugsoft.hik.se>, aa  <aa@bugsoft.hik.se> wrote:

| A little follow up question, cnfsstat reports how much is used in each
| cycbuff and how many times it has cycled, in one of the buffers (and in the
| other belonging to the same class) cnfstat reports that only about 25% is
| used, but it has cycled 6 times so far. This seems very strange to me, this
| class (binaries) should be filled quickly and since it has cycled, why does
| it report that only 25% is used??

That number is really the position of the fill and not "used" as it
implies. After the cycles >0 the used is always 100%. You can also say
that after the first cycle the number is pretty useless. The -a option
to tell you when the oldest article was added to the spool is somewhat
useful, although a posting date is sometimes more useful, as in looking
at a server after doing an initial preload from an existing server.
-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
What I find astonishing is not that my cat has started to sing, but that
he has taken up country-western. This morning he sang `Momma, don't let
your kittens grow up to be barn cats' in the shower, followed by a
pretty decent yodeling version of `Roundup time in Texas when the catnip
is in bloom.'

Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36586
Author: Russ Allbery
Date: Wed, 14 Apr 1999 00:00
24 lines
1554 bytes
Arthur Hagen <art@flying.broomstick.com> writes:
> default <default@the.net> writes:

>> How do I track space used and space left in the various metacycbuff
>> files that INN 2.2 uses when CNFS storage method is used? I find it
>> strange that no documentation (that I could find) specified any api or
>> tools that can be used to analyze this, how else could one optimize the
>> sizes of each metacycbyff?

> cnfsstat

> It's briefly mentioned in the inn.conf man page, but generally you
> should read all the man pages, cause the "SEE ALSO" sections aren't
> really up to date.

For what it's worth, if you grab innreport_inn.pm and innreport.conf.in
out of the latest snapshot (CURRENT, not STABLE), I added reporting from
the cnfsstat syslog messages that should give you the current rate at
which your cycbuffs are filling as part of your nightly report.

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

Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36600
Author: Russ Allbery
Date: Wed, 14 Apr 1999 00:00
12 lines
973 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> cnfsstat should give you an idea.  It is a simple Perl script.  It will
> not handle cycbuffs which are larger than 2 GB.

It should in the current STABLE code-base, or at least I think we found
and squashed the last bug related to that.

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

Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#36644
Author: Jim Uhlman
Date: Thu, 15 Apr 1999 00:00
41 lines
2562 bytes
the cnfsstat command gives you the usage at the time you run the command and
the number of times it has cycled. When it reaches 100% it will cycle again and
then reset back to 0%    X cycles



aa wrote:

> Thanks Kjetil, that was what I was looking for, can't believe that I missed
> that tool.
> A little follow up question, cnfsstat reports how much is used in each
> cycbuff and how many times it has cycled, in one of the buffers (and in the
> other belonging to the same class) cnfstat reports that only about 25% is
> used, but it has cycled 6 times so far. This seems very strange to me, this
> class (binaries) should be filled quickly and since it has cycled, why does
> it report that only 25% is used??
>
> Maybe it has something to do with history file not beeing in sync with the
> cycbuff because news.daily hasn't been executed for a couple of hours, or?
>
> Kjetil Torgrim Homme wrote:
>
> > [default@the.net]
> >
> > >   How do I track space used and space left in the various metacycbuff
> > >   files that INN 2.2 uses when CNFS storage method is used?
> >
> > cnfsstat should give you an idea.  It is a simple Perl script.  It
> > will not handle cycbuffs which are larger than 2 GB.
> >
> > >   Another little question, is it possible to change the cycbuff
> > >   structure without clearing history (e.g. to add a cycbuff to a
> > >   metabuff and possible at least keep not-modified metabuff contents
> > >   intact)? Must I do a "makehistory -o" after a cycbuff change?
> >
> > No.  You do need to restart innd, though.
> >
> > Kjetil T.


Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#37053
Author: bill davidsen
Date: Tue, 27 Apr 1999 00:00
27 lines
2001 bytes
In article <4vs2f7.gsu3.ln@flying.broomstick.com>,
Arthur Hagen <art@broomstick.com> wrote:

| > Another little question, is it possible to change the cycbuff structure
| > without clearing history (e.g. to add a cycbuff to a metabuff and
| > possible at least keep not-modified metabuff contents intact)? Must I do
| > a "makehistory -o" after a cycbuff change?
| 
| No, but you have to *stop* the server if you want to add cycbuffs.
| At least for one implementation, that means the server will start writing
| at the start of the cycbuffs again after being restarted, and not where
| it left off.

I've never seen this with any of my 2.2 versions. The new cycbuffs start
from zero, but the rest seem to work okay. Either that or every time
I've done it the pointer was very near the end of the cycbuffs and I
didn't lose a lot of data. I may try that tomorrow, I'm putting up a new
server and I'll leave off one cycbuff for a few hours, stop the system
and add it, and then restart and look.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"Anything worth doing is worth doing to excess."
	-- Fat John (R.I.P.)


Re: Howto track cycbuff (metacycbuff) usage in INN 2.2?
#37123
Author: Arthur Hagen
Date: Wed, 28 Apr 1999 00:00
23 lines
1791 bytes
In article <7g5e7m$47lo$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com writes:

> I've never seen this with any of my 2.2 versions. The new cycbuffs start
> from zero, but the rest seem to work okay. Either that or every time
> I've done it the pointer was very near the end of the cycbuffs and I
> didn't lose a lot of data. I may try that tomorrow, I'm putting up a new
> server and I'll leave off one cycbuff for a few hours, stop the system
> and add it, and then restart and look.

With HP-UX 10.20 and INN 2.2, if I stop and start the server, the
server will start at the beginning of the buffers again.  It will
overwrite existing articles, and clients and backlogged feeds will
get lots of missing articles.  If I try to scan the CNFS buffers
to rebuild the history, I end up with *zilch*.  Everything gone.

With IRIX 6.5, stopping and restarting INN seems to work fine.

Regards,
-- 
*Art

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