🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Jonathan B. Horen Tue, 23 Mar 2004 09:20
Cyclic-Buffer Sizing Question
#68763
Author: Jonathan B. Horen
Date: Tue, 23 Mar 2004 09:20
28 lines
1968 bytes
Shalom!

Although I might be "mixing apples with oranges", I want to clear-up a 
question I have with regard to cyclic-buffer sizing:

Are cyclic buffers limited in size to less than 2GB, like overview buffers?

o if so, it's not listed in the cycbuff.conf manpage.

o if not:

   a. Do cyclic-buffers >2GB require than INN be configured using
      "--with-largefiles"? and

   b. Given a 40GB logical volume, is it more or less efficient to create
      a single, large cyclic buffer (4-8GB) for each class of articles (news
      hierarchies, in the main -- alt, comp, rec), or to use multiple small
      cyclic buffers (2GB) for each class?

TIA!


-- 
JONATHAN B. HOREN                            UNIX SYSTEMS ADMINISTRATOR
E: horen@mail.iucc.ac.il            Inter-University Computation Center
T: +972-(0)3-640-5203                               Tel-Aviv University
F: +972-(0)3-640-9118                           Ramat-Aviv 69978 Israel
Re: Cyclic-Buffer Sizing Question
#68766
Author: Jonathan B. Horen
Date: Tue, 23 Mar 2004 09:41
43 lines
2971 bytes
Jonathan B. Horen wrote:
> Shalom!
> 
> Although I might be "mixing apples with oranges", I want to clear-up a 
> question I have with regard to cyclic-buffer sizing:
> 
> Are cyclic buffers limited in size to less than 2GB, like overview buffers?

see below

> o if so, it's not listed in the cycbuff.conf manpage.
> 
> o if not:
> 
>   a. Do cyclic-buffers >2GB require than INN be configured using
>      "--with-largefiles"? and

I should have done an RTFM on the INSTALL file:

     --enable-largefiles
         Enables large file support.  This is not enabled by default, even on
         platforms that support it, because it changes the format of INN's
         on-disk databases (making it difficult to upgrade an earlier INN
         installation) and can significantly increase the size of some of the
         history database files.  Large file support is not necessary unless
         your history database is so large that it exceeds 2 GB or you want
         to use CNFS buffers larger than 2 GB.                  ^^^^^^^^^^^
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>   b. Given a 40GB logical volume, is it more or less efficient to create
>      a single, large cyclic buffer (4-8GB) for each class of articles (news
>      hierarchies, in the main -- alt, comp, rec), or to use multiple small
>      cyclic buffers (2GB) for each class?

So, this is the question which remains.  Sorry about the misspent bandwidth.


-- 
JONATHAN B. HOREN                            UNIX SYSTEMS ADMINISTRATOR
E: horen@mail.iucc.ac.il            Inter-University Computation Center
T: +972-(0)3-640-5203                               Tel-Aviv University
F: +972-(0)3-640-9118                           Ramat-Aviv 69978 Israel
Re: Cyclic-Buffer Sizing Question
#68765
Author: Russ Allbery
Date: Tue, 23 Mar 2004 20:44
21 lines
1922 bytes
Jonathan B Horen <horen@mail.iucc.ac.il> writes:
> Jonathan B. Horen wrote:

>>   b. Given a 40GB logical volume, is it more or less efficient to create
>>      a single, large cyclic buffer (4-8GB) for each class of articles (news
>>      hierarchies, in the main -- alt, comp, rec), or to use multiple small
>>      cyclic buffers (2GB) for each class?

> So, this is the question which remains.  Sorry about the misspent bandwidth.

I prefer the former setup rather than partitioning your cycbuffs too much.
You only need to break them out into a lot of separate metacycbuffs if you
really want to have significantly different expiration times between
different classes.

-- 
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: Cyclic-Buffer Sizing Question
#68767
Author: Jeffrey M. Vinocur
Date: Tue, 23 Mar 2004 21:01
45 lines
3009 bytes
In article <87ad27mgyh.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>> Jonathan B. Horen wrote:
>
>>>   b. Given a 40GB logical volume, is it more or less efficient to create
>>>      a single, large cyclic buffer (4-8GB) for each class of articles (news
>>>      hierarchies, in the main -- alt, comp, rec), or to use multiple small
>>>      cyclic buffers (2GB) for each class?
>
>I prefer the former setup rather than partitioning your cycbuffs too much.
>You only need to break them out into a lot of separate metacycbuffs if you
>really want to have significantly different expiration times between
>different classes.

Hm, I think the OP is content with his choice of metacycbuffs,
but needs to decide bewteen (for each metacycbuff) one large
cycbuff or multiple small cycbuffs.

I think that, if the SEQUENTIAL option is being used in
cycbuff.conf, the outward behavior of the two choices will be
exactly the same, and it's purely a matter of which will be
a very small bit faster.  (I'm not sure which to recommend in
this case -- probably depends a lot on the details of your setup
and hardware -- but as long as you're not bottlenecking, there's
no reason to lose sleep over it.)

However, if you're willing to disregard the SEQUENTIAL option
(in that case, different cycbuffs will be written in a
round-robin fashion, which can result in articles expiring
slightly out-of-order) and you have multiple physical volumes in
your large logical volume, then it's possible -- although not
guaranteed -- that you might see substantially better performance
with multiple small cycbuffs scattered across different drives.
But again, if you're not bottlenecking, I wouldn't worry about
it.

One caveat; even if you compile INN with large file support, if
your Perl isn't compiled similarly, you can have trouble with
some of the noncritical scripts (e.g. cnfsstat).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Cyclic-Buffer Sizing Question
#68813
Author: Jonathan B. Horen
Date: Sun, 28 Mar 2004 07:41
21 lines
2062 bytes
Jonathan B. Horen wrote:

>   b. Given a 40GB logical volume, is it more or less efficient to create
>      a single, large cyclic buffer (4-8GB) for each class of articles (news
>      hierarchies, in the main -- alt, comp, rec), or to use multiple small
>      cyclic buffers (2GB) for each class?

Thanks to all who responded!  Because of the conflict between
--enable-largefiles and --enable-tagged-hash, we chose to continue with
--enable-tagged-hash and I enlarged/added cyclic buffers to the 2GB
limit (four each) for alt, comp, and "news" (the remainder of the USENET
hierarchies), with additional smaller ones for each university's local
newsgroups.


-- 
JONATHAN B. HOREN                            UNIX SYSTEMS ADMINISTRATOR
E: horen@mail.iucc.ac.il            Inter-University Computation Center
T: +972-(0)3-640-5203                               Tel-Aviv University
F: +972-(0)3-640-9118                           Ramat-Aviv 69978 Israel
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