🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Ian G Batten Wed, 17 Sep 2003 08:05
INN 2.5.0 with cnfs --- status on Linux?
#66694
Author: Ian G Batten
Date: Wed, 17 Sep 2003 08:05
41 lines
2705 bytes
What is the current status of the buffindex overviews and cycbuff
storage modes?  Under Redhat 9.0 I cannot get either to work
reliably.  

Buffindex into a a pre-created 2G minus epsilon file appeared to work,
but after a night of use most of the overviews were corrupt to the point
that nnrpd coredumped.

Cycbuff into a pool of pre-created files appears to be working, but
cnfsstat reports 2G minus epsilon files as being 1G:

[root@news-out root]# /usr/lib/news/bin/cnfsstat -a
Class ARTICLES  for groups matching "*"
 Buffer ONE, size:  1.00 GBytes, position:   944 MBytes  0.00 cycles
  Newest: 2003-09-17  9:01:05,    0 days,  0:00:14 ago
  Oldest: 2003-09-15 17:44:05,    1 days, 15:17:14 ago
[...]
[root@news-out root]# grep ONE /etc/news/cycbuff.conf 
cycbuff:ONE:/var/news/articles1:2000000
metacycbuff:ARTICLES:ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN:SEQUENTIAL
[root@news-out root]# ls -l /var/news/articles1
-rw-r--r--    1 news     news     2048000000 Sep 17 09:01 /var/news/articles1
[root@news-out root]# 

Because of the problems with buffindex, I've moved to tradindexd
overviews, but an attempt to recreate the overviews into the tradindex
with mkhistory -OxF spun, with the spinning process doing this:

pread(4, "\0\6\30\261?e\354\362\2\0\0\0", 12, 9017344) = 12
munmap(0, 1988)                         = 0
pread(4, "\0\6\30\261?e\354\362\2\0\0\0", 12, 9017344) = 12
munmap(0, 1988)                         = 0
[ exactly the same until killed ]

Should I give up the whole storage situation as a bad job and move to
traditional spool and tradindex?  Or is it under active development and
fixing, in which case how can I help?

ian

Re: INN 2.5.0 with cnfs --- status on Linux?
#66695
Author: Miquel van Smoorenburg
Date: Wed, 17 Sep 2003 11:43
16 lines
1850 bytes
In article <bk94k9$3ba$1@news-out.ftel.co.uk>,
Ian G Batten  <I.G.Batten@batten.eu.org> wrote:
>What is the current status of the buffindex overviews and cycbuff
>storage modes?  Under Redhat 9.0 I cannot get either to work
>reliably.  

CNFS (cycbuff) is reliable on Linux and has been for quite a while.
Newsgate.cistron.nl uses CNFS with buffers of 80 GB directly
on partitions (/dev/hdd1, /dev/hde1 etc) and is at #57 in the top1000.
This is with LFS (64-bit file size) support and a recent
kernel and libc6.

Mike.
-- 
The big problem with blacksmithing resumes is that most of them are forged.
	-- Joe Marshall
Re: INN 2.5.0 with cnfs --- status on Linux?
#66697
Author: Ian G Batten
Date: Wed, 17 Sep 2003 11:46
14 lines
1568 bytes
In article <bk9hcr$v74$1@news.cistron.nl>,
Miquel van Smoorenburg <miquels@netscum.nl> wrote:
> CNFS (cycbuff) is reliable on Linux and has been for quite a while.
> Newsgate.cistron.nl uses CNFS with buffers of 80 GB directly

Thanks for that data point.  Does cnfsstat report them correctly?  If it
doesn't, it may be I was frightening myself needlessly by assuming the
wrong output from that meant the whole thing was broken.

Do you build overviews with buffindexd, or are you transit-only?

ian

Re: INN 2.5.0 with cnfs --- status on Linux?
#66701
Author: Jeffrey M. Vinocur
Date: Wed, 17 Sep 2003 13:37
14 lines
1591 bytes
In article <bk9him$6mm$1@news-out.ftel.co.uk>,
Ian G Batten  <I.G.Batten@batten.eu.org> wrote:
>In article <bk9hcr$v74$1@news.cistron.nl>,
>Miquel van Smoorenburg <miquels@netscum.nl> wrote:
>> CNFS (cycbuff) is reliable on Linux and has been for quite a while.
>
>Thanks for that data point.  Does cnfsstat report them correctly?

Did you build INN with large file support?  How about Perl?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN 2.5.0 with cnfs --- status on Linux?
#66704
Author: Miquel van Smoorenburg
Date: Wed, 17 Sep 2003 14:12
30 lines
2454 bytes
In article <bk9him$6mm$1@news-out.ftel.co.uk>,
Ian G Batten  <I.G.Batten@batten.eu.org> wrote:
>In article <bk9hcr$v74$1@news.cistron.nl>,
>Miquel van Smoorenburg <miquels@netscum.nl> wrote:
>> CNFS (cycbuff) is reliable on Linux and has been for quite a while.
>> Newsgate.cistron.nl uses CNFS with buffers of 80 GB directly
>
>Thanks for that data point.  Does cnfsstat report them correctly?

 Buffer hdd1, size:  76.0 GBytes, position:  72.0 GBytes  254.00 cycles
  Newest: 2003-09-17 16:09:33,    0 days,  0:00:00 ago

I think cnfsstat uses floating point calculations for this,
so it doesn't matter much if perl was built with large file support
for the output it shows - OTOH, if you are using large files and
perl doesn't have large file support it would probably not be able
to open the large file in the first place ...

>If it
>doesn't, it may be I was frightening myself needlessly by assuming the
>wrong output from that meant the whole thing was broken.
>
>Do you build overviews with buffindexd, or are you transit-only?

It's transit-only.

Mike.
-- 
The big problem with blacksmithing resumes is that most of them are forged.
	-- Joe Marshall
Re: INN 2.5.0 with cnfs --- status on Linux?
#66703
Author: Ian G Batten
Date: Wed, 17 Sep 2003 14:24
12 lines
1530 bytes
In article <bk9o26$o5k$1@puck.litech.org>,
Jeffrey M. Vinocur <jeff@litech.org> wrote:
> >Thanks for that data point.  Does cnfsstat report them correctly?
> 
> Did you build INN with large file support?  How about Perl?

I've not touched perl: it's the RedHat 9.0 shipped version.  In the case
of INN, so far as I could see the version I built with large file
support just didn't work at all.

ian
Re: INN 2.5.0 with cnfs --- status on Linux?
#66705
Author: Ian G Batten
Date: Wed, 17 Sep 2003 14:31
14 lines
1779 bytes
In article <bk9q4c$k1c$2@news.cistron.nl>,
Miquel van Smoorenburg <miquels@netscum.nl> wrote:
>  Buffer hdd1, size:  76.0 GBytes, position:  72.0 GBytes  254.00 cycles
>   Newest: 2003-09-17 16:09:33,    0 days,  0:00:00 ago
> 
> I think cnfsstat uses floating point calculations for this,
> so it doesn't matter much if perl was built with large file support

Looking at the code, and inserting some debugging warns, the values are
correct: it's that human_readable will truncate to the nearest
gigabyte.  I'll fix that before I move on, as it's confusing the hell
out of me.

ian
Re: INN 2.5.0 with cnfs --- status on Linux?
#66706
Author: Ian G Batten
Date: Wed, 17 Sep 2003 14:39
20 lines
1852 bytes
In article <bk9r8l$atn$1@news-out.ftel.co.uk>,
Ian G Batten  <I.G.Batten@batten.eu.org> wrote:
> Looking at the code, and inserting some debugging warns, the values are
> correct: it's that human_readable will truncate to the nearest
> gigabyte.  I'll fix that before I move on, as it's confusing the hell

human_readable assumes that this:

    while ( ( int($scaled) > 0 ) && ( $unit < $#name ) ) {
        $oldscaled = $scaled;
        $scaled /= $factor;
        warn "scaled = $scaled, unit = $unit";
        $unit++;
    }

is done in floating point.  But it can't be: Math::BigInt has been
loaded and has overridden the arithmetic operators.

ian
Re: INN 2.5.0 with cnfs --- status on Linux?
#66850
Author: Russ Allbery
Date: Sat, 18 Oct 2003 05:00
43 lines
2798 bytes
Ian G Batten <I.G.Batten@batten.eu.org> writes:

> human_readable assumes that this:

>     while ( ( int($scaled) > 0 ) && ( $unit < $#name ) ) {
>         $oldscaled = $scaled;
>         $scaled /= $factor;
>         warn "scaled = $scaled, unit = $unit";
>         $unit++;
>     }

> is done in floating point.  But it can't be: Math::BigInt has been
> loaded and has overridden the arithmetic operators.

I'm sorry about the long delay in getting to this; I hope you're still
reading.  Could you (or anyone else with problems with cnfsstat and large
buffers) try out this patch and see if it fixes the problem?

--- cnfsstat.in 2002/10/06 04:11:42     1.18
+++ cnfsstat.in 2003/10/18 04:59:14
@@ -17,6 +17,7 @@
 use vars qw($opt_l $opt_h $opt_a $opt_s);
 use Getopt::Long;
 use Math::BigInt;
+use Math::BigFloat;
 use English;
 
 my($conffile) = "$inn::pathetc/cycbuff.conf";
@@ -324,7 +325,7 @@ sub human_readable {
     my $factor = 1024;
 
     my $unit = -1;
-    my $oldscaled = $val / $base;
+    my $oldscaled = Math::BigFloat->new ($val) / $base;
     my $scaled = $oldscaled;
     while ( ( int($scaled) > 0 ) && ( $unit < $#name ) ) {
        $oldscaled = $scaled;

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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