Thread View: news.software.nntp
6 messages
6 total messages
Started by cbakinli
Sat, 31 Oct 1998 00:00
CNFS Size Mismatches
Author: cbakinli
Date: Sat, 31 Oct 1998 00:00
Date: Sat, 31 Oct 1998 00:00
41 lines
1710 bytes
1710 bytes
Hi folks, I'm trying to setup INN-2.1 to use CNFS using CNFS on 3 disk device files for 3 11.5 GB drives. I appear to have everything defined correctly exceptthe buffersize in cycbuff.conf. I have: cycbuff:ONE:/news/cycbuff/hdb1:22355396 (which is the # of blocks on the disk partition) and metacycbyff:ARTICLES:ONE and in storage.ctl: cnfs:*:1:0:500000:ARTICLES And keep getting: CNFS-sm: Mismatch: read 0xaef80000 length of cycbuff /news/cycbuff/hdb1 blah blah blah OK, so I take 0Xaef80000 (which is only 2.9 G) and try that. Nadda. I divide by 1024, and I get: CNFS-sm: CNFSinitdisks: mmap for /news/cycbuff/hdb1 offset 0 len -327680 failed: Invalid argument Is there a limit to the size of a cycbuff? I'm running Linux 2.1.0. Does it not support mmap()? Any ideas would be appreciated. Thanks, Cengiz -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Re: CNFS Size Mismatches
Author: Mark Hittinger
Date: Fri, 30 Oct 1998 00:00
Date: Fri, 30 Oct 1998 00:00
45 lines
2132 bytes
2132 bytes
cbakinli@my-dejanews.com writes:
>Is there a limit to the size of a cycbuff?
Yes, you should not use a cycbuff that is larger than 2^31-1 (2gb).
If you are using 2.1-beta, there was a bug in the cnfs code that caused
a problem when INN got to the end of a cycbuff. If there was less than
local artsize space in the cycbuff the computation overflowed and we tried
to write beyond the 2gb limit - *bewm*. There was also a bug in the
conversion of the cycbuff config file size field to a 32 bit int.
If you look in cnfs.c you can see if your source has the error.
Bad calculation, overflows to negative number:
/* Article too big? */
if (cycbuff->free + article.len > cycbuff->len - CNFS_BLOCKSIZE - 1) {
Moved things around to avoid overflow:
/* Article too big? */
if (article.len > cycbuff->len - cycbuff->free - CNFS_BLOCKSIZE - 1) {
If your cnfs.c has the first "if" then you want to make sure your cycbuffs
are no larger than (2^31-1 - 2*maxlocalartsize). If your cnfs.c has the
second "if" instead then the bug is fixed in your source and you can make
cycbuffs that go all the way up to the 32 bit lseek wall (2^31-1).
I think.
Even though the bug is fixed in my source I still don't use cycbuffs that
go all the way :-)
I believe there are still a few 32bit/64bit problems in the source that
keep nnrpd from being able to read out of 64bit lseek cycbuffs.
Just use a bunch of 2gb cycbuffs for now.
Regards,
Mark Hittinger
ICGNetcom/DallasOps
bugs@freebsd.netcom.com
Re: CNFS Size Mismatches
Author: Ron Jarrell
Date: Sat, 31 Oct 1998 00:00
Date: Sat, 31 Oct 1998 00:00
20 lines
1461 bytes
1461 bytes
cbakinli@my-dejanews.com wrote: > I'm trying to setup INN-2.1 to use CNFS using CNFS on 3 disk device files > for 3 11.5 GB drives. > OK, so I take 0Xaef80000 (which is only 2.9 G) and try that. Nadda. > I divide by 1024, and I get: > Is there a limit to the size of a cycbuff? > I'm running Linux 2.1.0. Does it not support mmap()? Read the man pages and the readme file. First, you're supposed to make the cycbuff slightly smaller than the physical container. Second, they warn that some operating systems won't want to mmap a physical device greater than 2G. Seems like you're in that boat. Subdivide your disk into 2G chunks, and define those.
Re: CNFS Size Mismatches
Author: Kjetil Torgrim Homme
Date: Sat, 31 Oct 1998 00:00
Date: Sat, 31 Oct 1998 00:00
17 lines
1109 bytes
1109 bytes
[cbakinli@my-dejanews.com] > Is there a limit to the size of a cycbuff? Yes, I believe no one has ported it to use llseek or similar, so the limit is LONG_MAX, usually 2 GB. > I'm running Linux 2.1.0. Does it not support mmap()? VFS in Linux can not support files larger than 2 GB either, so you're completely out of luck. Kjetil T.
Re: CNFS Size Mismatches
Author: cbakinli
Date: Tue, 03 Nov 1998 00:00
Date: Tue, 03 Nov 1998 00:00
27 lines
1677 bytes
1677 bytes
OK, well I gave up on using the device files. ext2fs on Linux can't has a max filesize of 1GB, though, so I now have 33 1GB cycbuff files in one big metacycbuff. This starts fine. But now, syslog fills up with "CNFSUnusedBlock: invalid offset 4000, min=4000, max=0" I poked around the code a bit, but wasn't able to determine what this meant or even what that function does. I only have a general idea of how CNFS works (fifo storage). BTW, the message persists no matter how many cycbuff's I actually use, be it 33 or just 1, so it's not like I have too many cycbuff's. Also, I'm getting numerous "malformed token" messages in ~/log/errlog. It looks like overchan is treating the entire overview line as a single token. Any ideas? Thanks, Cengiz -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
CNFSUsedBlock: invalid offset - help
Author: cbakinli
Date: Thu, 05 Nov 1998 00:00
Date: Thu, 05 Nov 1998 00:00
31 lines
1890 bytes
1890 bytes
OK, I've given up on using device files. ext2fs on Linux can't has a max filesize of 1GB, though, so I now have 33 1GB cycbuff files in one big metacycbuff. This starts fine. But now, syslog fills up with "CNFSUnusedBlock: invalid offset 4000, min=4000, max=0" I poked around the code a bit, but wasn't able to determine what this meant or even what that function does. I only have a general idea of how CNFS works (fifo storage). BTW, the message persists no matter how many cycbuff's I actually use, be it 33 or just 1, so it's not like I have too many cycbuff's. Also, I'm getting numerous "malformed token" messages in ~/log/errlog. It looks like overchan is treating the entire overview line as a single token. Any ideas? Thanks, Cengiz cengiz@netmar.com > -----------== Posted via Deja News, The Discussion Network ==---------- > http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own > -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
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