Thread View: news.software.nntp
4 messages
4 total messages
Started by CyberMaster
Thu, 03 Nov 2016 05:28
Inn CNFS Buffers Question
Author: CyberMaster
Date: Thu, 03 Nov 2016 05:28
Date: Thu, 03 Nov 2016 05:28
45 lines
2591 bytes
2591 bytes
Hi.
Lets take an example of a single cnfs buffer size, created using all of
the drives space, lets say 1Terabyte.
Newly created articles data is written from the cnfs buffer from
beginning to the end:
||||||||||||||||||||||||||||||||||||||
Lets say 3 cancel articles come in:
||||||-|||||||||-||||||||||||||-||||||
Now, there are 3 sections of the alloted hard drive space sectors
available to write to.
To my understanding in normal usage (non news server), the hard drive
when writing new data, will use the first available sectors to write new
data.
So even on a news servers cnfs buffer, a new article would be written
and split across multiple sectors of the drives cnfs buffer, now making
that message fragmented put in multiple locations, so a new news article
is then stored:
|here and |here
||||||-|||||||||-||||||||||||||-||||||
making the hard drives read heads take longer to access the article
data, rather than if the data had been written sequentially.
So, if instead, over time of canceled messages, and to reduce the read
heads from having to access multiple wide spanned locations on the single
cnfs buffer drive, is it not better to create many multiple cnfs buffers
(mini hdrives), keeping the write areas more contained when accessing the
fragmented data, as for my understanding inn writes new articles starting
at the oldest articles sectors areas first, so thus by making many cnfs
buffers rather than just one large lump of fragmented data, will indeed
improve output performance?
Does my logic sound, sound?
Re: Inn CNFS Buffers Question
Author: Russ Allbery
Date: Thu, 03 Nov 2016 16:20
Date: Thu, 03 Nov 2016 16:20
36 lines
2171 bytes
2171 bytes
CyberMaster <notreally@home.net> writes:
> Lets take an example of a single cnfs buffer size, created using all of
> the drives space, lets say 1Terabyte.
> Newly created articles data is written from the cnfs buffer from
> beginning to the end:
> ||||||||||||||||||||||||||||||||||||||
> Lets say 3 cancel articles come in:
> ||||||-|||||||||-||||||||||||||-||||||
> Now, there are 3 sections of the alloted hard drive space sectors
> available to write to.
No, that's not how CNFS works.
CNFS is a pure circular buffer. It never reclaims partial space. New
articles are written append-only to the next available spot in the CNFS
buffer until the buffer is full, at which point (possibly after a delay to
fill another buffer if you have multiple buffers in the same metabuffer)
it starts writing to the start of the buffer again and invalidates the
articles that it overwrites.
Cancels make articles unavailable, but they aren't removed from the
buffer. They stay there until overwritten, like any other article.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Inn CNFS Buffers Question
Author: CyberMaster
Date: Thu, 03 Nov 2016 18:12
Date: Thu, 03 Nov 2016 18:12
39 lines
2494 bytes
2494 bytes
Hi ya there Russ. :-) Somehow knew 'you'd' be the one to fix me brain. :-) On Thu, 03 Nov 2016 09:20:10 -0700, Russ Allbery wrote: >> Lets say 3 cancel articles come in: > >> ||||||-|||||||||-||||||||||||||-|||||| > >> Now, there are 3 sections of the alloted hard drive space sectors >> available to write to. > > No, that's not how CNFS works. > > CNFS is a pure circular buffer. It never reclaims partial space. New > articles are written append-only to the next available spot in the CNFS > buffer until the buffer is full, at which point (possibly after a delay > to fill another buffer if you have multiple buffers in the same > metabuffer) it starts writing to the start of the buffer again and > invalidates the articles that it overwrites. > > Cancels make articles unavailable, but they aren't removed from the > buffer. They stay there until overwritten, like any other article. So then, no matter if 1 CNFS buffer, or multiple, all the same and depends on the actual in/out hard drives or 'Array' performance. I had a news peer friend access one of my servers and he created the single CNFS buffer on one of the drives of which made me curious of my thinking of past setups. All these times wasting time to create multiple CNFS buffers, when instead, I just needed to create the one or two(for storage.conf decisions) on each of the drives and arrays. Thank you for sharing your knowledge! :-)
Re: Inn CNFS Buffers Question
Author: Russ Allbery
Date: Thu, 03 Nov 2016 19:36
Date: Thu, 03 Nov 2016 19:36
27 lines
1997 bytes
1997 bytes
CyberMaster <notreally@home.net> writes:
> So then, no matter if 1 CNFS buffer, or multiple, all the same and
> depends on the actual in/out hard drives or 'Array' performance.
Right, the only reasons I know of to create more than one CNFS buffer on a
given device are:
- If you have file size limits in your file system and want more space
than that.
- If you have different classes of articles you want to assign different
quantities of space to.
- If you want to be able to manage the amount of storage assigned to one
storage class. If you have a number of smaller CNFS buffers, you can
move them in and out of metacycbuffs to grow or shrink those
metacycbuffs without losing articles (although I think there's some
weirdness here about how the storage tokens address the buffers).
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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