🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
16 messages
16 total messages Started by steffie Wed, 20 Jun 2001 14:17
CNFS buffers never fill up ?
#52964
Author: steffie
Date: Wed, 20 Jun 2001 14:17
16 lines
1414 bytes
Why don't my cnfs buffers never fill up to 100% ?

If i look at the output of cnfsstat, the buffer is almost always at 50%
is that a setting somewhere ?

Now the articles will not remain as long as i had expected, because it
doesn't use the full size of the buffers.
should i change someting somewhere?
or is it normal, that only 50% of a buffer wil be used? and should i enlarge
the buffer?
or add a buffer ?

Steffie


Re: CNFS buffers never fill up ?
#52969
Author: those who know me have no need o...
Date: Wed, 20 Jun 2001 15:18
19 lines
1370 bytes
<9gqb96$ioe$1@news.tudelft.nl> divulged:

>Why don't my cnfs buffers never fill up to 100% ?

that's just an indication as to where the pointer controlling where the
next bytes will be written, and you certainly won't be writing the last
few bytes.

are you sure that the buffer size is declared (in cycbuff.conf) agrees
with the size of the file?

>Now the articles will not remain as long as i had expected, 

are you sure?  are you assuming that is the case because of the cnfsstat
output (and was that with `-a') or have you seen the effect elsewhere?

-- 
okay, have a sig then
Re: CNFS buffers never fill up ?
#52973
Author: steffie
Date: Wed, 20 Jun 2001 17:02
42 lines
2585 bytes
"those who know me have no need of my name" <not-a-real-address@usa.net>
wrote in message news:tj1fluftbob591@news.supernews.com...
> <9gqb96$ioe$1@news.tudelft.nl> divulged:
>
> >Why don't my cnfs buffers never fill up to 100% ?
>
> that's just an indication as to where the pointer controlling where the
> next bytes will be written, and you certainly won't be writing the last
> few bytes.
>
> are you sure that the buffer size is declared (in cycbuff.conf) agrees
> with the size of the file?
>
> >Now the articles will not remain as long as i had expected,
>
> are you sure?  are you assuming that is the case because of the cnfsstat
> output (and was that with `-a') or have you seen the effect elsewhere?

hehe never sure :)
as far as i know the buffer size declaration, and the actual size are the
same.
the output of cnfsstat -a for one buffer is:

Class NLMOTBIN  for groups matching "nl.motorfiets.binaries", article size
min/max: 0/5000000
 Buffer BUF1, size:   122 MBytes, position:  43.5 MBytes  0.00 cycles
  Newest: 2001-06-20  3:00:02,    0 days, 15:59:17 ago
  Oldest: 2001-04-19 17:50:48,   62 days,  1:08:31 ago

And the server is already running longer then this, and there are also much
more megabytes posted then 43.5 Mbytes

But perhaps i am interpreting these numbers the wrong way, that's why i
posted here.

Hope  you can give me a push in the right direction.

Steffie


Re: CNFS buffers never fill up ?
#52976
Author: those who know me have no need o...
Date: Wed, 20 Jun 2001 18:32
25 lines
2036 bytes
<9gqkvb$ltb$1@news.tudelft.nl> divulged:

>Class NLMOTBIN  for groups matching "nl.motorfiets.binaries", article size
>min/max: 0/5000000
> Buffer BUF1, size:   122 MBytes, position:  43.5 MBytes  0.00 cycles
>  Newest: 2001-06-20  3:00:02,    0 days, 15:59:17 ago
>  Oldest: 2001-04-19 17:50:48,   62 days,  1:08:31 ago
>
>And the server is already running longer then this, and there are also much
>more megabytes posted then 43.5 Mbytes

position is where the next article will be written to the buffer, i.e., in
this case at offset 43.5meg.  if you run the command again it should be a
little farther along.

so far the buffer has never cycled so if you are pretty sure that more than
43meg of binaries have been posted that would have been stored in that
buffer then something is wrong, but there aren't quite enough details to
find it so far.  is that the only buffer in the class?  have you been
getting articles larger than 5meg such that they are being stored
elsewhere?

-- 
okay, have a sig then
Re: CNFS buffers never fill up ?
#52979
Author: steffie
Date: Wed, 20 Jun 2001 21:11
37 lines
2476 bytes
"those who know me have no need of my name" <not-a-real-address@usa.net>
wrote in message news:9gqq7h098l@enews3.newsguy.com...
> <9gqkvb$ltb$1@news.tudelft.nl> divulged:
>
> >Class NLMOTBIN  for groups matching "nl.motorfiets.binaries", article
size
> >min/max: 0/5000000
> > Buffer BUF1, size:   122 MBytes, position:  43.5 MBytes  0.00 cycles
> >  Newest: 2001-06-20  3:00:02,    0 days, 15:59:17 ago
> >  Oldest: 2001-04-19 17:50:48,   62 days,  1:08:31 ago
> >
> >And the server is already running longer then this, and there are also
much
> >more megabytes posted then 43.5 Mbytes
>
> position is where the next article will be written to the buffer, i.e., in
> this case at offset 43.5meg.  if you run the command again it should be a
> little farther along.
>
> so far the buffer has never cycled so if you are pretty sure that more
than
> 43meg of binaries have been posted that would have been stored in that
> buffer then something is wrong, but there aren't quite enough details to
> find it so far.  is that the only buffer in the class?  have you been
> getting articles larger than 5meg such that they are being stored
> elsewhere?

No other buffers in this class, and also never had articles larger than 5
Megabytes.

I will have a look if the position where it will be written changes.

Steffie


Re: CNFS buffers never fill up ?
#52984
Author: Karsten Thygesen
Date: Thu, 21 Jun 2001 10:50
11 lines
1376 bytes
not-a-real-address@usa.net (those who know me have no need of my name) writes:

> are you sure that the buffer size is declared (in cycbuff.conf) agrees
> with the size of the file?

Hmmm...Just a thought - why is it required to define the size in a
config file? Why not let INN determine the size it self? The same goes
for the overview buffers?

Karsten
Re: CNFS buffers never fill up ?
#52985
Author: Russ Allbery
Date: Thu, 21 Jun 2001 11:09
18 lines
1753 bytes
Karsten Thygesen <karthy@sonofon.dk> writes:

> Hmmm...Just a thought - why is it required to define the size in a
> config file? Why not let INN determine the size it self? The same goes
> for the overview buffers?

That's a good point.  You have to specify the size if you're using raw
partitions for CNFS cycbuffs since INN can't figure out how big they are
by itself, but for the rest it should be able to figure it out.  I'll add
that to the list of things to look at after cycbuff.conf is assimilated by
the new configuration file parser.

-- 
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 buffers never fill up ?
#52987
Author: Karsten Thygesen
Date: Thu, 21 Jun 2001 12:13
31 lines
2431 bytes
Russ Allbery <rra@stanford.edu> writes:


> Karsten Thygesen <karthy@sonofon.dk> writes:
> 
> > Hmmm...Just a thought - why is it required to define the size in a
> > config file? Why not let INN determine the size it self? The same goes
> > for the overview buffers?
> 
> That's a good point.  You have to specify the size if you're using raw
> partitions for CNFS cycbuffs since INN can't figure out how big they are
> by itself, but for the rest it should be able to figure it out.  I'll add
> that to the list of things to look at after cycbuff.conf is assimilated by
> the new configuration file parser.

Thanks a lot - that will simplify stuff quite a bit.

Once you have emacs opened anyway, you might as well consider, if
there is any way to build metabuffers consisting of cycbuffs of
_different_ sizes. Right now, INN will distribute articles in a
round-robin like algorithm, but if a metabuff consists of different
sized cycbuffs, it must distribute artciles weighted by the size of
the cycbuffs. So one buffer, which is two times as large as the others
receives twice as many (based on size) articles/bytes. If we use this
algorithm, all buffers will rotate at the same speed which gives a
natural expire system.

I know we have discussed that earlier, but I still think the point is valid.

Karsten
Re: CNFS buffers never fill up ?
#52994
Author: Russ Allbery
Date: Thu, 21 Jun 2001 21:49
21 lines
2091 bytes
Karsten Thygesen <karthy@sonofon.dk> writes:

> Once you have emacs opened anyway, you might as well consider, if there
> is any way to build metabuffers consisting of cycbuffs of _different_
> sizes. Right now, INN will distribute articles in a round-robin like
> algorithm, but if a metabuff consists of different sized cycbuffs, it
> must distribute artciles weighted by the size of the cycbuffs. So one
> buffer, which is two times as large as the others receives twice as many
> (based on size) articles/bytes. If we use this algorithm, all buffers
> will rotate at the same speed which gives a natural expire system.

I thought there was something like this in CURRENT, but maybe I'm
misremembering.  If there is, it isn't mentioned in the man page.  Thanks
for the suggestion; I'll take a look.

-- 
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 buffers never fill up ?
#52997
Author: Kjetil Torgrim Homme
Date: Fri, 22 Jun 2001 00:18
45 lines
3154 bytes
[Karsten Thygesen]

>   Russ Allbery <rra@stanford.edu> writes:
>   
>   
>   > Karsten Thygesen <karthy@sonofon.dk> writes:
>   > 
>   > > Hmmm...Just a thought - why is it required to define the size
>   > > in a config file? Why not let INN determine the size it self?
>   > > The same goes for the overview buffers?
>   > 
>   > That's a good point.  You have to specify the size if you're
>   > using raw partitions for CNFS cycbuffs since INN can't figure
>   > out how big they are by itself, but for the rest it should be
>   > able to figure it out.  I'll add that to the list of things to
>   > look at after cycbuff.conf is assimilated by the new
>   > configuration file parser.
>   
>   Thanks a lot - that will simplify stuff quite a bit.

Currently, you don't have to mkfile the cycbuffs -- they will grow up
to your specified size.  It's probably not a good idea -- I guess it
depends on your file system which gives better performance -- it's not
unthinkable that allocate-as-you-go gives better locality of reference
on the disk media.  During the first cycle, that is :-) I guess
allocate-as-you-go works best for "store-forever" local hierarchies.

>   Once you have emacs opened anyway, you might as well consider, if
>   there is any way to build metabuffers consisting of cycbuffs of
>   _different_ sizes. Right now, INN will distribute articles in a
>   round-robin like algorithm, but if a metabuff consists of
>   different sized cycbuffs, it must distribute artciles weighted by
>   the size of the cycbuffs. So one buffer, which is two times as
>   large as the others receives twice as many (based on size)
>   articles/bytes. If we use this algorithm, all buffers will rotate
>   at the same speed which gives a natural expire system.

You can tell INN to use the buffers in SEQUENTIAL order rather than
INTERLEAVEd (round robin).  That is, first fill cycbuff 1, then
cycbuff 2.  Check out cycbuff.conf(5).


Kjetil T.

Re: CNFS buffers never fill up ?
#53004
Author: Karsten Thygesen
Date: Fri, 22 Jun 2001 07:40
32 lines
2734 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> Currently, you don't have to mkfile the cycbuffs -- they will grow up
> to your specified size.  It's probably not a good idea -- I guess it
> depends on your file system which gives better performance -- it's not
> unthinkable that allocate-as-you-go gives better locality of reference
> on the disk media.  During the first cycle, that is :-) I guess
> allocate-as-you-go works best for "store-forever" local hierarchies.

Oh... Is that implemented in INN-2.3.2? It is not in the manpage, as
far as I remember...?

> >   Once you have emacs opened anyway, you might as well consider, if
> >   there is any way to build metabuffers consisting of cycbuffs of
> >   _different_ sizes. Right now, INN will distribute articles in a
> >   round-robin like algorithm, but if a metabuff consists of
> >   different sized cycbuffs, it must distribute artciles weighted by
> >   the size of the cycbuffs. So one buffer, which is two times as
> >   large as the others receives twice as many (based on size)
> >   articles/bytes. If we use this algorithm, all buffers will rotate
> >   at the same speed which gives a natural expire system.
> 
> You can tell INN to use the buffers in SEQUENTIAL order rather than
> INTERLEAVEd (round robin).  That is, first fill cycbuff 1, then
> cycbuff 2.  Check out cycbuff.conf(5).

Yes, but at the price of load balancing. I have buffers on different
raid racks on different raid controllers, so sequential storage is not
an ideal solution.

Karsten
Re: CNFS buffers never fill up ?
#53011
Author: Kjetil Torgrim Homme
Date: Fri, 22 Jun 2001 11:21
19 lines
1994 bytes
[Karsten Thygesen]

>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>   
>   > Currently, you don't have to mkfile the cycbuffs -- they will grow up
>   > to your specified size.  It's probably not a good idea -- I guess it
>   > depends on your file system which gives better performance -- it's not
>   > unthinkable that allocate-as-you-go gives better locality of reference
>   > on the disk media.  During the first cycle, that is :-) I guess
>   > allocate-as-you-go works best for "store-forever" local hierarchies.
>   
>   Oh... Is that implemented in INN-2.3.2? It is not in the manpage, as
>   far as I remember...?

You need to make a sparse file.  It works in any 2.x.


Kjetil T.
Re: CNFS buffers never fill up ?
#53119
Author: Alex Kiernan
Date: Wed, 04 Jul 2001 07:32
29 lines
2530 bytes
Russ Allbery <rra@stanford.edu> writes:

> Karsten Thygesen <karthy@sonofon.dk> writes:
> 
> > Once you have emacs opened anyway, you might as well consider, if there
> > is any way to build metabuffers consisting of cycbuffs of _different_
> > sizes. Right now, INN will distribute articles in a round-robin like
> > algorithm, but if a metabuff consists of different sized cycbuffs, it
> > must distribute artciles weighted by the size of the cycbuffs. So one
> > buffer, which is two times as large as the others receives twice as many
> > (based on size) articles/bytes. If we use this algorithm, all buffers
> > will rotate at the same speed which gives a natural expire system.
> 
> I thought there was something like this in CURRENT, but maybe I'm
> misremembering.  If there is, it isn't mentioned in the man page.  Thanks
> for the suggestion; I'll take a look.
> 

SEQUENTIAL would be similar, but not the same thing. Adding something
like a weighting parameter which gives the number of consecutive
articles written to a buffer should be easy (so you've a 5G and a 10G
can you weight them 1 & 2 respectively).

Might be of use for distributing load over differently performing
controllers too.

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: CNFS buffers never fill up ?
#53121
Author: Karsten Thygesen
Date: Wed, 04 Jul 2001 08:04
21 lines
1974 bytes
Alex Kiernan <alexk@demon.net> writes:

> > I thought there was something like this in CURRENT, but maybe I'm
> > misremembering.  If there is, it isn't mentioned in the man page.  Thanks
> > for the suggestion; I'll take a look.
> > 
> 
> SEQUENTIAL would be similar, but not the same thing. Adding something
> like a weighting parameter which gives the number of consecutive
> articles written to a buffer should be easy (so you've a 5G and a 10G
> can you weight them 1 & 2 respectively).
> 
> Might be of use for distributing load over differently performing
> controllers too.

Yes, but please make a system so that the default is to weight the
articles depending on the spool size, so that it will do something
intelligent by default :-)

Karsten
Re: CNFS buffers never fill up ?
#53232
Author: Kjetil Torgrim Homme
Date: Wed, 11 Jul 2001 12:25
24 lines
2217 bytes
[Karsten Thygesen]

>   Alex Kiernan <alexk@demon.net> writes:
>   
>   > SEQUENTIAL would be similar, but not the same thing. Adding
>   > something like a weighting parameter which gives the number of
>   > consecutive articles written to a buffer should be easy (so
>   > you've a 5G and a 10G can you weight them 1 & 2 respectively).
>   > 
>   > Might be of use for distributing load over differently
>   > performing controllers too.
>   
>   Yes, but please make a system so that the default is to weight the
>   articles depending on the spool size, so that it will do something
>   intelligent by default :-)

Rather than one article to cycbuff A, then two articles to cycbuff B,
use one MB of articles to cycbuff A, then two MB of articles to
cycbuff B.  If you do it by number of articles, you risk getting a
seriously strange expiration pattern.


Kjetil T.
Re: CNFS buffers never fill up ?
#53233
Author: Alex Kiernan
Date: Wed, 11 Jul 2001 12:54
32 lines
2529 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> [Karsten Thygesen]
> 
> >   Alex Kiernan <alexk@demon.net> writes:
> >   
> >   > SEQUENTIAL would be similar, but not the same thing. Adding
> >   > something like a weighting parameter which gives the number of
> >   > consecutive articles written to a buffer should be easy (so
> >   > you've a 5G and a 10G can you weight them 1 & 2 respectively).
> >   > 
> >   > Might be of use for distributing load over differently
> >   > performing controllers too.
> >   
> >   Yes, but please make a system so that the default is to weight the
> >   articles depending on the spool size, so that it will do something
> >   intelligent by default :-)
> 
> Rather than one article to cycbuff A, then two articles to cycbuff B,
> use one MB of articles to cycbuff A, then two MB of articles to
> cycbuff B.  If you do it by number of articles, you risk getting a
> seriously strange expiration pattern.
> 

I'd have expected that over the lifetime of a cycbuff that kind of
stuff would probably average out.

But then I'm not a statistician.

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC
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