Length of buffers for cnfs?

Josh Higham news at bigsky.net
Fri Nov 10 22:18:57 UTC 2000


>* Josh Higham <news at bigsky.net> wrote:
>
>> I am using cnfs, with 1G and 2G (2048000000 and 1024000000)
>> buffers.
>
>You have to specify the buffer size in kilobytes, not in bytes.


Ok, so trusting my predecessor might not be the right thing to do :-)

>By the way, 1024000000 bytes are not 1 GB -- 1073741824 bytes
>are. Therefore, the first buffer should have a size of 1048576
>kilobytes, the second buffer one of 2097152.


Correct; I assumed and/or believed that if the size listed in cycbuff.conf
was smaller then the filesize, it would be ok, so listing 1024000 instead of
1048576 would be fine.

So I recreated the buffers, and changed cycbuff.conf:

cycbuff:01:/var/spool/news/buffers/buffer01:2097152
-rw-r--r--   1 news     news     2097152000 Nov 10 14:45 buffer01

However, I'm getting an error:

Nov 10 15:02:46 news innfeed[373]: CNFS-sm: CNFSflushhead: write failed (-1
bytes): Bad file descriptor
Nov 10 15:02:46 news innfeed[373]: SM storage method 'cnfs' failed
initialization
Nov 10 15:02:46 news innfeed[373]: SM one or more storage methods failed
initialization
Nov 10 15:02:46 news innfeed[373]: Storage manager initialization failed
Nov 10 15:02:47 news innd: CNFS-sm: CNFSinitdisks: mmap for
/var/spool/news/buffers/buffer01 offset 0 len -507904 failed: Invalid
argument

Any ideas?  I can at least get it to start if I specify the value as bytes
rather then K, although it that could just be coincidental.

Josh




More information about the inn-workers mailing list