Thread View: news.software.nntp
6 messages
6 total messages
Started by David Swanger
Fri, 26 Jan 2001 20:21
CNFS problem
Author: David Swanger
Date: Fri, 26 Jan 2001 20:21
Date: Fri, 26 Jan 2001 20:21
84 lines
3941 bytes
3941 bytes
I created a metacycbuff named ALT. It contains five cycbuffs
named ALT1,ATL2,ALT3,ALT4 and ALT5.
Here are the lines from cycbuff.conf:
******
cycbuff:ALT1:/usr/local/news/spool/CNFS/altbuff01:1024000
cycbuff:ALT2:/usr/local/news/spool/CNFS/altbuff02:1024000
cycbuff:ALT3:/usr/local/news/spool/CNFS/altbuff03:1024000
cycbuff:ALT4:/usr/local/news/spool/CNFS/altbuff04:1024000
cycbuff:ALT5:/usr/local/news/spool/CNFS/altbuff05:1024000
metacycbuff:ALT:ALT1,ALT2,ALT3,ALT4,ALT5
******
The lines in storage.conf are:
******
method cnfs {
class: 6
newsgroups: alt.*
options: ALT
}
******
I created the buffer files with the following commands:
******
/bin/dd if=/dev/zero of=/usr/local/news/spool/CNFS/altbuff001 bs=1024k count=1000
/bin/dd if=/dev/zero of=/usr/local/news/spool/CNFS/altbuff002 bs=1024k count=1000
/bin/dd if=/dev/zero of=/usr/local/news/spool/CNFS/altbuff003 bs=1024k count=1000
/bin/dd if=/dev/zero of=/usr/local/news/spool/CNFS/altbuff004 bs=1024k count=1000
/bin/dd if=/dev/zero of=/usr/local/news/spool/CNFS/altbuff005 bs=1024k count=1000
******
Before I continue, my goal here was to create a 5G cnfs buffer for alt.* messages (I
have a separate cnfs buffer for alt.binaries). Did I make a mistake on any of these?
It seems to be working fine. However, it seems to only retain 21 days worth
of articles. For example, I see the following if I enter the command:
cnfsstat -a -c ALT
******
Class ALT for groups matching "alt.*"
Buffer ALT1, size: 1000 MBytes, position: 64.5 MBytes 1.00 cycles
Newest: 2001-01-26 14:03:44, 0 days, 0:00:16 ago
Oldest: 2001-01-05 15:09:22, 20 days, 22:54:38 ago
Buffer ALT2, size: 1000 MBytes, position: 62.7 MBytes 1.00 cycles
Newest: 2001-01-26 14:03:44, 0 days, 0:00:16 ago
Oldest: 2001-01-05 14:45:14, 20 days, 23:18:46 ago
Buffer ALT3, size: 1000 MBytes, position: 64.5 MBytes 1.00 cycles
Newest: 2001-01-26 14:03:44, 0 days, 0:00:17 ago
Oldest: 2001-01-05 15:18:34, 20 days, 22:45:27 ago
Buffer ALT4, size: 1000 MBytes, position: 64.8 MBytes 1.00 cycles
Newest: 2001-01-26 14:03:44, 0 days, 0:00:17 ago
Oldest: 2001-01-05 15:42:38, 20 days, 22:21:23 ago
Buffer ALT5, size: 1000 MBytes, position: 64.2 MBytes 1.00 cycles
Newest: 2001-01-26 14:03:44, 0 days, 0:00:17 ago
Oldest: 2001-01-05 15:20:20, 20 days, 22:43:41 ago
******
If I wait a short while and re-enter the command, the oldest file is
always newer than 21 days. I thought the buffers would retain articles
until the buffers were full, then would start over-writing articles.
Maybe I don't understand the cnfsstat output.
Oh yes, I'm running INN 2.3.1 on a Sun Ultra 2 (Solaris 8).
I guess my question is, why aren't these buffers filling up (or are
they and I'm just not understanding the cnfsstat messages)???
Thanks!
--
David Swanger
Office of Information Technology
Auburn University, AL
swangdb@mail.auburn.edu
Re: CNFS problem
Author: Andrew Gierth
Date: Fri, 26 Jan 2001 20:40
Date: Fri, 26 Jan 2001 20:40
23 lines
1975 bytes
1975 bytes
>>>>> "David" == David Swanger <swangdb@mail.auburn.edu> writes: David> Before I continue, my goal here was to create a 5G cnfs buffer David> for alt.* messages (I have a separate cnfs buffer for David> alt.binaries). Did I make a mistake on any of these? David> It seems to be working fine. However, it seems to only retain David> 21 days worth of articles. that sounds plausible for 5G of alt.* without binaries, though obviously it depends on how many groups you're carrying and how heavily you filter. what were you expecting? David> If I wait a short while and re-enter the command, the oldest David> file is always newer than 21 days. I thought the buffers David> would retain articles until the buffers were full, then would David> start over-writing articles. yes, that's exactly what happens. -- Andrew.
Re: CNFS problem
Author: David Swanger
Date: Fri, 26 Jan 2001 20:48
Date: Fri, 26 Jan 2001 20:48
43 lines
2699 bytes
2699 bytes
Andrew Gierth (andrew@erlenstar.demon.co.uk) wrote: : >>>>> "David" == David Swanger <swangdb@mail.auburn.edu> writes: : David> Before I continue, my goal here was to create a 5G cnfs buffer : David> for alt.* messages (I have a separate cnfs buffer for : David> alt.binaries). Did I make a mistake on any of these? : David> It seems to be working fine. However, it seems to only retain : David> 21 days worth of articles. : that sounds plausible for 5G of alt.* without binaries, though : obviously it depends on how many groups you're carrying and how : heavily you filter. what were you expecting? 21 days is probably enough, but the buffers don't appear to be full. For example: Buffer ALT1, size: 1000 MBytes, position: 64.8 MBytes 1.00 cycles Buffer ALT2, size: 1000 MBytes, position: 63.0 MBytes 1.00 cycles Buffer ALT3, size: 1000 MBytes, position: 64.9 MBytes 1.00 cycles Buffer ALT4, size: 1000 MBytes, position: 65.3 MBytes 1.00 cycles Buffer ALT5, size: 1000 MBytes, position: 64.6 MBytes 1.00 cycles If the buffers are only going to use 6 to 7% of the file, I may as well use a smaller buffer and save some disk space. : David> If I wait a short while and re-enter the command, the oldest : David> file is always newer than 21 days. I thought the buffers : David> would retain articles until the buffers were full, then would : David> start over-writing articles. : yes, that's exactly what happens. Yet it appears that the buffers aren't anywhere near full. -- David Swanger Office of Information Technology Auburn University, AL swangdb@mail.auburn.edu
Re: CNFS problem
Author: Jeroen Scheerder
Date: Fri, 26 Jan 2001 20:58
Date: Fri, 26 Jan 2001 20:58
24 lines
2041 bytes
2041 bytes
David Swanger <swangdb@mail.auburn.edu>:
> 21 days is probably enough, but the buffers don't
> appear to be full. For example:
>
> Buffer ALT1, size: 1000 MBytes, position: 64.8 MBytes 1.00 cycles
> Buffer ALT2, size: 1000 MBytes, position: 63.0 MBytes 1.00 cycles
> Buffer ALT3, size: 1000 MBytes, position: 64.9 MBytes 1.00 cycles
> Buffer ALT4, size: 1000 MBytes, position: 65.3 MBytes 1.00 cycles
> Buffer ALT5, size: 1000 MBytes, position: 64.6 MBytes 1.00 cycles
>
> If the buffers are only going to use 6 to 7% of the file, I
> may as well use a smaller buffer and save some disk space.
It _is_ a cyclic buffer, in the end, that has rolled over.
If it's currently at 7%, that means new messages are stored on top of
the messages written in the previous cycle. It's full all right; newest
message is just before current insertion point, oldest message just
after.
-- J$
Re: CNFS problem
Author: Andrew Gierth
Date: Fri, 26 Jan 2001 22:05
Date: Fri, 26 Jan 2001 22:05
18 lines
1814 bytes
1814 bytes
>>>>> "David" == David Swanger <swangdb@mail.auburn.edu> writes: David> 21 days is probably enough, but the buffers don't David> appear to be full. For example: David> Buffer ALT1, size: 1000 MBytes, position: 64.8 MBytes 1.00 cycles this means, AIUI, that the buffer has been round once (and is therefore full of articles) and has progressed through 64.8 MBytes on the second cycle. (The buffer is always full except on the first cycle, regardless of what the current position in it is.) If you wait a while, does the position increase as expected with incoming articles? -- Andrew.
Re: CNFS problem
Author: David Swanger
Date: Mon, 29 Jan 2001 16:46
Date: Mon, 29 Jan 2001 16:46
29 lines
2045 bytes
2045 bytes
Andrew Gierth (andrew@erlenstar.demon.co.uk) wrote: : >>>>> "David" == David Swanger <swangdb@mail.auburn.edu> writes: : David> 21 days is probably enough, but the buffers don't : David> appear to be full. For example: : David> Buffer ALT1, size: 1000 MBytes, position: 64.8 MBytes 1.00 cycles : this means, AIUI, that the buffer has been round once (and is : therefore full of articles) and has progressed through 64.8 MBytes on : the second cycle. (The buffer is always full except on the first cycle, : regardless of what the current position in it is.) : If you wait a while, does the position increase as expected with : incoming articles? Oops, I think you must be right. Yes, the position increases. Looking at some of the other CNFS buffers, they're way past the first cycle. Now I get it. I think. -- David Swanger Office of Information Technology Auburn University, AL swangdb@mail.auburn.edu
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