Thread View: news.software.nntp
9 messages
9 total messages
Started by Andrew Raines
Tue, 12 Jul 2005 17:50
Optimal cycbuff size and quantity
Author: Andrew Raines
Date: Tue, 12 Jul 2005 17:50
Date: Tue, 12 Jul 2005 17:50
35 lines
2128 bytes
2128 bytes
Forgive me if this has been hashed out before (no
pun intended), but I couldn't find a discussion in
the archives.
My experience with qmail and its hierarchical queue
structure makes me want to create a similar
environment for CNFS -- smaller cycbuffs (magnitude
of tens of megabytes), say 10 to 20, per directory,
and then 10 to 50 of those directories:
/newsdata/cycbuffs/01/01
/02
[...]
/02/01
/02
[...]
/20/01
/02
[...]
To someone with a cursory knowledge of CNFS, this
seems to make striping activity more efficient by
increasing the amount of stripes, but at the cost of
innd having to keep more files open.
I'm completely postulating here and have not
profiled anything. I'm not really sure how I would
profile it anyway. Am I trying to be more clever
than I need to be? Should I just throw
gigabyte-sized cycbuffs in a directory as I need
them (which is what INSTALL seems to imply) and
worry about other things?
--
aa@raines.ws (Andrew A. Raines)
Re: Optimal cycbuff size and quantity
Author: Szymon Sokół
Date: Tue, 12 Jul 2005 18:05
Date: Tue, 12 Jul 2005 18:05
15 lines
2120 bytes
2120 bytes
On Tue, 12 Jul 2005 12:50:52 -0500, Andrew Raines wrote: > To someone with a cursory knowledge of CNFS, this > seems to make striping activity more efficient by > increasing the amount of stripes, but at the cost of > innd having to keep more files open. Why should it? If the stripes are on the same physical disk, I do not see how this scheme could improve performance. -- Szymon Sokół (SS316-RIPE) -- Network Manager B Computer Center, AGH - University of Science and Technology, Cracow, Poland O http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F Free speech includes the right not to listen, if not interested -- Heinlein H
Re: Optimal cycbuff size and quantity
Author: Andrew Raines
Date: Tue, 12 Jul 2005 18:33
Date: Tue, 12 Jul 2005 18:33
32 lines
2232 bytes
2232 bytes
Szymon Sokół <szymon@bastard.operator.from.hell.pl> writes:
> On Tue, 12 Jul 2005 12:50:52 -0500, Andrew Raines wrote:
>
>> To someone with a cursory knowledge of CNFS, this
>> seems to make striping activity more efficient by
>> increasing the amount of stripes, but at the cost
>> of innd having to keep more files open.
>
> Why should it? If the stripes are on the same
> physical disk, I do not see how this scheme could
> improve performance.
Good point. My cycbuffs are on an LVM logical
volume, so me even bringing up striping was
pointless.
Something bothered me about my comparison to qmail,
too. The hierarchical, hash-based mail queue solves
a different problem -- gobs of files in a directory.
CNFS has control over the size and number of files
that make up its spool, so the premise of my concern
was fallacious.
Let me ask my question a different way. Is there
any way to create cycbuffs that would *hamper*
performance? In other words, am I free to create
them in whatever way makes logistical sense in my
configuration without causing problems?
--
aa@raines.ws (Andrew A. Raines)
Re: Optimal cycbuff size and quantity
Author: Jeffrey M. Vinocur
Date: Tue, 12 Jul 2005 20:41
Date: Tue, 12 Jul 2005 20:41
58 lines
3593 bytes
3593 bytes
In article <u64vf6fi3.fsf@raines.ws>, Andrew Raines <aa@raines.ws> wrote: > >Let me ask my question a different way. Is there >any way to create cycbuffs that would *hamper* >performance? In other words, am I free to create >them in whatever way makes logistical sense in my >configuration without causing problems? This is an excellent question. Unfortunately, I think we have only anecdotal experience. I'll throw some ideas out, and perhaps people will disagree. Let's assume we start from a base configuration, in which you have your spool divided up into metacycbuffs based on whatever characteristics you like (article size, hierarchy, etc), and each metacycbuff has a single cycbuff associated with it. Then you consider different variations of this configuration. - If you split a metacycbuff across multiple smaller cycbuffs, all on the same physical drive, with SEQUENTIAL set in cycbuff.conf, I don't think you'll see a change. People certainly do this when they lack large file support (many 2 GB cycbuffs combined into one metacycbuff). We're talking in the dozens of cycbuffs here, maybe up to a hundred. I've never heard anyone report using more than that. - If you do the same split, but don't set SEQUENTIAL, you may see a drop in performance (because your drive is presumably going to get the best performance with bulk throughput and the worst with random access, and requiring it to simultaneously read multiple files has an element of the latter). I don't think this drop would be very large, however, as long as you have enough disk cache to hold a chunk of each cycbuff. - On the other hand, if you do the same split but put each cycbuff on a different physical drive, and don't set SEQUENTIAL, you may get a decent benefit, due to striping. - If you have SEQUENTIAL set and do any of these splits, but create nonequal cycbuff sizes, you will see very strange behavior with article expiration patterns. In particular, many articles will expire early (because they were in a small cycbuff that rolled over faster) while older articles in the same group are still accessible. Users will probably find this frustrating. - Starting from the base configuration again, using raw partitions instead of files can markedly degrade performance on some operating systems, but that doesn't seem to be an issue for you. Any other configurations you were considering? -- Jeffrey M. Vinocur jeff@litech.org
Re: Optimal cycbuff size and quantity
Author: Bill Davidsen
Date: Wed, 13 Jul 2005 14:24
Date: Wed, 13 Jul 2005 14:24
69 lines
4633 bytes
4633 bytes
Jeffrey M. Vinocur wrote: > In article <u64vf6fi3.fsf@raines.ws>, Andrew Raines <aa@raines.ws> wrote: > >>Let me ask my question a different way. Is there >>any way to create cycbuffs that would *hamper* >>performance? In other words, am I free to create >>them in whatever way makes logistical sense in my >>configuration without causing problems? > > > This is an excellent question. Unfortunately, I think we have > only anecdotal experience. I'll throw some ideas out, and > perhaps people will disagree. > > Let's assume we start from a base configuration, in which you > have your spool divided up into metacycbuffs based on whatever > characteristics you like (article size, hierarchy, etc), and each > metacycbuff has a single cycbuff associated with it. Then you > consider different variations of this configuration. > > - If you split a metacycbuff across multiple smaller cycbuffs, > all on the same physical drive, with SEQUENTIAL set in > cycbuff.conf, I don't think you'll see a change. People > certainly do this when they lack large file support (many 2 GB > cycbuffs combined into one metacycbuff). We're talking in the > dozens of cycbuffs here, maybe up to a hundred. I've never > heard anyone report using more than that. > > - If you do the same split, but don't set SEQUENTIAL, you may see > a drop in performance (because your drive is presumably going > to get the best performance with bulk throughput and the worst > with random access, and requiring it to simultaneously read > multiple files has an element of the latter). I don't think > this drop would be very large, however, as long as you have > enough disk cache to hold a chunk of each cycbuff. > > - On the other hand, if you do the same split but put each > cycbuff on a different physical drive, and don't set > SEQUENTIAL, you may get a decent benefit, due to striping. > > - If you have SEQUENTIAL set and do any of these splits, but > create nonequal cycbuff sizes, you will see very strange > behavior with article expiration patterns. In particular, > many articles will expire early (because they were in a small > cycbuff that rolled over faster) while older articles in the > same group are still accessible. Users will probably find this > frustrating. I think you have this backward, if you use SEQUENTIAL the articles should be FIFO regardless of cycbuff sizes, if you don't have SEQUENTIAL the same number of articles will go in each cycbuff and the small ones will roll over faster than the large, causing exactly the problems you describe. > > - Starting from the base configuration again, using raw > partitions instead of files can markedly degrade performance on > some operating systems, but that doesn't seem to be an issue > for you. > > > Any other configurations you were considering? > > -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Re: Optimal cycbuff size and quantity
Author: Andrew Raines
Date: Wed, 13 Jul 2005 22:45
Date: Wed, 13 Jul 2005 22:45
43 lines
2588 bytes
2588 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:
> Any other configurations you were considering?
I'd like to keep the configuration as flexible as
possible because I'm not quite sure how I need to
divvy up the groups. I'm at a university where some
obscure sci.* group might be important to a faculty
member and we'll need to have 6-month retention, but
I wouldn't find this out until a year later when
this user complains that his favorite group only has
articles from three hours ago.
I figure the best way to do this is by composing the
metacycbuffs of smaller cycbuffs and chaining them
together in a way that makes efficient use of the
disk space. However, the issues I'm reading about
in this thread make me concerned that I could screw
this up and end up having a relatively low-volume
group with high turnover.
Is it safer to have a 1:1 metacycbuff-cycbuff ratio
and perhaps separate the metacycbuffs by top-level
hierarchies? Like:
cycbuff:comp:/news/cycbuffs/comp:20000000
cycbuff:alt:/news/cycbuffs/alt:10000000
cycbuff:sci:/news/cycbuffs/sci:10000000
cycbuff:rec:/news/cycbuffs/rec:10000000
[...]
metacycbuff:COMP:comp
metacycbuff:ALT:alt
metacycbuff:SCI:sci
metacycbuff:REC:rec
[...]
It seems however that this runs orthogonally to the
design of CNFS, where a metacycbuff is supposed to
abstract some clever conglomeration of cycbuffs.
--
aa@raines.ws (Andrew A. Raines)
Re: Optimal cycbuff size and quantity
Author: Jeffrey M. Vinocur
Date: Wed, 13 Jul 2005 23:45
Date: Wed, 13 Jul 2005 23:45
27 lines
2091 bytes
2091 bytes
In article <Iu9Be.887$8y1.515@newssvr17.news.prodigy.com>, Bill Davidsen <davidsen@deathstar.prodigy.com> wrote: >Jeffrey M. Vinocur wrote: > >> - If you have SEQUENTIAL set and do any of these splits, but >> create nonequal cycbuff sizes, you will see very strange >> behavior with article expiration patterns. In particular, >> many articles will expire early (because they were in a small >> cycbuff that rolled over faster) while older articles in the >> same group are still accessible. Users will probably find this >> frustrating. > >I think you have this backward, if you use SEQUENTIAL the articles >should be FIFO regardless of cycbuff sizes, if you don't have SEQUENTIAL >the same number of articles will go in each cycbuff and the small ones >will roll over faster than the large, causing exactly the problems you >describe. Yes, certainly, that should read "If you don't have SEQUENTIAL set..." Good catch. -- Jeffrey M. Vinocur jeff@litech.org
Re: Optimal cycbuff size and quantity
Author: Jeffrey M. Vinocur
Date: Thu, 14 Jul 2005 11:15
Date: Thu, 14 Jul 2005 11:15
86 lines
4535 bytes
4535 bytes
In article <uackqmik3.fsf@raines.ws>, Andrew Raines <aa@raines.ws> wrote: >jeff@litech.org (Jeffrey M. Vinocur) writes: > >I'd like to keep the configuration as flexible as >possible because I'm not quite sure how I need to >divvy up the groups. I'm at a university where some >obscure sci.* group might be important to a faculty >member and we'll need to have 6-month retention, but >I wouldn't find this out until a year later when >this user complains that his favorite group only has >articles from three hours ago. Ahhhhh. I think you should consider using a combination of CNFS and tradspool. Any remotely modern computer should have no trouble keeping all of the Big 8 in tradspool, and then you get to explicitly adjust retention (in expire.ctl) without any hassle. It's still reasonable to keep alt.* in CNFS. And later, if someone requests long retention on an alt.* group, you can just modify storage.conf to have that particular group be tradspool, no trouble. I use a configuration like this. It's definitely less hassle to set up than a CNFS-only one with the same retention flexibility. If you're really worried about the server running unattended, you could justify doing CNFS-only, though. (Tradspool does have the possibility of fluctuating disk space requirements, especially if you don't use Cleanfeed to watch for misplaced binaries.) In this case, yeah, something like you describe below would be reasonable. >I figure the best way to do this is by composing the >metacycbuffs of smaller cycbuffs and chaining them >together in a way that makes efficient use of the >disk space. However, the issues I'm reading about >in this thread make me concerned that I could screw >this up and end up having a relatively low-volume >group with high turnover. It's souning to me like all of your cycbuffs are going to be on the same volume, right? In that case, I'm not convinced there's any benefit to having multiple cycbuffs per metacycbuff. >Is it safer to have a 1:1 metacycbuff-cycbuff ratio >and perhaps separate the metacycbuffs by top-level >hierarchies? Like: > > cycbuff:comp:/news/cycbuffs/comp:20000000 > cycbuff:alt:/news/cycbuffs/alt:10000000 > cycbuff:sci:/news/cycbuffs/sci:10000000 > cycbuff:rec:/news/cycbuffs/rec:10000000 > [...] > > metacycbuff:COMP:comp > metacycbuff:ALT:alt > metacycbuff:SCI:sci > metacycbuff:REC:rec > [...] I think that's very reasonable. I would probably use even fewer (one for sci.*/comp.*, one for the rest of the Big 8, and one for alt.*), but it's a matter of personal preference. Andrew just posted a list of daily traffic by hierarchy, which might help you decide on cycbuff sizes. Look in this newsgroup in the last week or two. >It seems however that this runs orthogonally to the >design of CNFS, where a metacycbuff is supposed to >abstract some clever conglomeration of cycbuffs. Don't worry too much about this -- it used to be more important, when hard drives were small and file sizes were capped at 2 GB. Now, I think mostly people have one cycbuff per metacycbuff, or perhaps several equally-sized cycbuffs per metacycbuff. Maybe I'm missing a lot of cleverness, but that's been my impression. -- Jeffrey M. Vinocur jeff@litech.org
Re: Optimal cycbuff size and quantity
Author: Bill Davidsen
Date: Mon, 18 Jul 2005 15:12
Date: Mon, 18 Jul 2005 15:12
109 lines
5773 bytes
5773 bytes
Jeffrey M. Vinocur wrote: > In article <uackqmik3.fsf@raines.ws>, Andrew Raines <aa@raines.ws> wrote: > >>jeff@litech.org (Jeffrey M. Vinocur) writes: >> >>I'd like to keep the configuration as flexible as >>possible because I'm not quite sure how I need to >>divvy up the groups. I'm at a university where some >>obscure sci.* group might be important to a faculty >>member and we'll need to have 6-month retention, but >>I wouldn't find this out until a year later when >>this user complains that his favorite group only has >>articles from three hours ago. > > > Ahhhhh. > > I think you should consider using a combination of CNFS and > tradspool. Any remotely modern computer should have no trouble > keeping all of the Big 8 in tradspool, and then you get to > explicitly adjust retention (in expire.ctl) without any hassle. > It's still reasonable to keep alt.* in CNFS. And later, if > someone requests long retention on an alt.* group, you can just > modify storage.conf to have that particular group be tradspool, > no trouble. > > I use a configuration like this. It's definitely less hassle to > set up than a CNFS-only one with the same retention flexibility. > > If you're really worried about the server running unattended, you > could justify doing CNFS-only, though. (Tradspool does have the > possibility of fluctuating disk space requirements, especially if > you don't use Cleanfeed to watch for misplaced binaries.) In > this case, yeah, something like you describe below would be > reasonable. > > > >>I figure the best way to do this is by composing the >>metacycbuffs of smaller cycbuffs and chaining them >>together in a way that makes efficient use of the >>disk space. However, the issues I'm reading about >>in this thread make me concerned that I could screw >>this up and end up having a relatively low-volume >>group with high turnover. > > > It's souning to me like all of your cycbuffs are going to be on > the same volume, right? In that case, I'm not convinced there's > any benefit to having multiple cycbuffs per metacycbuff. > > > >>Is it safer to have a 1:1 metacycbuff-cycbuff ratio >>and perhaps separate the metacycbuffs by top-level >>hierarchies? Like: >> >> cycbuff:comp:/news/cycbuffs/comp:20000000 >> cycbuff:alt:/news/cycbuffs/alt:10000000 >> cycbuff:sci:/news/cycbuffs/sci:10000000 >> cycbuff:rec:/news/cycbuffs/rec:10000000 >> [...] >> >> metacycbuff:COMP:comp >> metacycbuff:ALT:alt >> metacycbuff:SCI:sci >> metacycbuff:REC:rec >> [...] > > > I think that's very reasonable. I would probably use even fewer > (one for sci.*/comp.*, one for the rest of the Big 8, and one > for alt.*), but it's a matter of personal preference. > > Andrew just posted a list of daily traffic by hierarchy, which > might help you decide on cycbuff sizes. Look in this newsgroup > in the last week or two. > > > >>It seems however that this runs orthogonally to the >>design of CNFS, where a metacycbuff is supposed to >>abstract some clever conglomeration of cycbuffs. > > > Don't worry too much about this -- it used to be more important, > when hard drives were small and file sizes were capped at 2 GB. > Now, I think mostly people have one cycbuff per metacycbuff, or > perhaps several equally-sized cycbuffs per metacycbuff. Maybe > I'm missing a lot of cleverness, but that's been my impression. > > My impression is that the original goal was to function optimally with one cycbuff per device, without the need for hardware or software RAID of any kind. In this case "function optimally" was pretty similar to "spread head motion." I believe this has currency now if you can put the cycbuffs on independent volumes, meaning that i/o on one doesn't conflict with the others. Drives (or RAID groups) on multiple controllers seem to fit this definition. If you can live with no redundancy, on cycbuff per drive still performs well. -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
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