🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83036

Re: Moving and adding cycbuff's (inn 2.5)

#83036
From: 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?
Technical Details
Message-ID: <hrle54$tce$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news1.google.com!news.glorb.com!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
References: <9799e$4bddcc08$bda4895b$11751@news.anarqy.com> <hrko8d$bm1$1@news.trigofacile.com> <bbb46$4bdde672$bda4895b$19062@news.anarqy.com> <hrkp6e$crv$1@news.trigofacile.com> <hrkqpg$nlm$2@n102.xanadu-bbs.net> <hrkrno$fkn$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <hrle54$tce$1@n102.xanadu-bbs.net>
Subject: Re: Moving and adding cycbuff's (inn 2.5)
Date: Sun, 02 May 2010 21:58:44 -0500
From: "John F. Morse" <john@example.invalid>
References: <9799e$4bddcc08$bda4895b$11751@news.anarqy.com> <hrko8d$bm1$1@news.trigofacile.com> <bbb46$4bdde672$bda4895b$19062@news.anarqy.com> <hrkp6e$crv$1@news.trigofacile.com> <hrkqpg$nlm$2@n102.xanadu-bbs.net> <hrkrno$fkn$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news1.google.com!news.glorb.com!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 203
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: n102.xanadu-bbs.net 1272855524 30094 192.168.89.210 (3 May 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Mon, 3 May 2010 02:58:44 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20100317)
In-Reply-To: <hrkrno$fkn$1@news.trigofacile.com>