🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #33263

Re: cnfsstat and some more

#33263
From: Kjetil Torgrim Homme
Date: Tue, 24 Nov 1998 00:00
40 lines
2457 bytes
[Robin Chen]

>   Am I the only one having problem with cnfsstat?  I've searched
>   dejanews, and no one seems to be getting a "Integer overflow in
>   hex number at /usr/local/news/bin/cnfsstat line 398, <STOR> chunk
>   73."  Is my cycbuffs too big at 8GB and 5GB?

Well, under most OS the limit is 2 GB (but it won't be apparent until
you fill up the cycbuff that far).  Your problem is with Perl, though.
Its built in integer datatype is only 32 bits, and thus can't handle
values larger than 2 GB.  To fix it, cnfsstat needs to use floats and
to reimplement the hex() function.  Keep in mind that cnfsstat is a
hack which goes poking its nose into binary structures, and it isn't
necessarily synced to the C source code.  So a complaint from cnfsstat
usually doesn't indicate a problem with INN.

[Jon Fraser]

>   If you're using cnfs, why use a stripped system?  Instead, create
>   a cycbuff on each disk and group them into metacycbufs.  That way,
>   if you lose a drive, you not completely hosed.

Agreed.

>   Smaller cycbufs/metacycbufs  give you more flexability.  Example,
>   we put  *.test in a very small one, 64mb, *.jobs in a 256m,
>   local groups in another,  alt.binaries, alt.binaries.pictures,
>   alt, everything else under 1meg, etc in different ones.  That
>   gives us more control over how long articles stay around.

Remember that the disk head will have to move every time it needs to
use a different cycbuff, so don't split your disk up too much.  I
chuck the jobs-groups into the binaries-metacycbuff, and *announce
into the ~1yr expire metacycbuff for local groups, for this very
reason.


Kjetil T.

Technical Details
Message-ID: <1rsof9rj1q.fsf@haey.ifi.uio.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7302dd$bpp$1@cancer.vividnet.com> <731em7$mtg$1@news.bit-net.com>

Show Full Headers
Complete Article Headers
Message-ID: <1rsof9rj1q.fsf@haey.ifi.uio.no>
Subject: Re: cnfsstat and some more
Date: Tue, 24 Nov 1998 00:00:00 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <7302dd$bpp$1@cancer.vividnet.com> <731em7$mtg$1@news.bit-net.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.mbox.zip!not-for-mail
X-Deja-AN: 414998113
X-Complaints-To: usenet@mimir.ifi.uio.no
X-Trace: mimir.ifi.uio.no 911869909 3070 129.240.64.139 (24 Nov 1998 01:11:49 GMT)
Organization: Dept. of Informatics, University of Oslo, Norway
NNTP-Posting-Date: 24 Nov 1998 01:11:49 GMT
Newsgroups: news.software.nntp