Thread View: news.software.nntp
11 messages
11 total messages
Started by Schroeder, AJ
Wed, 04 May 2005 14:36
CNFS desgin question...
Author: Schroeder, AJ
Date: Wed, 04 May 2005 14:36
Date: Wed, 04 May 2005 14:36
28 lines
2290 bytes
2290 bytes
Hello group, I have recently set up a news server using INN 2.4.1 and have elected to use CNFS as my article storage format across the board. I know that I can mix and match, but CNFS seemed the storage format of choice on paper. I have read and re-read the storage.conf and cycbuff.conf manpages, and the INN architecture guide, and I am left with a couple of design questions. First, is it better to have many smaller files make up a buffer, or a couple of gargantuan ones? Reason I ask is that I was playing around with this and I created a 100GB file and made it my initial buffer for the limited binaries feed that we have. Would I be better served by creating ten 10GB files in this instance? Reason I ask is because it seems that the 100GB buffer is holding onto articles way past their usefulness. The manpages state that CNFS is self-expiring, meaning that expire.ctl settings don't work with CNFS, so it would make sense to me to make several smaller buffers that rollover faster to alleviate the old article problem. I am still having the issue of the binary articles never completing, but it may be due to my original CNFS design - so one thing at a time. Any help,input on this is appreciated, AJ Schroeder
Re: CNFS desgin question...
Author: Russ Allbery
Date: Wed, 04 May 2005 15:48
Date: Wed, 04 May 2005 15:48
35 lines
3016 bytes
3016 bytes
Schroeder, AJ <aj1@qg.com> writes:
> I have read and re-read the storage.conf and cycbuff.conf manpages, and
> the INN architecture guide, and I am left with a couple of design
> questions. First, is it better to have many smaller files make up a
> buffer, or a couple of gargantuan ones? Reason I ask is that I was
> playing around with this and I created a 100GB file and made it my
> initial buffer for the limited binaries feed that we have. Would I be
> better served by creating ten 10GB files in this instance?
Unless by creating multiple files you can spread the load across multiple
physical spindles, it's going to be generally more efficient to use one
huge buffer. However, the caveats to that are that building INN with
large file support will slow it down (it makes a lot of internal data
structures larger, which in turn affects how much data it has to read and
write off disk) and that if you're creating large files, rather than using
raw devices, your file system design *might* slow down accesses to really
large files.
> Reason I ask is because it seems that the 100GB buffer is holding onto
> articles way past their usefulness. The manpages state that CNFS is
> self-expiring, meaning that expire.ctl settings don't work with CNFS, so
> it would make sense to me to make several smaller buffers that rollover
> faster to alleviate the old article problem.
Well, rollover will happen based on the total space that you have in the
metacycbuff into which you're putting the articles. 10 10GB buffers will
expire articles exactly as fast (with some minor wiggles around the edge
conditions) as one 100GB buffer.
--
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.
Re: CNFS desgin question...
Author: Bruce Esquibel
Date: Wed, 04 May 2005 15:59
Date: Wed, 04 May 2005 15:59
40 lines
2890 bytes
2890 bytes
Schroeder, AJ <aj1@qg.com> wrote: : Reason I ask is because it seems that the 100GB buffer is holding onto : articles way past their usefulness. The manpages state that CNFS is : self-expiring, meaning that expire.ctl settings don't work with CNFS, so it : would make sense to me to make several smaller buffers that rollover faster : to alleviate the old article problem. That first sentence is really an oddball, usefulness to what? You seem to understand the basics of CNFS, if you don't want the articles hanging around for that long after you used them (or whatever), just use a smaller buffer to store them in. Unless you need the disk space for something else, it might come in handy having a 100g buffer in case you have to go back. Seems to me it's more of a problem with the newsreader you are using, read articles shouldn't be displayed once read or the group is flagged "mark all posts as read". : I am still having the issue of the binary articles never completing, but it : may be due to my original CNFS design - so one thing at a time. This problem may never be repairable. You haven't said anything about the number of feeds coming in to your box and what groups but it's likely your upstream doesn't have the missing posts you see, so you aren't going to see them either. Only way to work on this is add additional feeds from as many systems as you can for the groups you want. A bonus would be read access on the systems feeding you. If you run across something incomplete you can then determine if it's a lost article or be able to look into why you are dropping it. Off hand I'd have to say it's almost a lost cause these days to pursue the binaries anyway, at least if you are just setting this up for yourself or a small company, outsourcing it is a far more logical choice. -bruce bje@ripco.com
Re: CNFS desgin question...
Author: Schroeder, AJ
Date: Wed, 04 May 2005 16:47
Date: Wed, 04 May 2005 16:47
52 lines
3967 bytes
3967 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87oebr6lh1.fsf@windlord.stanford.edu... > Schroeder, AJ <aj1@qg.com> writes: > > > I have read and re-read the storage.conf and cycbuff.conf manpages, and > > the INN architecture guide, and I am left with a couple of design > > questions. First, is it better to have many smaller files make up a > > buffer, or a couple of gargantuan ones? Reason I ask is that I was > > playing around with this and I created a 100GB file and made it my > > initial buffer for the limited binaries feed that we have. Would I be > > better served by creating ten 10GB files in this instance? > > Unless by creating multiple files you can spread the load across multiple > physical spindles, it's going to be generally more efficient to use one > huge buffer. However, the caveats to that are that building INN with > large file support will slow it down (it makes a lot of internal data > structures larger, which in turn affects how much data it has to read and > write off disk) and that if you're creating large files, rather than using > raw devices, your file system design *might* slow down accesses to really > large files. > I have an external U160 SCSI disk shelf with a single RAID 5 array spread across 14 physical disk drives (I pushed for RAID 10, but not enough hardware) for the cycbuffs. I store overview on a separate mirrorset on a separate RAID controller. Overall I would say my disk subsystem is more than sufficient for my current feed - it was a major concern for me so I have been watching disk I/O and it has been performing quite well. I am using FreeBSD 5.3 and I don't believe that the OS supports writing directly to a raw device, at least I have not found any documentation to prove/disprove my assumption. I don't remember building INN with large file support? I installed from ports with no special options, but maybe that was set by the port maintainer by default. > > Reason I ask is because it seems that the 100GB buffer is holding onto > > articles way past their usefulness. The manpages state that CNFS is > > self-expiring, meaning that expire.ctl settings don't work with CNFS, so > > it would make sense to me to make several smaller buffers that rollover > > faster to alleviate the old article problem. > > Well, rollover will happen based on the total space that you have in the > metacycbuff into which you're putting the articles. 10 10GB buffers will > expire articles exactly as fast (with some minor wiggles around the edge > conditions) as one 100GB buffer. > Ok, that answers that question, I had hoped that rollover happend on the individual buffer and not the meta buffer. Metacycbuffs are set by default to fill each cycbuff at the same time instead of filling one, then moving to the next?
Re: CNFS desgin question...
Author: Schroeder, AJ
Date: Wed, 04 May 2005 17:01
Date: Wed, 04 May 2005 17:01
69 lines
4112 bytes
4112 bytes
"Bruce Esquibel" <bje@e4500.ripco.com> wrote in message news:d5arge$3f7$1@e250.ripco.com... > Schroeder, AJ <aj1@qg.com> wrote: > > : Reason I ask is because it seems that the 100GB buffer is holding onto > : articles way past their usefulness. The manpages state that CNFS is > : self-expiring, meaning that expire.ctl settings don't work with CNFS, so it > : would make sense to me to make several smaller buffers that rollover faster > : to alleviate the old article problem. > > That first sentence is really an oddball, usefulness to what? > Yeah, I wrote it before the coffee kicked in... I mean that if a binary is > 30 days old I really don't want it hanging around - more of a personal preference. > You seem to understand the basics of CNFS, if you don't want the articles > hanging around for that long after you used them (or whatever), just use a > smaller buffer to store them in. > > Unless you need the disk space for something else, it might come in handy > having a 100g buffer in case you have to go back. Seems to me it's more of a > problem with the newsreader you are using, read articles shouldn't be > displayed once read or the group is flagged "mark all posts as read". > I am currently using Xnews as a binary newsreader, and now that I look at it, it wasn't "catching up" the way that I would expect it to. I have just caught myself up, I'll monitor the behavior and see what happens. > > : I am still having the issue of the binary articles never completing, but it > : may be due to my original CNFS design - so one thing at a time. > > This problem may never be repairable. You haven't said anything about the > number of feeds coming in to your box and what groups but it's likely your > upstream doesn't have the missing posts you see, so you aren't going to see > them either. > Unfortunatley, I have just one feed from my ISP, and I am getting a few groups out of the alt.binaries tree, specifically alt.binaries.sounds.* > Only way to work on this is add additional feeds from as many systems as you > can for the groups you want. A bonus would be read access on the systems > feeding you. If you run across something incomplete you can then determine > if it's a lost article or be able to look into why you are dropping it. Funny you should mention that, I have gotten a couple of email requests for peering. . > Off hand I'd have to say it's almost a lost cause these days to pursue the > binaries anyway, at least if you are just setting this up for yourself or a > small company, outsourcing it is a far more logical choice. I figured that since I was only getting a small set of the binaries that I would be ok, plus my company has mixed opinions on outsourcing. Good suggestion though and I will keep that in mind. Thanks for the input, AJ Schroeder
Re: CNFS desgin question...
Author: Russ Allbery
Date: Wed, 04 May 2005 17:04
Date: Wed, 04 May 2005 17:04
42 lines
3167 bytes
3167 bytes
Schroeder, AJ <aj1@qg.com> writes:
> I have an external U160 SCSI disk shelf with a single RAID 5 array
> spread across 14 physical disk drives (I pushed for RAID 10, but not
> enough hardware) for the cycbuffs. I store overview on a separate
> mirrorset on a separate RAID controller. Overall I would say my disk
> subsystem is more than sufficient for my current feed - it was a major
> concern for me so I have been watching disk I/O and it has been
> performing quite well. I am using FreeBSD 5.3 and I don't believe that
> the OS supports writing directly to a raw device, at least I have not
> found any documentation to prove/disprove my assumption. I don't
> remember building INN with large file support? I installed from ports
> with no special options, but maybe that was set by the port maintainer
> by default.
It may have been. Given that layout, I think one cycbuff is fine (and
yeah, it wouldn't surprise me if raw devices weren't supported; they often
aren't, particularly for >2GB partitions).
> Ok, that answers that question, I had hoped that rollover happend on the
> individual buffer and not the meta buffer.
It does, but no rollover happens until the whole metacycbuff fills. Then
the individual buffers will start rolling.
> Metacycbuffs are set by default to fill each cycbuff at the same time
> instead of filling one, then moving to the next?
The default is as you say. You can change it to the latter by using the
SEQUENTIAL option in cycbuff.conf. Neither will affect the expiration
time, though, since in both cases all available space in the metacycbuff
will be used before overwriting an article.
If you want some groups to expire faster than others, you want to set up
multiple metacycbuffs and put the groups you want to expire faster in a
smaller total space.
--
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.
Re: CNFS desgin question...
Author: Bill Davidsen
Date: Wed, 04 May 2005 17:28
Date: Wed, 04 May 2005 17:28
65 lines
4826 bytes
4826 bytes
Schroeder, AJ wrote: > "Russ Allbery" <rra@stanford.edu> wrote in message > news:87oebr6lh1.fsf@windlord.stanford.edu... > >>Schroeder, AJ <aj1@qg.com> writes: >> >> >>>I have read and re-read the storage.conf and cycbuff.conf manpages, and >>>the INN architecture guide, and I am left with a couple of design >>>questions. First, is it better to have many smaller files make up a >>>buffer, or a couple of gargantuan ones? Reason I ask is that I was >>>playing around with this and I created a 100GB file and made it my >>>initial buffer for the limited binaries feed that we have. Would I be >>>better served by creating ten 10GB files in this instance? >> >>Unless by creating multiple files you can spread the load across multiple >>physical spindles, it's going to be generally more efficient to use one >>huge buffer. However, the caveats to that are that building INN with >>large file support will slow it down (it makes a lot of internal data >>structures larger, which in turn affects how much data it has to read and >>write off disk) and that if you're creating large files, rather than using >>raw devices, your file system design *might* slow down accesses to really >>large files. >> > > I have an external U160 SCSI disk shelf with a single RAID 5 array spread > across 14 physical disk drives (I pushed for RAID 10, but not enough > hardware) for the cycbuffs. I store overview on a separate mirrorset on a > separate RAID controller. Overall I would say my disk subsystem is more than > sufficient for my current feed - it was a major concern for me so I have > been watching disk I/O and it has been performing quite well. I am using > FreeBSD 5.3 and I don't believe that the OS supports writing directly to a > raw device, at least I have not found any documentation to prove/disprove my > assumption. I don't remember building INN with large file support? I > installed from ports with no special options, but maybe that was set by the > port maintainer by default. > > >>>Reason I ask is because it seems that the 100GB buffer is holding onto >>>articles way past their usefulness. The manpages state that CNFS is >>>self-expiring, meaning that expire.ctl settings don't work with CNFS, so >>>it would make sense to me to make several smaller buffers that rollover >>>faster to alleviate the old article problem. >> >>Well, rollover will happen based on the total space that you have in the >>metacycbuff into which you're putting the articles. 10 10GB buffers will >>expire articles exactly as fast (with some minor wiggles around the edge >>conditions) as one 100GB buffer. >> > > > Ok, that answers that question, I had hoped that rollover happend on the > individual buffer and not the meta buffer. Metacycbuffs are set by default > to fill each cycbuff at the same time instead of filling one, then moving to > the next? > > If you really want to expire these articles, there is a "-N" option to expire which should do it for you. It is likely to make expire take a very long time, depending on how you set up your control file. -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Re: CNFS desgin question...
Author: Andrew - Supernews
Date: Wed, 04 May 2005 18:23
Date: Wed, 04 May 2005 18:23
29 lines
2498 bytes
2498 bytes
On 2005-05-04, Russ Allbery <rra@stanford.edu> wrote: > Schroeder, AJ <aj1@qg.com> writes: >> I have an external U160 SCSI disk shelf with a single RAID 5 array >> spread across 14 physical disk drives (I pushed for RAID 10, but not >> enough hardware) for the cycbuffs. I store overview on a separate >> mirrorset on a separate RAID controller. Overall I would say my disk >> subsystem is more than sufficient for my current feed - it was a major >> concern for me so I have been watching disk I/O and it has been >> performing quite well. I am using FreeBSD 5.3 and I don't believe that >> the OS supports writing directly to a raw device, at least I have not >> found any documentation to prove/disprove my assumption. I don't >> remember building INN with large file support? I installed from ports >> with no special options, but maybe that was set by the port maintainer >> by default. > > It may have been. Given that layout, I think one cycbuff is fine (and > yeah, it wouldn't surprise me if raw devices weren't supported; they often > aren't, particularly for >2GB partitions). off_t on FreeBSD is _always_ 64 bits, there is no option _not_ to allow large files. Whether INN takes advantage of that is another issue... Access to raw devices works fine in FreeBSD but it _isn't_ what you want to use for a news server, since it really is _raw_ access with no buffer cache, so writes are synchronous. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: CNFS desgin question...
Author: Schroeder, AJ
Date: Thu, 05 May 2005 12:30
Date: Thu, 05 May 2005 12:30
54 lines
3692 bytes
3692 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87mzra6hxz.fsf@windlord.stanford.edu... > Schroeder, AJ <aj1@qg.com> writes: > > > I have an external U160 SCSI disk shelf with a single RAID 5 array > > spread across 14 physical disk drives (I pushed for RAID 10, but not > > enough hardware) for the cycbuffs. I store overview on a separate > > mirrorset on a separate RAID controller. Overall I would say my disk > > subsystem is more than sufficient for my current feed - it was a major > > concern for me so I have been watching disk I/O and it has been > > performing quite well. I am using FreeBSD 5.3 and I don't believe that > > the OS supports writing directly to a raw device, at least I have not > > found any documentation to prove/disprove my assumption. I don't > > remember building INN with large file support? I installed from ports > > with no special options, but maybe that was set by the port maintainer > > by default. > > It may have been. Given that layout, I think one cycbuff is fine (and > yeah, it wouldn't surprise me if raw devices weren't supported; they often > aren't, particularly for >2GB partitions). > Good, because when I searched the web/usenet I didn't see anyone creating a cycbuff that large, most of the howtos were talking about 4GB cycbuffs. I was beginning to worry if I over-bloated it. > > Ok, that answers that question, I had hoped that rollover happend on the > > individual buffer and not the meta buffer. > > It does, but no rollover happens until the whole metacycbuff fills. Then > the individual buffers will start rolling. > > > Metacycbuffs are set by default to fill each cycbuff at the same time > > instead of filling one, then moving to the next? > > The default is as you say. You can change it to the latter by using the > SEQUENTIAL option in cycbuff.conf. Neither will affect the expiration > time, though, since in both cases all available space in the metacycbuff > will be used before overwriting an article. > > If you want some groups to expire faster than others, you want to set up > multiple metacycbuffs and put the groups you want to expire faster in a > smaller total space. > I will do that since I created a 10 GB metacycbuff for the text groups like microsoft.*, comp.*, rec.*, etc. and I also defined a metacycbuff for * which was around 20 GB - both of which are way overkill, but I had no idea what to expect as far as sixing requirements. Thank you for the help, AJ Schroeder
Re: CNFS desgin question...
Author: Schroeder, AJ
Date: Thu, 05 May 2005 12:54
Date: Thu, 05 May 2005 12:54
38 lines
3145 bytes
3145 bytes
"Andrew - Supernews" <andrew+nonews@supernews.com> wrote in message news:slrnd7i4p2.2ep3.andrew+nonews@trinity.supernews.net... > On 2005-05-04, Russ Allbery <rra@stanford.edu> wrote: > > Schroeder, AJ <aj1@qg.com> writes: > >> I have an external U160 SCSI disk shelf with a single RAID 5 array > >> spread across 14 physical disk drives (I pushed for RAID 10, but not > >> enough hardware) for the cycbuffs. I store overview on a separate > >> mirrorset on a separate RAID controller. Overall I would say my disk > >> subsystem is more than sufficient for my current feed - it was a major > >> concern for me so I have been watching disk I/O and it has been > >> performing quite well. I am using FreeBSD 5.3 and I don't believe that > >> the OS supports writing directly to a raw device, at least I have not > >> found any documentation to prove/disprove my assumption. I don't > >> remember building INN with large file support? I installed from ports > >> with no special options, but maybe that was set by the port maintainer > >> by default. > > > > It may have been. Given that layout, I think one cycbuff is fine (and > > yeah, it wouldn't surprise me if raw devices weren't supported; they often > > aren't, particularly for >2GB partitions). > > off_t on FreeBSD is _always_ 64 bits, there is no option _not_ to allow > large files. Whether INN takes advantage of that is another issue... > That explains me being able to create 10, 20 and 100GB files and the OS not puking. (duh) I have not yet dug into the internals of FreeBSD and what makes it tick yet - too many irons in the fire. > Access to raw devices works fine in FreeBSD but it _isn't_ what you want > to use for a news server, since it really is _raw_ access with no buffer > cache, so writes are synchronous. > Thanks for the info - it's good to know the capabilities, even if you don't use them. :)
Re: CNFS desgin question...
Author: Miquel van Smoorenburg
Date: Thu, 05 May 2005 22:24
Date: Thu, 05 May 2005 22:24
35 lines
3063 bytes
3063 bytes
In article <d5d3kh$2ob7$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> wrote: > >"Russ Allbery" <rra@stanford.edu> wrote in message >news:87mzra6hxz.fsf@windlord.stanford.edu... >> Schroeder, AJ <aj1@qg.com> writes: >> >> > I have an external U160 SCSI disk shelf with a single RAID 5 array >> > spread across 14 physical disk drives (I pushed for RAID 10, but not >> > enough hardware) for the cycbuffs. I store overview on a separate >> > mirrorset on a separate RAID controller. Overall I would say my disk >> > subsystem is more than sufficient for my current feed - it was a major >> > concern for me so I have been watching disk I/O and it has been >> > performing quite well. I am using FreeBSD 5.3 and I don't believe that >> > the OS supports writing directly to a raw device, at least I have not >> > found any documentation to prove/disprove my assumption. I don't >> > remember building INN with large file support? I installed from ports >> > with no special options, but maybe that was set by the port maintainer >> > by default. >> >> It may have been. Given that layout, I think one cycbuff is fine (and >> yeah, it wouldn't surprise me if raw devices weren't supported; they often >> aren't, particularly for >2GB partitions). >> >Good, because when I searched the web/usenet I didn't see anyone creating a >cycbuff that large, most of the howtos were talking about 4GB cycbuffs. I >was beginning to worry if I over-bloated it. Well, I use 400 GB cycbuffs on Linux. With the "rawfs" filesystem module, that shows partitions as a single large file. Works fine- with 8 disks I am able to saturate gigabit ethernet. Mike. -- One suspects that Chaucer would feel right at home on Usenet -- The Jargon File, "flame".
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