Thread View: news.software.nntp
8 messages
8 total messages
Started by Oliver Janke
Tue, 14 Dec 1999 00:00
Only two of my cnfs buffres are used
Author: Oliver Janke
Date: Tue, 14 Dec 1999 00:00
Date: Tue, 14 Dec 1999 00:00
70 lines
2705 bytes
2705 bytes
Hello,
I am running Inn 2.2.1 on Sol 2.6.
It seems to work but not using all of the cnfs buffer files.
When I do a cnfsstat I get the following output:
Class MBUFF1 for groups matching "alt.*"
Buffer buff1, len: 976.56 Mbytes, used: 970.49 Mbytes (99.4%) 5
cycles
Newest: 1999-12-14 10:12:41, 0 days, 0:00:01 ago
Buffer buff2, len: 976.56 Mbytes, used: 8.57 Mbytes ( 0.9%) 6 cycles
Newest: 1999-12-14 10:12:41, 0 days, 0:00:01 ago
Class MBUFF2 for groups matching
"rec.*,borland.*,comp.*,gnu.*,linux.*,microsoft.*,redhat.*"
Buffer buff3, len: 976.56 Mbytes, used: 0.25 Mbytes ( 0.0%) 0 cycles
Newest: 1999-11-02 11:15:55, 41 days, 22:56:47 ago
Buffer buff4, len: 976.56 Mbytes, used: 0.25 Mbytes ( 0.0%) 0 cycles
Newest: 1999-11-02 11:15:55, 41 days, 22:56:47 ago
Class MBUFF3 for groups matching
"sci.*,talk.*,soc.*,humanities.*,it.*,es.*,fr.*,nl.*de.*,uk.*,*"
Buffer buff5, len: 976.56 Mbytes, used: 0.25 Mbytes ( 0.0%) 0 cycles
Newest: 1999-11-02 11:15:55, 41 days, 22:56:47 ago
Buffer buff6, len: 976.56 Mbytes, used: 0.25 Mbytes ( 0.0%) 0 cycles
Newest: 1999-11-02 11:15:55, 41 days, 22:56:47 ago
My cycbuff.conf:
cycbuff:buff1:/var/news/spool/cnfs/buff1:1000000
cycbuff:buff2:/var/news/spool/cnfs/buff2:1000000
cycbuff:buff3:/var/news/spool/cnfs/buff3:1000000
cycbuff:buff4:/var/news/spool/cnfs/buff4:1000000
cycbuff:buff5:/var/news/spool/cnfs/buff5:1000000
cycbuff:buff6:/var/news/spool/cnfs/buff6:1000000
metacycbuff:MBUFF1:buff1,buff2
metacycbuff:MBUFF2:buff3,buff4
metacycbuff:MBUFF3:buff5,buff6
My storage.conf is as follows:
method cnfs {
newsgroups: alt.*
class: 3
options: MBUFF1
}
method cnfs {
newsgroups:
rec.*,borland.*,comp.*,gnu.*,linux.*,microsoft.*,redhat.*
class: 3
options: MBUFF2
}
method cnfs {
newsgroups:
sci.*,talk.*,soc.*,humanities.*,it.*,es.*,fr.*,nl.*de.*,uk.*,*
class: 3
options: MBUFF3
}
storageapi is set to true
I wonder if anybody had this problem already.
Thanks a lot in advance
Oliver Janke
Re: Only two of my cnfs buffres are used
Author: Kjetil Torgrim Homme
Date: Wed, 15 Dec 1999 00:00
Date: Wed, 15 Dec 1999 00:00
23 lines
1230 bytes
1230 bytes
[Oliver Janke]
> I am running Inn 2.2.1 on Sol 2.6.
> It seems to work but not using all of the cnfs buffer files.
> [...]
> method cnfs {
> newsgroups: alt.*
> class: 3
> options: MBUFF1
> }
> method cnfs {
> newsgroups:
> rec.*,borland.*,comp.*,gnu.*,linux.*,microsoft.*,redhat.*
> class: 3
> options: MBUFF2
> }
The "class" needs to be different for each metacycbuff.
Kjetil T.
Re: Only two of my cnfs buffres are used
Author: Oliver Janke
Date: Thu, 16 Dec 1999 00:00
Date: Thu, 16 Dec 1999 00:00
33 lines
1419 bytes
1419 bytes
Thanks very much Kjetil
this was the problem. I was probably to often on
the files to see this big error.
Greetings to Norway
Oliver
Kjetil Torgrim Homme wrote:
> [Oliver Janke]
>
> > I am running Inn 2.2.1 on Sol 2.6.
> > It seems to work but not using all of the cnfs buffer files.
> > [...]
> > method cnfs {
> > newsgroups: alt.*
> > class: 3
> > options: MBUFF1
> > }
> > method cnfs {
> > newsgroups:
> > rec.*,borland.*,comp.*,gnu.*,linux.*,microsoft.*,redhat.*
> > class: 3
> > options: MBUFF2
> > }
>
> The "class" needs to be different for each metacycbuff.
>
> Kjetil T.
Re: Only two of my cnfs buffres are used
Author: Charles Ball
Date: Thu, 23 Dec 1999 00:00
Date: Thu, 23 Dec 1999 00:00
54 lines
2703 bytes
2703 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
: [Oliver Janke]
:> I am running Inn 2.2.1 on Sol 2.6.
:> It seems to work but not using all of the cnfs buffer files.
:> [...]
:> method cnfs {
:> newsgroups: alt.*
:> class: 3
:> options: MBUFF1
:> }
:> method cnfs {
:> newsgroups:
:> rec.*,borland.*,comp.*,gnu.*,linux.*,microsoft.*,redhat.*
:> class: 3
:> options: MBUFF2
:> }
: The "class" needs to be different for each metacycbuff.
This is only one of several misconfigurations which I managed to try
while coming to terms with storage.conf and cycbuff.conf. These
mechanisms are more unforgiving than is strictly necessary. I have the
beginnings of a helper script which I use to test storage configurations
so I don't regress; have I missed an exiting mechanism for doing this?
I'm reluctant to spend too much effort on this [script] until I understand
whether I'm bumping into features or bugs. Examples (using 2.3):
- Cnfs method statements must map to unique metacycbuffs. (I wanted to
send articles matching newsgroups: *binaries* OR size: 30000 to BIN).
- cycbuffs (in cycbuffs.conf) must be part of a metacycbuff or SM
subsystem fails.
- method statements should have a continuation character for newsgroups
( I would like to map groups in tradspool hierarchies that have directory
files > 80Mb into a cycbuff to eliminate large directory files with
indirect blocks; I do periodic scans which reconstruct ~100-150
newsgroup directories on our pre-2.x server)
- cnfs storage should protect space used for disk format data; filesystems
do this, skiping a cylinder wastes space and makes more work than needed.
Finally, some mechanism is needed to check storage prior to restarting
innd (note ctlinnd reload doesn't pickup storage.conf changes). If I
didn't miss the exisitance of just such a thing, should this be inncheck,
cnfsstat, or something new?
--
Charles Ball
Information Technology
Boston University
Re: Only two of my cnfs buffres are used
Author: John R Pierce
Date: Wed, 12 Jan 2000 00:00
Date: Wed, 12 Jan 2000 00:00
27 lines
1977 bytes
1977 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>> - cnfs storage should protect space used for disk format data;
>> filesystems do this, skiping a cylinder wastes space and makes
>> more work than needed.
>
>This is impossible. CNFS cannot know which cylinder the file is on,
>so it would have to skip the first few kilobytes always. Do you know
>how large the partition table is on various OSes? The best solution
>is to use files rather than raw partitions.
Hmmm? I thought the partition table wasn't IN any partition, its on
the very beginning of the physical drive, before the first slice or
partition or whatever. To read the partition table in, you would need
to access the raw disk device rather than the partition (/dev/sdc
instead of /dev/sdc0 for linux, or /dev/rdsk/c0t3d0 instead of
/dev/dsk/c0t3d0s2 on solaris, or whatever).
-jrp
--
"Usenet is like a herd of performing elephants with diarrhea --
massive, difficult to redirect, awe-inspiring, entertaining, and
a source of mind- boggling amounts of excrement when you least expect it."
Re: Only two of my cnfs buffres are used
Author: Kjetil Torgrim Homme
Date: Wed, 12 Jan 2000 00:00
Date: Wed, 12 Jan 2000 00:00
36 lines
1782 bytes
1782 bytes
[Charles Ball]
> - Cnfs method statements must map to unique metacycbuffs. (I
> wanted to send articles matching newsgroups: *binaries* OR size:
> 30000 to BIN).
Yes, you can do that. From my own storage.conf:
method cnfs {
class: 1
newsgroups: *
size: 32768,0
options: binary
}
method cnfs {
class: 1
newsgroups: alt.bina*
options: binary
}
> - cnfs storage should protect space used for disk format data;
> filesystems do this, skiping a cylinder wastes space and makes
> more work than needed.
This is impossible. CNFS cannot know which cylinder the file is on,
so it would have to skip the first few kilobytes always. Do you know
how large the partition table is on various OSes? The best solution
is to use files rather than raw partitions.
The file system has more direct information from the kernel, so it is
easier for it to do this.
Kjetil T.
Re: Only two of my cnfs buffres are used
Author: cball
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
54 lines
3188 bytes
3188 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: : [Charles Ball] :> - Cnfs method statements must map to unique metacycbuffs. (I :> wanted to send articles matching newsgroups: *binaries* OR size: :> 30000 to BIN). : Yes, you can do that. Great. Thanks for the info. :> - cnfs storage should protect space used for disk format data; :> filesystems do this, skiping a cylinder wastes space and makes :> more work than needed. : This is impossible. CNFS cannot know which cylinder the file is on, : so it would have to skip the first few kilobytes always. Do you know : how large the partition table is on various OSes? The best solution : is to use files rather than raw partitions. : The file system has more direct information from the kernel, so it is : easier for it to do this. OK, I did some fact checking: Solaris stores the disk label in 512 bytes. Linux is a bit more involved since it supports labels for many OS types, but swap.h on my Rh6.1 system indicates that the first 1k (1024) bytes of a swap device are preserved for the disk label, so that sounds like a safe number. Irix and AIX ship with integrated logical device subsystems; I'm pretty sure these provide inherent protection to disk label data. I would gladly trade 1K at the beginning of each cycbuff for the 2.3Mb that I'm giving up in the cylinder that I currently throw out. Over time, I'd expect to see fewer, larger cycbuffs which would tend to decrease the (1k) waste. However, the major benefit would be that it is no longer necessary to document/remember that CNFS devices cannot be placed on cylinder 0. I do not agree that CNFS is better suited to files than to block devices. Large files (pretty sure this is > 8Mb for solaris) require double indirection and this will significantly slow access; even if the kernel is caching indirect blocks it is a lot of work that is eliminated by CNFS on block devices. The only incentive I see to use large files on solaris is that it is not possible to seek more than 2Gb on a block device. Sticking to 2Gb cycbuffs requires lots of cycbuffs (and many open file handles) to hold a full feed on anything more than a nominal basis. One of the things that I will eventually try locally is writing a CNFSseek routine that operates in 2Gb increments. -Charles
Re: Only two of my cnfs buffres are used
Author: Kjetil Torgrim Homme
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
16 lines
1332 bytes
1332 bytes
[John R. Pierce] > Hmmm? I thought the partition table wasn't IN any partition, its > on the very beginning of the physical drive, before the first > slice or partition or whatever. Not in Solaris. You can define a partition to include cylinder 0, and the filesystems know how much data to skip. In Linux, you can nuke the extended partition table. I did that once -- I wrote to /dev/hda5 instead of /dev/hda6... Kjetil T.
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