🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Eric Edwards Wed, 28 Sep 2005 22:32
How does CNFS really work?
#72340
Author: Eric Edwards
Date: Wed, 28 Sep 2005 22:32
16 lines
1548 bytes
I thought I knew.  Write articles sequentially and wrap around at the
end (or to the next sequential buffer) expiring old articles as they are
overwritten.

But now I am seeing behavior that I can not explain.

1) I have articles stored in CNFS that appear to have been there for
more than two full rotations.

2) Cycbuffs are updated hours, even days, after the "head" has moved on
to the next sequential buffer.  I don't know what is being written.

Can anyone enlighten me?  I'm running INN 2.4.2, if it matters.

-- 
Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: How does CNFS really work?
#72342
Author: Jeffrey M. Vinocur
Date: Thu, 29 Sep 2005 00:54
35 lines
2188 bytes
In article <slrndjm6fe.akn.ese002@spica.exile.org>,
Eric Edwards <ese002@news9.exile.org> wrote:
>I thought I knew.  Write articles sequentially and wrap around at the
>end (or to the next sequential buffer) expiring old articles as they are
>overwritten.

Well, unless you set SEQUENTIAL in cycbuff.conf, INN actually
spreads the articles evenly between the buffers, so that slow
disks can be used even for a high-volume feed.

I wonder if the INTERLEAVE / SEQUENTIAL setting explains the
behavior you report?

If not, I think seeing the output of `cnfsstat -a` and the
contents of storage.conf and cycbuff.conf would help us puzzle
out your concerns.


>1) I have articles stored in CNFS that appear to have been there for
>more than two full rotations.

This I have no explanation for.  Unless somehow you have cycbuffs
that aren't included in the rotation, perhaps due to changes in
storage.conf?


>2) Cycbuffs are updated hours, even days, after the "head" has moved on
>to the next sequential buffer.  I don't know what is being written.

No better ideas than the SEQUENTIAL thing here.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: How does CNFS really work?
#72348
Author: Bill Davidsen
Date: Thu, 29 Sep 2005 16:29
24 lines
2296 bytes
Eric Edwards wrote:
> I thought I knew.  Write articles sequentially and wrap around at the
> end (or to the next sequential buffer) expiring old articles as they are
> overwritten.
> 
> But now I am seeing behavior that I can not explain.
> 
> 1) I have articles stored in CNFS that appear to have been there for
> more than two full rotations.

I've seen that, too. I haven't had a lot of time to chase it, though, 
and it happens infrequently.
> 
> 2) Cycbuffs are updated hours, even days, after the "head" has moved on
> to the next sequential buffer.  I don't know what is being written.
> 
> Can anyone enlighten me?  I'm running INN 2.4.2, if it matters.
> 


-- 
bill davidsen
   SBC/Prodigy Yorktown Heights NY data center
   http://newsgroups.news.prodigy.com
Re: How does CNFS really work?
#72353
Author: ho2486
Date: Fri, 30 Sep 2005 17:16
37 lines
2067 bytes
Dear Bill

Do you have any information to setup the newsgroup architecture
similar to your diagram in your web site. Is it use INN?

Best regards,

Jackson


On Thu, 29 Sep 2005 16:29:57 GMT, Bill Davidsen
<davidsen@deathstar.prodigy.com> wrote:

>Eric Edwards wrote:
>> I thought I knew.  Write articles sequentially and wrap around at the
>> end (or to the next sequential buffer) expiring old articles as they are
>> overwritten.
>> 
>> But now I am seeing behavior that I can not explain.
>> 
>> 1) I have articles stored in CNFS that appear to have been there for
>> more than two full rotations.
>
>I've seen that, too. I haven't had a lot of time to chase it, though, 
>and it happens infrequently.
>> 
>> 2) Cycbuffs are updated hours, even days, after the "head" has moved on
>> to the next sequential buffer.  I don't know what is being written.
>> 
>> Can anyone enlighten me?  I'm running INN 2.4.2, if it matters.
>> 

_________________________________________
Usenet Zone Free Binaries Usenet Server
More than 140,000 groups
Unlimited download
http://www.usenetzone.com to open account
Re: How does CNFS really work?
#72360
Author: Eric Edwards
Date: Fri, 30 Sep 2005 22:58
121 lines
5883 bytes
On Thu, 29 Sep 2005 00:54:31 +0000 (UTC), Jeffrey M. Vinocur <jeff@litech.org> wrote:
>In article <slrndjm6fe.akn.ese002@spica.exile.org>,
>Eric Edwards <ese002@news9.exile.org> wrote:
>>I thought I knew.  Write articles sequentially and wrap around at the
>>end (or to the next sequential buffer) expiring old articles as they are
>>overwritten.
>
>Well, unless you set SEQUENTIAL in cycbuff.conf, INN actually
>spreads the articles evenly between the buffers, so that slow
>disks can be used even for a high-volume feed.
>
>I wonder if the INTERLEAVE / SEQUENTIAL setting explains the
>behavior you report?

Nope.  It has always been set to SEQUENTIAL.

>If not, I think seeing the output of `cnfsstat -a` and the
>contents of storage.conf and cycbuff.conf would help us puzzle
>out your concerns.

storage.conf:
============
method cnfs {
        newsgroups: *
        class: 2
        size: 32768
        options: BINARY
}
method cnfs {
        newsgroups: comp.binaries.*
        class: 1
        options: CBINARY
}
method cnfs {
        newsgroups: *
        class: 0
        options: EVERYTHING
}
# nothing goes to tradspool anymore
method tradspool {
        class: 1
        newsgroups: *
}

cycbuff.conf
===========
cycbuff:ZERO:/news/cycbuffs/zero:512000
cycbuff:ONE:/news/cycbuffs/one:512000
cycbuff:TWO:/news/cycbuffs/two:512000
cycbuff:THREE:/news/cycbuffs/three:512000
cycbuff:FOUR:/news/cycbuffs/four:512000
cycbuff:FIVE:/news/cycbuffs/five:512000
cycbuff:CBIN0:/news/cycbuffs/cbin0:1024
cycbuff:BIN0:/news/cycbuffs/bin0:1024
cycbuff:BIN1:/news/cycbuffs/bin1:1024
  
metacycbuff:EVERYTHING:ZERO,ONE,TWO,THREE,FOUR,FIVE:SEQUENTIAL
metacycbuff:BINARY:BIN0,BIN1:SEQUENTIAL
metacycbuff:CBINARY:CBIN0:SEQUENTIAL

eric@spica~ cnfsstat -a
Class BINARY  for groups matching "*", article size min/max: 32768/0
 Buffer BIN0, size:     0 TBytes, position:  16.0 kBytes  1375.02 cycles
  Newest: 2005-09-30 15:50:07,    0 days,  0:01:48 ago
  Oldest: 2005-09-30 10:10:09,    0 days,  5:41:46 ago
 Buffer BIN1, size:     0 TBytes, position:  16.0 kBytes  1375.02 cycles
  Newest: 2005-09-30 15:20:12,    0 days,  0:31:44 ago
  Oldest: 2005-09-30 12:19:47,    0 days,  3:32:09 ago
 
Class CBINARY  for groups matching "comp.binaries.*"
 Buffer CBIN0, size:     0 TBytes, position:  36.5 kBytes  0.04 cycles
  Newest: 2005-09-28  4:00:00,    2 days, 11:51:56 ago
  Oldest: 2005-09-23 10:41:50,    7 days,  5:10:06 ago
 
Class EVERYTHING  for groups matching "*"
 Buffer ZERO, size:   500 MBytes, position:   128 kBytes  3.00 cycles
  Newest: 2005-09-25  4:23:02,    5 days, 11:28:55 ago
  Oldest: 2005-09-20 20:48:11,    9 days, 19:03:46 ago
 Buffer ONE, size:   500 MBytes, position:   128 kBytes  3.00 cycles
  Newest: 2005-09-29  0:20:51,    1 days, 15:31:07 ago
  Oldest: 2005-09-25  4:23:23,    5 days, 11:28:35 ago
 Buffer TWO, size:   500 MBytes, position:   219 MBytes  2.44 cycles
  Newest: 2005-09-30 15:51:58,    0 days,  0:00:01 ago
  Oldest: 2005-09-10 23:46:57,   19 days, 16:05:02 ago
 Buffer THREE, size:   500 MBytes, position:   128 kBytes  2.00 cycles
  Newest: 2005-09-16 12:55:00,   14 days,  2:57:00 ago
  Oldest: 2005-09-13  0:01:19,   17 days, 15:50:41 ago
 Buffer FOUR, size:   500 MBytes, position:   128 kBytes  2.00 cycles
  Newest: 2005-09-20 20:48:06,    9 days, 19:03:54 ago
  Oldest: 2005-09-16 12:55:07,   14 days,  2:56:53 ago
 Buffer FIVE, size:   500 MBytes, position:   128 kBytes  0.00 cycles
  Newest: 2005-09-21 12:11:24,    9 days,  3:40:37 ago
  Oldest: 2005-09-16 12:55:07,   14 days,  2:56:54 ago

>
>>1) I have articles stored in CNFS that appear to have been there for
>>more than two full rotations.
>
>This I have no explanation for.  Unless somehow you have cycbuffs
>that aren't included in the rotation, perhaps due to changes in
>storage.conf?

Buffer FIVE is new but it was added shortly after the current cycle
began.  It is still empty.  cnfstat -a is consistent with the age of the
oldest articles but not with the date stamps on the buffers.  Then again,
the date stamps are making less and less sense.

eric@spica~ ls -lt /news/cycbuffs/
total 6159536
-rw-r--r--   1 news     news     524288000 Sep 30 15:55 two
-rw-r--r--   1 news     news     2099200 Sep 30 15:50 bin0
-rw-r--r--   1 news     news     2099200 Sep 30 14:59 bin1
-rw-r--r--   1 news     news     524288000 Sep 30 10:53 zero
-rw-r--r--   1 news     news     2097152 Sep 30 10:41 cbin0
-rw-r--r--   1 news     news     524288000 Sep 30 06:45 three
-rw-r--r--   1 news     news     524288000 Sep 30 06:45 four
-rw-r--r--   1 news     news     524288000 Sep 30 06:43 one
-rw-r--r--   1 news     news     524288000 Sep 21 12:11 five

-- 
Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: How does CNFS really work?
#72361
Author: emperor
Date: Sat, 01 Oct 2005 08:12
35 lines
2007 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <mlsqj1pljaedud8qr2p8q7iit26d1uhe97@4ax.com>
ho2486@hotmail.com wrote:

>Dear Bill
[snip]

Dear net-abuser,

why are you so afraid to keep one nym?

   -----------------------------------------------------------------
   Path: [...]!news.usenetzone.com!not-for-mail
   From: Jackson <ho169@hotmail.com>   <-----
   Newsgroups: news.software.nntp
   Subject: Spool
   Date: Wed, 28 Sep 2005 18:03:41 +0800
   Message-ID: <2iqkj11k0ssqr8t2hslgltermiroe8m5re@4ax.com>
   -----------------------------------------------------------------

[FU2 set accordingly]


*** emperor

-----BEGIN PGP SIGNATURE-----
Version: N/A

iQA/AwUBQz5DIDk6FTOF+YXVEQK+VQCfWXs+vN/qjNRfxLvzKJ9BVbduifsAn3G9
e7DDCw8eQa2eKy3Pm6PdHUUZ
=fMJ6
-----END PGP SIGNATURE-----
Re: How does CNFS really work?
#72367
Author: Jeffrey M. Vinocur
Date: Sun, 02 Oct 2005 19:37
134 lines
6422 bytes
In article <slrndjrgpc.17s.ese002@spica.exile.org>,
Eric Edwards <ese002@news9.exile.org> wrote:
>
>method cnfs {
>        newsgroups: *
>        class: 2
>        size: 32768
>        options: BINARY
>}
>method cnfs {
>        newsgroups: comp.binaries.*
>        class: 1
>        options: CBINARY
>}
>method cnfs {
>        newsgroups: *
>        class: 0
>        options: EVERYTHING
>}
># nothing goes to tradspool anymore
>method tradspool {
>        class: 1
>        newsgroups: *
>}

Do you have any old, unexpired articles in tradspool?  If not,
you could take that group out...I'm not even sure those articles
would be accessible given that you have two storage groups with
"class: 1" for that matter.

BTW, did you mean for CBINARY to only get the <32768 byte
articles in comp.binaries?  That's what the above is doing.


>Class BINARY  for groups matching "*", article size min/max: 32768/0
> Buffer BIN0, size:     0 TBytes, position:  16.0 kBytes  1375.02 cycles
>  Newest: 2005-09-30 15:50:07,    0 days,  0:01:48 ago
>  Oldest: 2005-09-30 10:10:09,    0 days,  5:41:46 ago
> Buffer BIN1, size:     0 TBytes, position:  16.0 kBytes  1375.02 cycles
>  Newest: 2005-09-30 15:20:12,    0 days,  0:31:44 ago
>  Oldest: 2005-09-30 12:19:47,    0 days,  3:32:09 ago

This looks okay to me.  Were any of your complaints related to
this group?


>Class CBINARY  for groups matching "comp.binaries.*"
> Buffer CBIN0, size:     0 TBytes, position:  36.5 kBytes  0.04 cycles
>  Newest: 2005-09-28  4:00:00,    2 days, 11:51:56 ago
>  Oldest: 2005-09-23 10:41:50,    7 days,  5:10:06 ago

This is a little odd looking, since it implies nothing has been
stored in CBINARY for two and a half days.  If you're getting a
full feed, it's hard to believe that's true, even with the
above-mentioned restriction on what makes it there by size.


>Class EVERYTHING  for groups matching "*"
> Buffer ZERO, size:   500 MBytes, position:   128 kBytes  3.00 cycles
>  Newest: 2005-09-25  4:23:02,    5 days, 11:28:55 ago
>  Oldest: 2005-09-20 20:48:11,    9 days, 19:03:46 ago
> Buffer ONE, size:   500 MBytes, position:   128 kBytes  3.00 cycles
>  Newest: 2005-09-29  0:20:51,    1 days, 15:31:07 ago
>  Oldest: 2005-09-25  4:23:23,    5 days, 11:28:35 ago
> Buffer TWO, size:   500 MBytes, position:   219 MBytes  2.44 cycles
>  Newest: 2005-09-30 15:51:58,    0 days,  0:00:01 ago
>  Oldest: 2005-09-10 23:46:57,   19 days, 16:05:02 ago
> Buffer THREE, size:   500 MBytes, position:   128 kBytes  2.00 cycles
>  Newest: 2005-09-16 12:55:00,   14 days,  2:57:00 ago
>  Oldest: 2005-09-13  0:01:19,   17 days, 15:50:41 ago
> Buffer FOUR, size:   500 MBytes, position:   128 kBytes  2.00 cycles
>  Newest: 2005-09-20 20:48:06,    9 days, 19:03:54 ago
>  Oldest: 2005-09-16 12:55:07,   14 days,  2:56:53 ago
> Buffer FIVE, size:   500 MBytes, position:   128 kBytes  0.00 cycles
>  Newest: 2005-09-21 12:11:24,    9 days,  3:40:37 ago
>  Oldest: 2005-09-16 12:55:07,   14 days,  2:56:54 ago
>
>[...] Buffer FIVE is new but it was added shortly after the
>current cycle began.  It is still empty.

Okay, this arrangement looks pretty sensible to me, although I'm
not sure why FIVE would have any evidence of articles being
stored in it between 9 and 14 days ago, unless maybe you copied
an existing cycbuff to create it.


>>>1) I have articles stored in CNFS that appear to have been there for
>>>more than two full rotations.

So now that I have some idea of what your setup is like, maybe we
can make some sense of this.  Can you identify an article that
you feel is hanging around for too long, get the message ID, and
do this:

    ~news/bin/grephistory '<asdf@example.com>' | showtoken

(The showtoken utility comes in "contrib" in the INN source tree
and probably isn't otherwise installed on your system.  In fact,
you might only have "showtoken.in", in which case you can do
`grephistory ... | perl showtoken.in` and it'll work just fine.

That will tell us where the article you're worried about is
actually stored.


>cnfstat -a is consistent with the age of the oldest articles but
>not with the date stamps on the buffers.  Then again, the date
>stamps are making less and less sense.
>
>eric@spica~ ls -lt /news/cycbuffs/
>total 6159536
>-rw-r--r--   1 news     news     524288000 Sep 30 15:55 two
>-rw-r--r--   1 news     news     2099200 Sep 30 15:50 bin0
>-rw-r--r--   1 news     news     2099200 Sep 30 14:59 bin1
>-rw-r--r--   1 news     news     524288000 Sep 30 10:53 zero
>-rw-r--r--   1 news     news     2097152 Sep 30 10:41 cbin0
>-rw-r--r--   1 news     news     524288000 Sep 30 06:45 three
>-rw-r--r--   1 news     news     524288000 Sep 30 06:45 four
>-rw-r--r--   1 news     news     524288000 Sep 30 06:43 one
>-rw-r--r--   1 news     news     524288000 Sep 21 12:11 five

I'm not sure the timestamps are enormously meaningful for CNFS,
to be honest -- I've never paid any attention to them before.  I
see why you're confused though.

Speculating here, I wonder if CNFS is touched when an article is
cancelled due to a cancel message being received.  That might
explain occasional updates not related to new articles being
stored there.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: How does CNFS really work?
#72374
Author: Eric Edwards
Date: Tue, 04 Oct 2005 01:47
112 lines
5903 bytes
On Sun, 2 Oct 2005 19:37:19 +0000 (UTC), Jeffrey M. Vinocur <jeff@litech.org> wrote:
>In article <slrndjrgpc.17s.ese002@spica.exile.org>,
>Eric Edwards <ese002@news9.exile.org> wrote:
>>
>>method cnfs {
>>        newsgroups: *
>>        class: 2
>>        size: 32768
>>        options: BINARY
>>}
>>method cnfs {
>>        newsgroups: comp.binaries.*
>>        class: 1
>>        options: CBINARY
>>}
>>method cnfs {
>>        newsgroups: *
>>        class: 0
>>        options: EVERYTHING
>>}
>># nothing goes to tradspool anymore
>>method tradspool {
>>        class: 1
>>        newsgroups: *
>>}
>
>Do you have any old, unexpired articles in tradspool?  If not,
>you could take that group out...I'm not even sure those articles
>would be accessible given that you have two storage groups with
>"class: 1" for that matter.
>
>
>BTW, did you mean for CBINARY to only get the <32768 byte
>articles in comp.binaries?  That's what the above is doing.

Yup.  I added BINARY in response to a flood of off topic postings to
comp.binaries.apple2.  When EVERYTHING appeared to be cycling faster than
I thought it should after the change, I thought maybe some of the flood
was coming in under the wire by being broken up into smaller chunks.

>>Class BINARY  for groups matching "*", article size min/max: 32768/0
>> Buffer BIN0, size:     0 TBytes, position:  16.0 kBytes  1375.02 cycles
>>  Newest: 2005-09-30 15:50:07,    0 days,  0:01:48 ago
>>  Oldest: 2005-09-30 10:10:09,    0 days,  5:41:46 ago
>> Buffer BIN1, size:     0 TBytes, position:  16.0 kBytes  1375.02 cycles
>>  Newest: 2005-09-30 15:20:12,    0 days,  0:31:44 ago
>>  Oldest: 2005-09-30 12:19:47,    0 days,  3:32:09 ago
>
>This looks okay to me.  Were any of your complaints related to
>this group?

Nah.  BINARY is working fine.

>>Class CBINARY  for groups matching "comp.binaries.*"
>> Buffer CBIN0, size:     0 TBytes, position:  36.5 kBytes  0.04 cycles
>>  Newest: 2005-09-28  4:00:00,    2 days, 11:51:56 ago
>>  Oldest: 2005-09-23 10:41:50,    7 days,  5:10:06 ago
>
>This is a little odd looking, since it implies nothing has been
>stored in CBINARY for two and a half days.  If you're getting a
>full feed, it's hard to believe that's true, even with the
>above-mentioned restriction on what makes it there by size.

Comp.binaries.* is virtually extinct.  There is a little bit of
legitimate traffic on comp.binaries.cbm

>>Class EVERYTHING  for groups matching "*"
>> Buffer ZERO, size:   500 MBytes, position:   128 kBytes  3.00 cycles
>>  Newest: 2005-09-25  4:23:02,    5 days, 11:28:55 ago
>>  Oldest: 2005-09-20 20:48:11,    9 days, 19:03:46 ago
>> Buffer ONE, size:   500 MBytes, position:   128 kBytes  3.00 cycles
>>  Newest: 2005-09-29  0:20:51,    1 days, 15:31:07 ago
>>  Oldest: 2005-09-25  4:23:23,    5 days, 11:28:35 ago
>> Buffer TWO, size:   500 MBytes, position:   219 MBytes  2.44 cycles
>>  Newest: 2005-09-30 15:51:58,    0 days,  0:00:01 ago
>>  Oldest: 2005-09-10 23:46:57,   19 days, 16:05:02 ago
>> Buffer THREE, size:   500 MBytes, position:   128 kBytes  2.00 cycles
>>  Newest: 2005-09-16 12:55:00,   14 days,  2:57:00 ago
>>  Oldest: 2005-09-13  0:01:19,   17 days, 15:50:41 ago
>> Buffer FOUR, size:   500 MBytes, position:   128 kBytes  2.00 cycles
>>  Newest: 2005-09-20 20:48:06,    9 days, 19:03:54 ago
>>  Oldest: 2005-09-16 12:55:07,   14 days,  2:56:53 ago
>> Buffer FIVE, size:   500 MBytes, position:   128 kBytes  0.00 cycles
>>  Newest: 2005-09-21 12:11:24,    9 days,  3:40:37 ago
>>  Oldest: 2005-09-16 12:55:07,   14 days,  2:56:54 ago
>>
>>[...] Buffer FIVE is new but it was added shortly after the
>>current cycle began.  It is still empty.
>
>Okay, this arrangement looks pretty sensible to me, although I'm
>not sure why FIVE would have any evidence of articles being
>stored in it between 9 and 14 days ago, unless maybe you copied
>an existing cycbuff to create it.

There are, in fact, no articles in FIVE.  I don't know why cnfstat
disagrees.  The older date is probably when FIVE was created.  The Newer
date may be when SIX was removed.  No articles were ever stored in SIX.

>>>>1) I have articles stored in CNFS that appear to have been there for
>>>>more than two full rotations.
>
>So now that I have some idea of what your setup is like, maybe we
>can make some sense of this.  Can you identify an article that
>you feel is hanging around for too long, get the message ID, and
>do this:

I was basing my rotation rate on the date stamps of the buffers. 
Cnfsstat shows a much longer rotation period consistent with what the
oldest articles I see.

-- 
Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
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