🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Etian Sun, 02 May 2010 19:01
Moving and adding cycbuff's (inn 2.5)
#83023
Author: Etian
Date: Sun, 02 May 2010 19:01
30 lines
2303 bytes
The cycbuff manpage is pretty clear on retiring a cycbuff without 
expiring the articles in them.  But not so clear on the effect of moving 
or adding more cycbuffs.

Say I have sequential cycbuff's which I want to move onto a new larger 
RAID.  Is there anything wrong with this sequence of procedure:

1. Create new cycbuff files on the new RAID, and define each one with a 
cycbuff: line in cycbuff.conf.
2. Leave the old cycbuffs defined as before, but remove them from the 
metacycbuff: line.  List the new cycbuffs there instead.
3. restart innd.
4. copy the old cycbuffs to the new RAID.
5. In cycbuff.conf, change the cycbuff: definition for each of the old 
cycbuffs to point to their location on the new RAID.

6. Restart innd.
7. Delete the old cycbuff files from their old location.

Will the article token for the old cycbuffs now point to their new 
location on the new RAID? Or will it still be looking in the old file 
location?

I'm afraid of confusing things by putting the old files back into the 
metacycbuff line.  Seems better to leave them off, and just delete them 
when it's time for them to expire, then reuse the space with new cycbuff 
file names.

Etian
sonic-news
Re: Moving and adding cycbuff's (inn 2.5)
#83028
Author: Julien ÉLIE
Date: Sun, 02 May 2010 20:45
42 lines
3020 bytes
Hi Etian,

> 1. Create new cycbuff files on the new RAID, and define each one with a cycbuff: 
> line in cycbuff.conf.
> 2. Leave the old cycbuffs defined as before, but remove them from the metacycbuff: 
> line.  List the new cycbuffs there instead.
> 3. restart innd.
> 4. copy the old cycbuffs to the new RAID.
> 5. In cycbuff.conf, change the cycbuff: definition for each of the old cycbuffs to 
> point to their location on the new RAID.
> 6. Restart innd.
> 7. Delete the old cycbuff files from their old location.

I think you will also need between 5 and 6 to edit the header of your
old buffers with cnfsheadconf because it contains the path of the buffer:

% head frcnfs
CBuf3FR1/home/news/spool/cycbuffs/frcnfs00000000600000000000000000064000000000004a77133c0000000000000003FR0000000000000001FALSE0000000000000200


Though I never tried to move CNFS buffers, I believe it would work.
It is the same INN (and not a new compiled one).

I would be interested in having feedback after your operation!


Be sure to test that your old articles are readable via nnrpd before
deleting your old cycbuff files.


> I'm afraid of confusing things by putting the old files back into the metacycbuff 
> line.  Seems better to leave them off, and just delete them when it's time for 
> them to expire, then reuse the space with new cycbuff file names.

In case the copy + cnfsheadconf does not work, it will be wiser to
keep the old buffers.

-- 
Julien ÉLIE

« Rien ne serpe de courir ! » (Druides gaulois) 
Re: Moving and adding cycbuff's (inn 2.5)
#83027
Author: Etian
Date: Sun, 02 May 2010 20:54
12 lines
1398 bytes
Julien ÉLIE wrote:
> Hi Etian,
> 
> In case the copy + cnfsheadconf does not work, it will be wiser to
> keep the old buffers.
> 
In that case, I don't think I will even try.  I'll just leave them where 
they are, but remove them from the metacycbuff line so that they aren't 
written to any more.

Thanks.
Re: Moving and adding cycbuff's (inn 2.5)
#83029
Author: Julien ÉLIE
Date: Sun, 02 May 2010 21:01
23 lines
2239 bytes
Hi Etian,

>> In case the copy + cnfsheadconf does not work, it will be wiser to
>> keep the old buffers.
>>
> In that case, I don't think I will even try.

Oh, you could have tried.  Nothing would have blown up :)


> I'll just leave them where they are, but remove them from the metacycbuff line so 
> that they aren't written to any more.

OK, if there is no problem keeping the old ones, it will work fine.

I will have to test myself a rename one day!

-- 
Julien ÉLIE

« -- Qu'est-ce qu'on fait Astérix ? On coule ?
  -- Non, on écoule ! » (Astérix) 
Re: Moving and adding cycbuff's (inn 2.5)
#83032
Author: John F. Morse
Date: Sun, 02 May 2010 21:28
26 lines
2045 bytes
Julien ÉLIE wrote:
> Hi Etian,
>
>>> In case the copy + cnfsheadconf does not work, it will be wiser to
>>> keep the old buffers.
>>>
>> In that case, I don't think I will even try.
>
> Oh, you could have tried.  Nothing would have blown up :)
>
>
>> I'll just leave them where they are, but remove them from the 
>> metacycbuff line so that they aren't written to any more.
>
> OK, if there is no problem keeping the old ones, it will work fine.
>
> I will have to test myself a rename one day!
>

I was going to ask if unneeded cycbuffs could be renamed to save 
creation time, and then added to metacycbuffs where needed.

-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Moving and adding cycbuff's (inn 2.5)
#83033
Author: Julien ÉLIE
Date: Sun, 02 May 2010 21:44
15 lines
1971 bytes
Hi John,

> I was going to ask if unneeded cycbuffs could be renamed to save creation time, 
> and then added to metacycbuffs where needed.

With some cnfsheadconf magic, I believe it can work.
You will have to say that the whole buffer is free in the values
you put.

-- 
Julien ÉLIE

« -- C'est joli cette avenue le long de la mer... Ça s'appelle comment ?
  -- La promenade des Bretons. » (Astérix) 
Re: Moving and adding cycbuff's (inn 2.5)
#83036
Author: John F. Morse
Date: Mon, 03 May 2010 02:58
203 lines
12078 bytes
Hi Julien

>> I was going to ask if unneeded cycbuffs could be renamed to save 
>> creation time, and then added to metacycbuffs where needed.
>
> With some cnfsheadconf magic, I believe it can work.
> You will have to say that the whole buffer is free in the values
> you put.
>

I was examining the cnfsheadconf command with the -w option and found 
the following problems.

Here are two examples of errors when running cnfsheadconf.

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

1a. Using the following cycbuff.conf syntax:

metacycbuff:slowtext:sltxt01,sltxt02,sltxt03,sltxt04,\
sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,\
sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,\
sltxt19,sltxt20:SEQUENTIAL

news@n102:~$ cnfsheadconf -c vyfst02
Unknown config line 
"sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,\" in CycBuff 
Conffile /etc/news/cycbuff.conf ...
Unknown config line 
"sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,\" in CycBuff 
Conffile /etc/news/cycbuff.conf ...
Unknown config line "sltxt19,sltxt20:SEQUENTIAL" in CycBuff Conffile 
/etc/news/cycbuff.conf ...
 Buffer vyfst02, len: 256.00 Mbytes, used: 224.00 Mbytes (87.5%)   0 cycles
  Meta veryfast, order: 2, current: TRUE, blocksize: 4096
  Newest: 2010-05-02 20:30:42,    0 days,  0:03:41 ago

It appears the backslash line continuation is not allowed, but 
cycbuff.conf(8) states: "Long lines can be continued on the next line by 
ending the line with a backslash ("\")."

It didn't matter if the comma was before the backslash as shown above, 
or following it as the first character of the following line.

The cycbuffs are for metacycbuff slowtext but the cnfsheadconf -c 
command was for vyfst02.

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

1b. I edited cycbuff.conf syntax to put all the cycbufs on one line:

metacycbuff:slowtext:sltxt01,sltxt02,sltxt03,sltxt04,sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,sltxt19,sltxt20:SEQUENTIAL

news@n102:~$ cnfsheadconf -c vyfst02
 Buffer vyfst02, len: 256.00 Mbytes, used: 224.00 Mbytes (87.5%)   0 cycles
  Meta veryfast, order: 2, current: TRUE, blocksize: 4096
  Newest: 2010-05-02 20:30:42,    0 days,  0:07:40 ago

That seems to have fixed the "\" problem.

So is there a bug, or is the documentation in error?

Maybe I have a typo? Your eyes are refreshed from vacation. ;-)

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

2. Using just cnfsheadconf with no options results in the following 
errors (c.f. sltxt10 through sltxt15):

news@n102:~$ cnfsheadconf
 Buffer fstbn01, len: 512.00 Mbytes, used: 287.09 Mbytes (56.1%)   0 cycles
  Meta fastbins, order: 1, current: TRUE, blocksize: 4096
  Newest: 2010-05-02 18:28:22,    0 days,  2:28:32 ago
 Buffer fstbn02, len: 512.00 Mbytes, used: 0.03 Mbytes ( 0.0%)   0 cycles
  Meta fastbins, order: 2, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer fstbn03, len: 512.00 Mbytes, used: 0.03 Mbytes ( 0.0%)   0 cycles
  Meta fastbins, order: 3, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer fstbn04, len: 512.00 Mbytes, used: 0.03 Mbytes ( 0.0%)   0 cycles
  Meta fastbins, order: 4, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer fsttx01, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   2 cycles
  Meta fasttext, order: 1, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 19:05:02,   29 days,  1:51:52 ago
 Buffer fsttx02, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   2 cycles
  Meta fasttext, order: 2, current: FALSE, blocksize: 4096
  Newest: 2010-04-24 12:15:05,    8 days,  8:41:49 ago
 Buffer fsttx03, len: 2048.00 Mbytes, used: 634.61 Mbytes (31.0%)   1 cycles
  Meta fasttext, order: 3, current: TRUE, blocksize: 4096
  Newest: 2010-05-02 20:45:09,    0 days,  0:11:45 ago
 Buffer fsttx04, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta fasttext, order: 4, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  5:20:35,   29 days, 15:36:19 ago
 Buffer slbin01, len: 2048.00 Mbytes, used: 66.93 Mbytes ( 3.3%)   0 cycles
  Meta slowbins, order: 1, current: TRUE, blocksize: 4096
  Newest: 2010-05-02 18:28:22,    0 days,  2:28:32 ago
 Buffer slbin02, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowbins, order: 2, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer slbin03, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowbins, order: 3, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer slbin04, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowbins, order: 4, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer sltxt01, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 1, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  3:55:55,   29 days, 17:00:59 ago
 Buffer sltxt02, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 2, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  5:05:47,   29 days, 15:51:07 ago
 Buffer sltxt03, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 3, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 14:08:26,   29 days,  6:48:28 ago
 Buffer sltxt04, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 4, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 14:32:48,   29 days,  6:24:06 ago
 Buffer sltxt05, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 5, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 14:58:13,   29 days,  5:58:41 ago
 Buffer sltxt06, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 6, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 15:23:59,   29 days,  5:32:55 ago
 Buffer sltxt07, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 7, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 15:49:31,   29 days,  5:07:23 ago
 Buffer sltxt08, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 8, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 16:15:44,   29 days,  4:41:10 ago
 Buffer sltxt09, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
  Meta slowtext, order: 9, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 16:41:59,   29 days,  4:14:55 ago
 Buffer sltxt10, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
Argument "000000000000000a" isn't numeric in printf at 
/usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 17:45:45,   29 days,  3:11:09 ago
 Buffer sltxt11, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
Argument "000000000000000b" isn't numeric in printf at 
/usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 18:13:06,   29 days,  2:43:48 ago
 Buffer sltxt12, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
Argument "000000000000000c" isn't numeric in printf at 
/usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 18:41:00,   29 days,  2:15:54 ago
 Buffer sltxt13, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
Argument "000000000000000d" isn't numeric in printf at 
/usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
  Newest: 2010-04-03 19:16:27,   29 days,  1:40:27 ago
 Buffer sltxt14, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
Argument "000000000000000e" isn't numeric in printf at 
/usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
  Newest: 2010-04-22  0:58:48,   10 days, 19:58:06 ago
 Buffer sltxt15, len: 2048.00 Mbytes, used: 1156.39 Mbytes (56.5%)   0 
cycles
Argument "000000000000000f" isn't numeric in printf at 
/usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
  Meta slowtext, order: 0, current: TRUE, blocksize: 4096
  Newest: 2010-05-02 20:55:50,    0 days,  0:01:04 ago
 Buffer sltxt16, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowtext, order: 10, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer sltxt17, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowtext, order: 11, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer sltxt18, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowtext, order: 12, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer sltxt19, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowtext, order: 13, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer sltxt20, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
  Meta slowtext, order: 14, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer vyfst01, len: 256.00 Mbytes, used: 0.02 Mbytes ( 0.0%)   1 cycles
  Meta veryfast, order: 1, current: FALSE, blocksize: 4096
  Newest: 2010-04-14 12:28:59,   18 days,  8:27:55 ago
 Buffer vyfst02, len: 256.00 Mbytes, used: 224.09 Mbytes (87.5%)   0 cycles
  Meta veryfast, order: 2, current: TRUE, blocksize: 4096
  Newest: 2010-05-02 20:46:43,    0 days,  0:10:11 ago
 Buffer vyfst03, len: 256.00 Mbytes, used: 0.02 Mbytes ( 0.0%)   0 cycles
  Meta veryfast, order: 3, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
 Buffer vyfst04, len: 256.00 Mbytes, used: 0.02 Mbytes ( 0.0%)   0 cycles
  Meta veryfast, order: 4, current: FALSE, blocksize: 4096
  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago

The affected cycbuffs are sltxt10 through sltxt15, which is the current 
(TRUE) cycbuff.

It appears it doesn't understand hex. Shall we wait a little and see 
what happens when "16" (decimal) is used? ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Moving and adding cycbuff's (inn 2.5)
#83037
Author: John F. Morse
Date: Thu, 06 May 2010 22:16
214 lines
12456 bytes
John F. Morse wrote:
> Hi Julien
>
>>> I was going to ask if unneeded cycbuffs could be renamed to save 
>>> creation time, and then added to metacycbuffs where needed.
>>
>> With some cnfsheadconf magic, I believe it can work.
>> You will have to say that the whole buffer is free in the values
>> you put.
>>
>
> I was examining the cnfsheadconf command with the -w option and found 
> the following problems.
>
> Here are two examples of errors when running cnfsheadconf.
>
> ------------------------------------------------------------------------
>
> 1a. Using the following cycbuff.conf syntax:
>
> metacycbuff:slowtext:sltxt01,sltxt02,sltxt03,sltxt04,\
> sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,\
> sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,\
> sltxt19,sltxt20:SEQUENTIAL
>
> news@n102:~$ cnfsheadconf -c vyfst02
> Unknown config line 
> "sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,\" in CycBuff 
> Conffile /etc/news/cycbuff.conf ...
> Unknown config line 
> "sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,\" in CycBuff 
> Conffile /etc/news/cycbuff.conf ...
> Unknown config line "sltxt19,sltxt20:SEQUENTIAL" in CycBuff Conffile 
> /etc/news/cycbuff.conf ...
> Buffer vyfst02, len: 256.00 Mbytes, used: 224.00 Mbytes (87.5%)   0 
> cycles
>  Meta veryfast, order: 2, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 20:30:42,    0 days,  0:03:41 ago
>
> It appears the backslash line continuation is not allowed, but 
> cycbuff.conf(8) states: "Long lines can be continued on the next line 
> by ending the line with a backslash ("\")."
>
> It didn't matter if the comma was before the backslash as shown above, 
> or following it as the first character of the following line.
>
> The cycbuffs are for metacycbuff slowtext but the cnfsheadconf -c 
> command was for vyfst02.
>
> ------------------------------------------------------------------------
>
> 1b. I edited cycbuff.conf syntax to put all the cycbufs on one line:
>
> metacycbuff:slowtext:sltxt01,sltxt02,sltxt03,sltxt04,sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,sltxt19,sltxt20:SEQUENTIAL 
>
>
> news@n102:~$ cnfsheadconf -c vyfst02
> Buffer vyfst02, len: 256.00 Mbytes, used: 224.00 Mbytes (87.5%)   0 
> cycles
>  Meta veryfast, order: 2, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 20:30:42,    0 days,  0:07:40 ago
>
> That seems to have fixed the "\" problem.
>
> So is there a bug, or is the documentation in error?
>
> Maybe I have a typo? Your eyes are refreshed from vacation. ;-)
>
> ------------------------------------------------------------------------
>
> 2. Using just cnfsheadconf with no options results in the following 
> errors (c.f. sltxt10 through sltxt15):
>
> news@n102:~$ cnfsheadconf
> Buffer fstbn01, len: 512.00 Mbytes, used: 287.09 Mbytes (56.1%)   0 
> cycles
>  Meta fastbins, order: 1, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 18:28:22,    0 days,  2:28:32 ago
> Buffer fstbn02, len: 512.00 Mbytes, used: 0.03 Mbytes ( 0.0%)   0 cycles
>  Meta fastbins, order: 2, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer fstbn03, len: 512.00 Mbytes, used: 0.03 Mbytes ( 0.0%)   0 cycles
>  Meta fastbins, order: 3, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer fstbn04, len: 512.00 Mbytes, used: 0.03 Mbytes ( 0.0%)   0 cycles
>  Meta fastbins, order: 4, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer fsttx01, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   2 cycles
>  Meta fasttext, order: 1, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 19:05:02,   29 days,  1:51:52 ago
> Buffer fsttx02, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   2 cycles
>  Meta fasttext, order: 2, current: FALSE, blocksize: 4096
>  Newest: 2010-04-24 12:15:05,    8 days,  8:41:49 ago
> Buffer fsttx03, len: 2048.00 Mbytes, used: 634.61 Mbytes (31.0%)   1 
> cycles
>  Meta fasttext, order: 3, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 20:45:09,    0 days,  0:11:45 ago
> Buffer fsttx04, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta fasttext, order: 4, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  5:20:35,   29 days, 15:36:19 ago
> Buffer slbin01, len: 2048.00 Mbytes, used: 66.93 Mbytes ( 3.3%)   0 
> cycles
>  Meta slowbins, order: 1, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 18:28:22,    0 days,  2:28:32 ago
> Buffer slbin02, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowbins, order: 2, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer slbin03, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowbins, order: 3, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer slbin04, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowbins, order: 4, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer sltxt01, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 1, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  3:55:55,   29 days, 17:00:59 ago
> Buffer sltxt02, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 2, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  5:05:47,   29 days, 15:51:07 ago
> Buffer sltxt03, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 3, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 14:08:26,   29 days,  6:48:28 ago
> Buffer sltxt04, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 4, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 14:32:48,   29 days,  6:24:06 ago
> Buffer sltxt05, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 5, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 14:58:13,   29 days,  5:58:41 ago
> Buffer sltxt06, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 6, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 15:23:59,   29 days,  5:32:55 ago
> Buffer sltxt07, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 7, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 15:49:31,   29 days,  5:07:23 ago
> Buffer sltxt08, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 8, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 16:15:44,   29 days,  4:41:10 ago
> Buffer sltxt09, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
>  Meta slowtext, order: 9, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 16:41:59,   29 days,  4:14:55 ago
> Buffer sltxt10, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
> Argument "000000000000000a" isn't numeric in printf at 
> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 17:45:45,   29 days,  3:11:09 ago
> Buffer sltxt11, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
> Argument "000000000000000b" isn't numeric in printf at 
> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 18:13:06,   29 days,  2:43:48 ago
> Buffer sltxt12, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
> Argument "000000000000000c" isn't numeric in printf at 
> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 18:41:00,   29 days,  2:15:54 ago
> Buffer sltxt13, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
> Argument "000000000000000d" isn't numeric in printf at 
> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 19:16:27,   29 days,  1:40:27 ago
> Buffer sltxt14, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
> Argument "000000000000000e" isn't numeric in printf at 
> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>  Newest: 2010-04-22  0:58:48,   10 days, 19:58:06 ago
> Buffer sltxt15, len: 2048.00 Mbytes, used: 1156.39 Mbytes (56.5%)   0 
> cycles
> Argument "000000000000000f" isn't numeric in printf at 
> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>  Meta slowtext, order: 0, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 20:55:50,    0 days,  0:01:04 ago
> Buffer sltxt16, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowtext, order: 10, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer sltxt17, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowtext, order: 11, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer sltxt18, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowtext, order: 12, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer sltxt19, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowtext, order: 13, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer sltxt20, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   0 cycles
>  Meta slowtext, order: 14, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer vyfst01, len: 256.00 Mbytes, used: 0.02 Mbytes ( 0.0%)   1 cycles
>  Meta veryfast, order: 1, current: FALSE, blocksize: 4096
>  Newest: 2010-04-14 12:28:59,   18 days,  8:27:55 ago
> Buffer vyfst02, len: 256.00 Mbytes, used: 224.09 Mbytes (87.5%)   0 
> cycles
>  Meta veryfast, order: 2, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 20:46:43,    0 days,  0:10:11 ago
> Buffer vyfst03, len: 256.00 Mbytes, used: 0.02 Mbytes ( 0.0%)   0 cycles
>  Meta veryfast, order: 3, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
> Buffer vyfst04, len: 256.00 Mbytes, used: 0.02 Mbytes ( 0.0%)   0 cycles
>  Meta veryfast, order: 4, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03  2:06:38,   29 days, 18:50:16 ago
>
> The affected cycbuffs are sltxt10 through sltxt15, which is the 
> current (TRUE) cycbuff.
>
> It appears it doesn't understand hex. Shall we wait a little and see 
> what happens when "16" (decimal) is used? ;-)


Julien, did you see this message earlier?


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Moving and adding cycbuff's (inn 2.5)
#83039
Author: Julien ÉLIE
Date: Sat, 08 May 2010 11:12
104 lines
5295 bytes
Hi John,

> 1a. Using the following cycbuff.conf syntax:
>
> metacycbuff:slowtext:sltxt01,sltxt02,sltxt03,sltxt04,\
> sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,\
> sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,\
> sltxt19,sltxt20:SEQUENTIAL
>
> news@n102:~$ cnfsheadconf -c vyfst02
> Unknown config line "sltxt05,sltxt06,sltxt07,sltxt08,sltxt09,sltxt10,sltxt11,\" in 
> CycBuff Conffile /etc/news/cycbuff.conf ...
> Unknown config line "sltxt12,sltxt13,sltxt14,sltxt15,sltxt16,sltxt17,sltxt18,\" in 
> CycBuff Conffile /etc/news/cycbuff.conf ...
> Unknown config line "sltxt19,sltxt20:SEQUENTIAL" in CycBuff Conffile 
> /etc/news/cycbuff.conf ...
> Buffer vyfst02, len: 256.00 Mbytes, used: 224.00 Mbytes (87.5%)   0 cycles
>  Meta veryfast, order: 2, current: TRUE, blocksize: 4096
>  Newest: 2010-05-02 20:30:42,    0 days,  0:03:41 ago
>
> It appears the backslash line continuation is not allowed, but cycbuff.conf(8) 
> states: "Long lines can be continued on the next line by ending the line with a 
> backslash ("\")."
>
> 1b. I edited cycbuff.conf syntax to put all the cycbufs on one line:
> That seems to have fixed the "\" problem.
> So is there a bug, or is the documentation in error?

That's a bug in cnfsheadconf.  Now fixed.  Thanks!
The parser used by innd is not the same as the parser used by other
independent scripts like cnfsheadconf.


Index: cnfsheadconf.in
===================================================================
--- cnfsheadconf.in     (révision 9040)
+++ cnfsheadconf.in     (copie de travail)
@@ -116,8 +116,17 @@
     return 0 unless open (CONFFILE, $conffile);

     while(<CONFFILE>) {
-       $_ =~ s/^\s*(.*?)\s*$/$1/;
-       # \x23 below is #.  Emacs perl-mode gets confused by the "comment"
+        $_ =~ s/^\s*(.*?)\s*$/$1/;
+
+        # Read continuation lines.
+        while(/\\$/) {
+            chop;
+            chop($next = <CONFFILE>);
+            $next =~ s/^\s*(.*?)\s*$/$1/;
+            $_ .= $next;
+        }
+
+       # \x23 below is #.  Emacs perl-mode gets confused by the "comment".
        next if($_ =~ /^\s*$/ || $_ =~ /^\x23/);
        next if($_ =~ /^cycbuffupdate:/ || $_ =~ /^refreshinterval:/);




> Buffer sltxt10, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 cycles
> Argument "000000000000000a" isn't numeric in printf at 
> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>  Newest: 2010-04-03 17:45:45,   29 days,  3:11:09 ago
>
> It appears it doesn't understand hex. Shall we wait a little and see what happens 
> when "16" (decimal) is used? ;-)

That won't change anything.  It would parse "16" as though it was a decimal
whereas in fact it would be 0x16 = 16+6 = 22.

Anyway, that's a bug.  Thanks for having spotted it!
Now fixed.

Patch here:
    http://inn.eyrie.org/trac/changeset/9055/trunk



Here is an example of use:

% ./cnfsheadconf -c AUTRE2 -w
 Buffer AUTRE2, len: 1536.00 Mbytes, used: 1534.37 Mbytes (99.9%)   0 cycles
  Meta AUTRE, order: 12, current: TRUE, blocksize: 512
  Newest: 2010-05-08 12:16:19,    0 days,  0:44:04 ago

Buffer [AUTRE2] => AUTRE2
Path [/home/news/spool/cycbuffs/autrecnfs2] => /home/news/spool/cycbuffs/autrecnfs2
Length [1610612736 (0000000060000000)] => 1610612736
Free [1608906240 (000000005fe5f600)] => 1608906240
Meta [AUTRE] => AUTRE
Order [12 (000000000000000c)] => 12
Currentbuff [TRUE] => TRUE


Just tested.  It works fine.
And Etian can also use it to move his cyclic buffers :)

-- 
Julien ÉLIE

« I don't worry about terrorism.  I was married for two years. » (Sam Kinison)
Re: Moving and adding cycbuff's (inn 2.5)
#83042
Author: John F. Morse
Date: Mon, 10 May 2010 08:52
89 lines
4248 bytes
Julien ÉLIE wrote:

> That's a bug in cnfsheadconf.  Now fixed.  Thanks!
> The parser used by innd is not the same as the parser used by other
> independent scripts like cnfsheadconf.
>
>
> Index: cnfsheadconf.in
> ===================================================================
> --- cnfsheadconf.in     (révision 9040)
> +++ cnfsheadconf.in     (copie de travail)
> @@ -116,8 +116,17 @@
>     return 0 unless open (CONFFILE, $conffile);
>
>     while(<CONFFILE>) {
> -       $_ =~ s/^\s*(.*?)\s*$/$1/;
> -       # \x23 below is #.  Emacs perl-mode gets confused by the 
> "comment"
> +        $_ =~ s/^\s*(.*?)\s*$/$1/;
> +
> +        # Read continuation lines.
> +        while(/\\$/) {
> +            chop;
> +            chop($next = <CONFFILE>);
> +            $next =~ s/^\s*(.*?)\s*$/$1/;
> +            $_ .= $next;
> +        }
> +
> +       # \x23 below is #.  Emacs perl-mode gets confused by the 
> "comment".
>        next if($_ =~ /^\s*$/ || $_ =~ /^\x23/);
>        next if($_ =~ /^cycbuffupdate:/ || $_ =~ /^refreshinterval:/);
>
>
>
>
>> Buffer sltxt10, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 
>> cycles
>> Argument "000000000000000a" isn't numeric in printf at 
>> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>>  Newest: 2010-04-03 17:45:45,   29 days,  3:11:09 ago
>>
>> It appears it doesn't understand hex. Shall we wait a little and see 
>> what happens when "16" (decimal) is used? ;-)
>
> That won't change anything.  It would parse "16" as though it was a 
> decimal
> whereas in fact it would be 0x16 = 16+6 = 22.
>
> Anyway, that's a bug.  Thanks for having spotted it!
> Now fixed.
>
> Patch here:
>    http://inn.eyrie.org/trac/changeset/9055/trunk
>
> Here is an example of use:
>
> % ./cnfsheadconf -c AUTRE2 -w
> Buffer AUTRE2, len: 1536.00 Mbytes, used: 1534.37 Mbytes (99.9%)   0 
> cycles
>  Meta AUTRE, order: 12, current: TRUE, blocksize: 512
>  Newest: 2010-05-08 12:16:19,    0 days,  0:44:04 ago
>
> Buffer [AUTRE2] => AUTRE2
> Path [/home/news/spool/cycbuffs/autrecnfs2] => 
> /home/news/spool/cycbuffs/autrecnfs2
> Length [1610612736 (0000000060000000)] => 1610612736
> Free [1608906240 (000000005fe5f600)] => 1608906240
> Meta [AUTRE] => AUTRE
> Order [12 (000000000000000c)] => 12
> Currentbuff [TRUE] => TRUE
>
>
> Just tested.  It works fine.
> And Etian can also use it to move his cyclic buffers :)
>

Both patches applied.

Appears to fix the manual cnfsheadconf results.

Thanks Julien. :-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Moving and adding cycbuff's (inn 2.5)
#83043
Author: Julien ÉLIE
Date: Mon, 10 May 2010 18:22
19 lines
2231 bytes
Hi John,

> Both patches applied.
> Appears to fix the manual cnfsheadconf results.
>
> Thanks Julien.

You're welcome.  Thanks for having reported these bugs!

Incidentally, as you say you installed INN 2.5.2, did you notice
an improvement in innreport totals (incoming and outgoing articles)
compared with what you previously had with INN 2.5.1?

-- 
Julien ÉLIE

« Ne parlez jamais de vous, ni en bien, car on ne vous
  croirait pas, ni en mal car on ne vous croirait que trop. » (Confucius) 
Re: Moving and adding cycbuff's (inn 2.5)
#83046
Author: John F. Morse
Date: Tue, 11 May 2010 00:25
36 lines
2643 bytes
Hi Julien,

>> Both patches applied.
>> Appears to fix the manual cnfsheadconf results.
>>
>> Thanks Julien.
>
> You're welcome.  Thanks for having reported these bugs!
>
> Incidentally, as you say you installed INN 2.5.2, did you notice
> an improvement in innreport totals (incoming and outgoing articles)
> compared with what you previously had with INN 2.5.1?
>

I certainly do see a big improvement. Even bigger when compared to 2.4.5.

Also the HTML pages for the old 2.4.5 servers show odd totals about 
every nine days or so, but the 2.5.2 is very accurate.

Thanks for your effort, Julien.

One thing I have noticed after using xrefslave, etc., to load the new 
reader server is the cnfsstat -a provides the oldest date and time of 
the arrival of the articles (as you previously explained).

I would like to see the actual oldest date and time of the messages so I 
could better regulate their retention.

Would this be something you could someday add?



-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Moving and adding cycbuff's (inn 2.5)
#83048
Author: Julien ÉLIE
Date: Tue, 11 May 2010 20:15
35 lines
3000 bytes
Hi John,

>> Incidentally, as you say you installed INN 2.5.2, did you notice
>> an improvement in innreport totals (incoming and outgoing articles)
>> compared with what you previously had with INN 2.5.1?
>
> I certainly do see a big improvement. Even bigger when compared to 2.4.5.
>
> Also the HTML pages for the old 2.4.5 servers show odd totals about every nine 
> days or so, but the 2.5.2 is very accurate.

OK, thanks for your feedback.  That's great to hear!

What you see with INN 2.4.5 every nine days or so is a long-standing
connection that is closed.  Gathered stats will then be totally wrong.


> One thing I have noticed after using xrefslave, etc., to load the new reader 
> server is the cnfsstat -a provides the oldest date and time of the arrival of the 
> articles (as you previously explained).
>
> I would like to see the actual oldest date and time of the messages so I could 
> better regulate their retention.

I do not understand well what you want to do.
Do you mean posting time vs arrival time?  What for?
(Posting time would mean to parse the whole CNFS buffer, or the whole
history file...)

-- 
Julien ÉLIE

« Mettez-vous de profil avec les épaules de face
  et ne bougeons plus je vous prie. » (Astérix) 
Re: Moving and adding cycbuff's (inn 2.5)
#83055
Author: John F. Morse
Date: Wed, 12 May 2010 03:01
130 lines
7186 bytes
Hi Julien

>>> Incidentally, as you say you installed INN 2.5.2, did you notice
>>> an improvement in innreport totals (incoming and outgoing articles)
>>> compared with what you previously had with INN 2.5.1?
>>
>> I certainly do see a big improvement. Even bigger when compared to 
>> 2.4.5.
>>
>> Also the HTML pages for the old 2.4.5 servers show odd totals about 
>> every nine days or so, but the 2.5.2 is very accurate.
>
> OK, thanks for your feedback.  That's great to hear!
>
> What you see with INN 2.4.5 every nine days or so is a long-standing
> connection that is closed.  Gathered stats will then be totally wrong.


That would explain it.


>> One thing I have noticed after using xrefslave, etc., to load the new 
>> reader server is the cnfsstat -a provides the oldest date and time of 
>> the arrival of the articles (as you previously explained).
>>
>> I would like to see the actual oldest date and time of the messages 
>> so I could better regulate their retention.
>
> I do not understand well what you want to do.
> Do you mean posting time vs arrival time?  What for?
> (Posting time would mean to parse the whole CNFS buffer, or the whole
> history file...)


I need to know the date(s) of the oldest article in each buffer so I can 
determine the retention time. Like 2.4.5 does.

Right now most every cycbuff shows April 3, probably because that is the 
day all the news was streamed over from the old server.

I would suspect the oldest dates would eventually change after a 
roll-over (the metacycbuffs are SEQUENTIAL), but it doesn't appear to be 
happening.

I don't know what the problem is, but take a look at the "oldest" dates 
in some of these cycbuffs that have rolled over:

Class fasttext for groups matching 
"news.admin.net-abuse.email,news.admin.net-abuse.sightings,*.jobs*,perl.cpan.testers"
 Buffer fsttx01, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
  Newest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
  Oldest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
 Buffer fsttx02, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
  Newest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
  Oldest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
 Buffer fsttx03, size:  2.00 GBytes, position:  1.29 GBytes  1.65 cycles
  Newest: 2010-05-11 21:15:09,    0 days,  0:00:31 ago
  Oldest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
 Buffer fsttx04, size:  2.00 GBytes, position:  80.0 kBytes  1.00 cycles
  Newest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
  Oldest: 2010-04-03  4:37:32,   38 days, 16:38:08 ago

Notice the oldest seems to be stuck on 2010-04-03 for cycbuffs fsttx01, 
fsttx02 and fsttx04, which have all gone through at least one cycle, and 
with fsttx01 and fsttx02 two cycles.

However fsttx03 which also has gone through one complete cycle, shows 
2010-04-24 as the oldest. Something just doesn't seem right.

Here is another class, which has strange "oldest" dates:

news@n102:~$ date ; cnfsstat -a
Tue May 11 21:15:39 CDT 2010
Class veryfast for groups matching 
"control.cancel,*.test,news.lists.filters"
 Buffer vyfst01, size:   256 MBytes, position:  16.0 kBytes  1.00 cycles
  Newest: 2010-04-14 12:28:59,   27 days,  8:46:40 ago
  Oldest: 2010-04-03  2:22:00,   38 days, 18:53:39 ago
 Buffer vyfst02, size:   256 MBytes, position:  16.0 kBytes  1.00 cycles
  Newest: 2010-05-05 22:11:05,    5 days, 23:04:35 ago
  Oldest: 2010-04-14 12:31:17,   27 days,  8:44:23 ago
 Buffer vyfst03, size:   256 MBytes, position:  72.9 MBytes  0.28 cycles
  Newest: 2010-05-11 21:01:50,    0 days,  0:13:50 ago
  Oldest: 2010-05-05 22:11:05,    5 days, 23:04:35 ago
 Buffer vyfst04, size:   256 MBytes, position:  16.0 kBytes  0.00 cycles
  Newest: 2010-04-03  2:06:38,   38 days, 19:09:02 ago
  Oldest: 2010-05-05 22:11:05,    5 days, 23:04:35 ago

Here, vyfst04 has not yet been used, but the oldest date is 2010-05-05.

Chances are that vyfst01 has 2010-04-03 as the oldest because that is 
the date the server was loaded, but then why does vyfst02 show a later 
oldest date?

These are small cycbuffs and should have ran over quickly. Here is the 
same class of groups on the transit server and old reader server (both 
2.4.5):

news@optima2:~$ date ; cnfsstat -a
Tue May 11 21:38:34 CDT 2010
Class veryfast  for groups matching 
"control.cancel,*.test,news.lists.filters"
 Buffer 001, size:  64.0 MBytes, position:  2.93 MBytes  24.05 cycles
  Newest: 2010-05-11 21:37:49,    0 days,  0:00:48 ago
  Oldest: 2010-04-28  4:01:06,   13 days, 17:37:31 ago

news@optima5:~$ date ; cnfsstat -a
Tue May 11 21:39:01 CDT 2010
Class veryfast  for groups matching 
"control.cancel,*.test,news.lists.filters"
 Buffer 001, size:  64.0 MBytes, position:  10.9 MBytes  24.17 cycles
  Newest: 2010-05-11 21:37:49,    0 days,  0:01:14 ago
  Oldest: 2010-04-28  4:18:31,   13 days, 17:20:32 ago

These have only 1/16th the capacity as the n102 server (64 MB vs 256 MB x4)

I don't know if this is a problem, or if I'm not reading it correctly. I 
can wait and keep an eye on it if you don't see a problem. Maybe someone 
else can look a little deeper at their 2.5.2 and verify whether what I 
see is similar to their stats or not?

The old 2.4.5 servers are all reporting good cnfsstats, but they didn't 
have the whole spool filled in one day, and their oldest goes back some 
353 days instead of 38. ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Moving and adding cycbuff's (inn 2.5)
#83063
Author: Julien ÉLIE
Date: Sat, 22 May 2010 19:55
94 lines
5361 bytes
Hi John,

> I need to know the date(s) of the oldest article in each buffer so I can determine 
> the retention time. Like 2.4.5 does.

The functioning has not changed since 2.4.5.


> I would suspect the oldest dates would eventually change after a roll-over (the 
> metacycbuffs are SEQUENTIAL), but it doesn't appear to be happening.
>
> I don't know what the problem is, but take a look at the "oldest" dates in some of 
> these cycbuffs that have rolled over:
>
> Class fasttext for groups matching 
> "news.admin.net-abuse.email,news.admin.net-abuse.sightings,*.jobs*,perl.cpan.testers"
> Buffer fsttx01, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
>  Newest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
>  Oldest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
> Buffer fsttx02, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
>  Newest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>  Oldest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
> Buffer fsttx03, size:  2.00 GBytes, position:  1.29 GBytes  1.65 cycles
>  Newest: 2010-05-11 21:15:09,    0 days,  0:00:31 ago
>  Oldest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
> Buffer fsttx04, size:  2.00 GBytes, position:  80.0 kBytes  1.00 cycles
>  Newest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
>  Oldest: 2010-04-03  4:37:32,   38 days, 16:38:08 ago

I do not see any contradiction.
Your buffers are sequential so:
   oldest of 04 <= newest of 04 <= oldest of 01 <= newest of 01 <= oldest of 02
<= newest of 02 <= oldest of 03 <= newest of 03.


> Notice the oldest seems to be stuck on 2010-04-03 for cycbuffs fsttx01, fsttx02 
> and fsttx04, which have all gone through at least one cycle, and with fsttx01 and 
> fsttx02 two cycles.
>
> However fsttx03 which also has gone through one complete cycle, shows 2010-04-24 
> as the oldest. Something just doesn't seem right.

What does not seem right?


> Buffer vyfst04, size:   256 MBytes, position:  16.0 kBytes  0.00 cycles
>  Newest: 2010-04-03  2:06:38,   38 days, 19:09:02 ago
>  Oldest: 2010-05-05 22:11:05,    5 days, 23:04:35 ago
>
> Here, vyfst04 has not yet been used, but the oldest date is 2010-05-05.

How did you create it?  Copying another cycbuff?  Or using "dd" as the
man page suggests.
I also suggest you wait for its proper initialization (receiving its
first article).


Note:  I have just tested a new empty but initialized cycbuff and I have:
  Newest: 2010-05-22 21:45:45,    0 days,  0:00:54 ago
  Oldest: 1970-01-01  1:00:00, 14751 days, 19:46:39 ago

So newest is time of creation and oldest is hmm... unset :)
cnfsstat does not find any article.


Maybe what you see is a non-initialization of $oldart (which would
then copy the value of your previous initialized buffer).

Could you try this patch and see whether the oldest article is now undefined?

--- cnfsstat.in (révision 9052)
+++ cnfsstat.in (copie de travail)
@@ -411,6 +415,7 @@

 sub get_cycbuff_info {
     my($buffpath) = $_[0];
+    my $oldart;

     my($CNFSMASIZ)=8;
     my($CNFSNASIZ)=16;



> Chances are that vyfst01 has 2010-04-03 as the oldest because that is the date the 
> server was loaded, but then why does vyfst02 show a later oldest date?

That's normal.  Why shouldn't it?  It is a sequential write.

-- 
Julien ÉLIE

« Boire du café empêche de dormir. Par contre, dormir empêche
  de boire du café. » (Philippe Geluck) 
Re: Moving and adding cycbuff's (inn 2.5)
#83066
Author: John F. Morse
Date: Sun, 23 May 2010 16:18
141 lines
6810 bytes
Hi Julien

>> I would suspect the oldest dates would eventually change after a 
>> roll-over (the metacycbuffs are SEQUENTIAL), but it doesn't appear to 
>> be happening.
>>
>> I don't know what the problem is, but take a look at the "oldest" 
>> dates in some of these cycbuffs that have rolled over:
>>
>> Class fasttext for groups matching 
>> "news.admin.net-abuse.email,news.admin.net-abuse.sightings,*.jobs*,perl.cpan.testers" 
>>
>> Buffer fsttx01, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
>>  Newest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
>>  Oldest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
>> Buffer fsttx02, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
>>  Newest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>>  Oldest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
>> Buffer fsttx03, size:  2.00 GBytes, position:  1.29 GBytes  1.65 cycles
>>  Newest: 2010-05-11 21:15:09,    0 days,  0:00:31 ago
>>  Oldest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>> Buffer fsttx04, size:  2.00 GBytes, position:  80.0 kBytes  1.00 cycles
>>  Newest: 2010-04-03  5:20:35,   38 days, 15:55:05 ago
>>  Oldest: 2010-04-03  4:37:32,   38 days, 16:38:08 ago
>
> I do not see any contradiction.
> Your buffers are sequential so:
>   oldest of 04 <= newest of 04 <= oldest of 01 <= newest of 01 <= 
> oldest of 02
> <= newest of 02 <= oldest of 03 <= newest of 03.


I see that 03 has an older date than 02, which precedes it.


>> Notice the oldest seems to be stuck on 2010-04-03 for cycbuffs 
>> fsttx01, fsttx02 and fsttx04, which have all gone through at least 
>> one cycle, and with fsttx01 and fsttx02 two cycles.
>>
>> However fsttx03 which also has gone through one complete cycle, shows 
>> 2010-04-24 as the oldest. Something just doesn't seem right.
>
> What does not seem right?


That it shows an older date than the 02 buffer which precedes it.

It may be right if that is how the program works, but it doesn't "seem" 
right to have an older date on something that is more current.


>> Buffer vyfst04, size:   256 MBytes, position:  16.0 kBytes  0.00 cycles
>>  Newest: 2010-04-03  2:06:38,   38 days, 19:09:02 ago
>>  Oldest: 2010-05-05 22:11:05,    5 days, 23:04:35 ago
>>
>> Here, vyfst04 has not yet been used, but the oldest date is 2010-05-05.
>
> How did you create it?  Copying another cycbuff?  Or using "dd" as the
> man page suggests.


I used the dd method -- no copying.


> I also suggest you wait for its proper initialization (receiving its
> first article).


That is what I had decided to do.

Since the server seems to be "serving" properly, and the odd things I'm 
discovering all have to do with administrative reporting, I decided to 
just let it run and straighten out what it can.


> Note:  I have just tested a new empty but initialized cycbuff and I have:
>  Newest: 2010-05-22 21:45:45,    0 days,  0:00:54 ago
>  Oldest: 1970-01-01  1:00:00, 14751 days, 19:46:39 ago
>
> So newest is time of creation and oldest is hmm... unset :)
> cnfsstat does not find any article.
>
>
> Maybe what you see is a non-initialization of $oldart (which would
> then copy the value of your previous initialized buffer).


I too believe that is the reason.

My mind was trying to see the actual date stamped in the header instead 
of when the articles were filed.

I think the age of a message, determined by the date it was originated, 
is more meaningful than the date it was placed into the spool.

This is quite important when an old server is xrefslaved into a new 
server. How else can the administrator determine the ages of CNFS 
articles, other than a time-consuming investigation with a newsreader 
(or using a text editor on a tradspool to read headers)?


> Could you try this patch and see whether the oldest article is now 
> undefined?
>
> --- cnfsstat.in (révision 9052)
> +++ cnfsstat.in (copie de travail)
> @@ -411,6 +415,7 @@
>
> sub get_cycbuff_info {
>     my($buffpath) = $_[0];
> +    my $oldart;
>
>     my($CNFSMASIZ)=8;
>     my($CNFSNASIZ)=16;
>
>> Chances are that vyfst01 has 2010-04-03 as the oldest because that is 
>> the date the server was loaded, but then why does vyfst02 show a 
>> later oldest date?
>
> That's normal.  Why shouldn't it?  It is a sequential write.

Sequential shouldn't matter. If a newer cycbuff has articles that show 
older dates, then it is misleading information, IMHO.

That dating of articles is one reason for choosing sequential, so the 
dates can be tracked, and sizes and amounts of cycbuffs rearranged if 
necessary.

I'm willing to just sit back and let it all catch up someday. It may 
take months for the large class with many sequential cycbuffs.

There may be newer release versions installed before that time, like a 
cat constantly running around in a circle, trying to catch its tail.

Thanks for your comments, Julien.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Moving and adding cycbuff's (inn 2.5)
#83067
Author: Julien ÉLIE
Date: Sun, 23 May 2010 16:35
52 lines
4001 bytes
Hi John,

>>> Buffer fsttx02, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
>>>  Newest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>>>  Oldest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
>>>
>>> Buffer fsttx03, size:  2.00 GBytes, position:  1.29 GBytes  1.65 cycles
>>>  Newest: 2010-05-11 21:15:09,    0 days,  0:00:31 ago
>>>  Oldest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>>
>> I do not see any contradiction.
>> Your buffers are sequential so:
>> oldest of 04 <= newest of 04 <= oldest of 01 <= newest of 01 <= oldest of 02
>> <= newest of 02 <= oldest of 03 <= newest of 03.
>
> I see that 03 has an older date than 02, which precedes it.

newest 02 = 2010-04-24 12:15:05
oldest 03 = 2010-04-24 12:15:05

What is the older date you mention?
They are the same, and it is fine (two articles coming in a row for instance).

02 is filled from oldest (2010-04-03) to newest (2010-04-24) and then
03 is filled from oldest (2010-04-24) to newest (2010-05-11).

What bothers you in these dates?
(They are arrival times.)



> My mind was trying to see the actual date stamped in the header instead
> of when the articles were filed.
>
> I think the age of a message, determined by the date it was originated,
> is more meaningful than the date it was placed into the spool.

Articles do not come in order.  If I send today (May, 23rd) a message
dated from May, 13th, it would not be helpful to know that the newest
message is from May, 13th.  Unless you want oldest and newest to reflect
the min and the max of all the articles contained in a cycbuff?  Well,
cnfsstat and cycbuffs are not designed to work this way!  We would need
to write such dates in the cycbuffs headers for instance...
Or cnfsstat would have to parse the whole buffer to compute them, which
may take time...

-- 
Julien ÉLIE

« Dans l'algèbre comme dans la police, il faut identifier X. »
  (André Frédérique) 
Re: Moving and adding cycbuff's (inn 2.5)
#83069
Author: John F. Morse
Date: Sun, 23 May 2010 17:08
94 lines
5559 bytes
Julien ÉLIE wrote:
> Hi John,
>
>>>> Buffer fsttx02, size:  2.00 GBytes, position:  80.0 kBytes  2.00 
>>>> cycles
>>>>  Newest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>>>>  Oldest: 2010-04-03 19:05:02,   38 days,  2:10:38 ago
>>>>
>>>> Buffer fsttx03, size:  2.00 GBytes, position:  1.29 GBytes  1.65 
>>>> cycles
>>>>  Newest: 2010-05-11 21:15:09,    0 days,  0:00:31 ago
>>>>  Oldest: 2010-04-24 12:15:05,   17 days,  9:00:35 ago
>>>
>>> I do not see any contradiction.
>>> Your buffers are sequential so:
>>> oldest of 04 <= newest of 04 <= oldest of 01 <= newest of 01 <= 
>>> oldest of 02
>>> <= newest of 02 <= oldest of 03 <= newest of 03.
>>
>> I see that 03 has an older date than 02, which precedes it.
>
> newest 02 = 2010-04-24 12:15:05
> oldest 03 = 2010-04-24 12:15:05
>
> What is the older date you mention?
> They are the same, and it is fine (two articles coming in a row for 
> instance).
>
> 02 is filled from oldest (2010-04-03) to newest (2010-04-24) and then
> 03 is filled from oldest (2010-04-24) to newest (2010-05-11).
>
> What bothers you in these dates?
> (They are arrival times.)

I don't know, Julien.

I'm really confused now. I guess my mind is focused on the posted date 
or age of the articles and not on when they were "injected" into that 
particular server. :-\

Perhaps I was looking at 04 (see below) which shows the oldest is older 
than 03.

I suspect this is because all four cycbuffs were originally filled on 
2010-04-03, on the day the new server was first filled from the old 
server. So the "oldest" remains the same without changing until used on 
a later date.

It is just the 03 oldest date sticks out like a sore thumb because it 
filled up after the second cycle (after 2010-04-03) on 2010-04-24.

And 04 still has articles from the original 2010-04-03 date, which will 
be overwritten as the cycbuff fills.


 Buffer fsttx01, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
  Newest: 2010-04-03 19:05:02,   49 days, 16:36:51 ago
  Oldest: 2010-04-03  5:20:35,   50 days,  6:21:18 ago
 Buffer fsttx02, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
  Newest: 2010-04-24 12:15:05,   28 days, 23:26:48 ago
  Oldest: 2010-04-03 19:05:02,   49 days, 16:36:51 ago
 Buffer fsttx03, size:  2.00 GBytes, position:  80.0 kBytes  2.00 cycles
  Newest: 2010-05-19 14:45:10,    3 days, 20:56:43 ago
  Oldest: 2010-04-24 12:15:05,   28 days, 23:26:48 ago
 Buffer fsttx04, size:  2.00 GBytes, position:   431 MBytes  1.21 cycles
  Newest: 2010-05-23 11:36:53,    0 days,  0:05:00 ago
  Oldest: 2010-04-03  4:46:18,   50 days,  6:55:35 ago


> Articles do not come in order.  If I send today (May, 23rd) a message
> dated from May, 13th, it would not be helpful to know that the newest
> message is from May, 13th.  Unless you want oldest and newest to reflect
> the min and the max of all the articles contained in a cycbuff?  Well,
> cnfsstat and cycbuffs are not designed to work this way!  We would need
> to write such dates in the cycbuffs headers for instance...
> Or cnfsstat would have to parse the whole buffer to compute them, which
> may take time...


I understand. The overhead to do that work now would be greater than if 
some date flag had been stored as the messages arrived. But then you 
would have the problem of updating the date when messages were expired.

Don't worry about this Julien. I'm sure it is working as designed, and 
will eventually become more clear when these cycbuffs get newer "oldest" 
dates other than the one from Day One of 2010-04-03.

Thanks for examining my ramblings. ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
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