Thread View: news.software.nntp
11 messages
11 total messages
Started by Michael Grimm
Mon, 02 Aug 2010 19:28
CNFS v4
Author: Michael Grimm
Date: Mon, 02 Aug 2010 19:28
Date: Mon, 02 Aug 2010 19:28
19 lines
1481 bytes
1481 bytes
Hi -- Regarding http://www.eyrie.org/~eagle/software/inn/docs-2.5/news.html#S3 a new CNFS v4 has been introduced, using 4 KB blocks instead of 512 bytes. And ... ,---- | Existing CNFS buffers are kept unchanged; only new CNFS buffers are | initialized with that new version. `---- Is there a way to initialize *new* CNFS with the old blocksize of 512 bytes? The reason why I'm asking is: I do recognize CNFS of regular text newsgroups use approximatly 50-75% more CNFS space compared to the old version. Regards, Michael -- to let
Re: CNFS v4
Author: D. Stussy
Date: Mon, 02 Aug 2010 20:35
Date: Mon, 02 Aug 2010 20:35
34 lines
2603 bytes
2603 bytes
"Michael Grimm" <trashcan@odo.in-berlin.de> wrote in message news:i3769k$ugj$1@de-l.enfer-du-nord.net... > Hi -- > Regarding http://www.eyrie.org/~eagle/software/inn/docs-2.5/news.html#S3 > a new CNFS v4 has been introduced, using 4 KB blocks instead of 512 bytes. > And ... > ,---- > | Existing CNFS buffers are kept unchanged; only new CNFS buffers are > | initialized with that new version. > `---- > > Is there a way to initialize *new* CNFS with the old blocksize of 512 > bytes? The reason why I'm asking is: I do recognize CNFS of regular text > newsgroups use approximatly 50-75% more CNFS space compared to the old > version. I too would prefer a CHOICE of blocksize. Many messages on TEXT-ONLY servers would do better with a blocksize of 512 bytes than 4K. Whatever the blocksize, remember that per allocation (file, message, etc.), 50% of the blocksize on average results in wasted space. Therefore, larger blocksizes yield more wasted space. This change is an 8x increase in wasted space. What may be better is to create an external program (e.g. "cnfsinit") to create and initialize CNFS buffers, and allow us to set the blocksize (2^8 ... 2^15; powers of 2 only). When INN encounters an uninitialized CNFS buffer, it calls the program instead of initializing it itself. With a blocksize varying across CNFS buffers, we could set small sizes for text groups and larger sizes for binary and/or high volume groups.
Re: CNFS v4
Author: Julien ÉLIE
Date: Mon, 02 Aug 2010 21:19
Date: Mon, 02 Aug 2010 21:19
29 lines
2377 bytes
2377 bytes
Hi Dieter,
> What may be better is to create an external program (e.g. "cnfsinit") to
> create and initialize CNFS buffers, and allow us to set the blocksize (2^8
> ... 2^15; powers of 2 only).
That's an interesting idea.
I remember having read Miquel here:
https://lists.isc.org/pipermail/inn-workers/2008-November/016214.html
Currently the CNFS storage method uses a 512 byte (1 sector)
granularity for its "filesystem". That was great in the nineties,
but nowadays that is very limiting:
- most filesystems use 4K blocks, so a write to a 512 byte
CNFS block can result in a read-modify-write cycle, slowing
down writes enormously (effectively making them synchronous)
[...]
Right now a new CNFS file/device is always initialized with
4K blocksize, but it would be trivial to make that configurable.
--
Julien ÉLIE
« Je ne voudrais tout de même pas que Cléopâtre m'ait dans le nez ! » (César)
Re: CNFS v4
Author: D. Stussy
Date: Mon, 02 Aug 2010 21:38
Date: Mon, 02 Aug 2010 21:38
46 lines
3252 bytes
3252 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:i37cor$if5$1@news.trigofacile.com... > > What may be better is to create an external program (e.g. "cnfsinit") to > > create and initialize CNFS buffers, and allow us to set the blocksize (2^8 > > ... 2^15; powers of 2 only). > > That's an interesting idea. > > I remember having read Miquel here: > https://lists.isc.org/pipermail/inn-workers/2008-November/016214.html > > Currently the CNFS storage method uses a 512 byte (1 sector) > granularity for its "filesystem". That was great in the nineties, > but nowadays that is very limiting: > > - most filesystems use 4K blocks, so a write to a 512 byte > CNFS block can result in a read-modify-write cycle, slowing > down writes enormously (effectively making them synchronous) > > [...] > > Right now a new CNFS file/device is always initialized with > 4K blocksize, but it would be trivial to make that configurable. Although I still would prefer a configurable blocksize, the default should be the filesystem's blocksize (which may or may not be 4k). I suggested a lower bound of 2^8 (256 bytes) because some people may choose to map *.test groups to a RAM-based filesystem instead of "permanently" preserving them (until overwritten). Where the CNFS size is the disk sector size, I don't necessarily see a "read-modify-write" cycle. That's only needed where a partial sector is written, but when an entire sector is written, there's no need to read the sector (even if it is only part of a filesystem block). The only block-fragment that need be cycled via R-M-W is the fractional part at the end (assuming that the article/file size isn't precisely divisible by the sector size). However, that could be solved by padding an article out to be an integral sector size. For any OS that doesn't figure this out, it should be redesigned. As CNFS starts every article on a CNFS-block boundary, padding doesn't destroy any information that isn't already lost by an overwrite via R-M-W.
Re: CNFS v4
Author: Michael Grimm
Date: Tue, 03 Aug 2010 20:33
Date: Tue, 03 Aug 2010 20:33
23 lines
2026 bytes
2026 bytes
D. Stussy <spam+newsgroups@bde-arc.ampr.org> wrote: > What may be better is to create an external program (e.g. "cnfsinit") > to create and initialize CNFS buffers, and allow us to set the > blocksize (2^8 ... 2^15; powers of 2 only). When INN encounters an > uninitialized CNFS buffer, it calls the program instead of > initializing it itself. I could live with a config option, but that "cnfsinit" has much more potential. > With a blocksize varying across CNFS buffers, we could set small sizes > for text groups and larger sizes for binary and/or high volume groups. ACK. While dreaming, I would like to see that tool prepare a CNFS buffer to become re-initialized after roll-over with another blocksize in order to optimize CNFS buffers whilst in use (I do have no idea if that could be done from a technical point of view, anyhow). Regards, Michael -- to let
Re: CNFS v4
Author: Julien ÉLIE
Date: Tue, 03 Aug 2010 21:17
Date: Tue, 03 Aug 2010 21:17
21 lines
2214 bytes
2214 bytes
Hi Michael, > ACK. While dreaming, I would like to see that tool prepare a CNFS buffer > to become re-initialized after roll-over with another blocksize in order > to optimize CNFS buffers whilst in use (I do have no idea if that could > be done from a technical point of view, anyhow). It would require to handle two block sizes: one for read after roll-over (so as to still reach old articles), one for write (while overwriting old articles). I believe that would be feasible but it would need adapting a few parts of the code. Note that cnfsheadconf could be that tool. It currently does not allow to edit the block size, but it could... -- Julien ÉLIE « In girum imus nocte et consumimur igni. »
Re: CNFS v4
Author: D. Stussy
Date: Tue, 03 Aug 2010 22:10
Date: Tue, 03 Aug 2010 22:10
21 lines
2081 bytes
2081 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:i3a10f$imn$1@news.trigofacile.com... > > ACK. While dreaming, I would like to see that tool prepare a CNFS buffer > > to become re-initialized after roll-over with another blocksize in order > > to optimize CNFS buffers whilst in use (I do have no idea if that could > > be done from a technical point of view, anyhow). > > It would require to handle two block sizes: one for read after roll-over > (so as to still reach old articles), one for write (while overwriting > old articles). > I believe that would be feasible but it would need adapting a few parts > of the code. > > Note that cnfsheadconf could be that tool. It currently does not allow > to edit the block size, but it could... ...Or should. ;-)
Re: CNFS v4
Author: Michael Grimm
Date: Sat, 07 Aug 2010 23:13
Date: Sat, 07 Aug 2010 23:13
25 lines
2245 bytes
2245 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> ACK. While dreaming, I would like to see that tool prepare a CNFS >> buffer to become re-initialized after roll-over with another >> blocksize in order to optimize CNFS buffers whilst in use (I do have >> no idea if that could be done from a technical point of view, >> anyhow). > > It would require to handle two block sizes: one for read after > roll-over (so as to still reach old articles), one for write (while > overwriting old articles). I believe that would be feasible but it > would need adapting a few parts of the code. > > Note that cnfsheadconf could be that tool. It currently does not > allow to edit the block size, but it could... Hmm, without any pretension, do you intend to implement the latter or the possibility to define the blocksize of newly initialized CNFS'? Please, do not misunderstand, I can live without that. I just want to know. Regards, Michael -- to let
Re: CNFS v4
Author: Julien ÉLIE
Date: Sun, 08 Aug 2010 10:56
Date: Sun, 08 Aug 2010 10:56
64 lines
4124 bytes
4124 bytes
Hi Michael, >>> ACK. While dreaming, I would like to see that tool prepare a CNFS >>> buffer to become re-initialized after roll-over with another >>> blocksize in order to optimize CNFS buffers whilst in use (I do have >>> no idea if that could be done from a technical point of view, >>> anyhow). >> >> It would require to handle two block sizes: one for read after >> roll-over (so as to still reach old articles), one for write (while >> overwriting old articles). I believe that would be feasible but it >> would need adapting a few parts of the code. >> >> Note that cnfsheadconf could be that tool. It currently does not >> allow to edit the block size, but it could... > > Hmm, without any pretension, do you intend to implement the latter or > the possibility to define the blocksize of newly initialized CNFS'? > Please, do not misunderstand, I can live without that. I just want to > know. I do not plan on implementing a change of blocksize during a roll-over, sorry. Note that if you want to change blocksizes, you could create a new CNFS buffer and use it instead of the previous one (just mention the new buffer in "metacycbuff" instead of the other -- in cycbuff.conf). Both of the two CNFS buffers can live along (the old one only in read access, until you choose to remove it; the new one in read and write access). With CNFSv4, it is easy to initialize a CNFS buffer with the block size you want (between 512 bytes and 16k -- I do not why these bounds were chosen but I think they are reasonable). Dieter cannot experiment 256 bytes, though, unless he changes the lower limit in the code... What I suggest is to add a new optional value in cycbuff lines: cycbuff:ONE:/export/cycbuffs/one:512000 would be like: cycbuff:ONE:/export/cycbuffs/one:512000:4096 And one could use: cycbuff:ONE:/export/cycbuffs/one:512000:512 to initialize the buffer with a blocksize of 512 bytes. This parameter would be used when the buffer is initialized. When it is initialized, if there is a mismatch between that value (if specified) and the real blocksize, a warning in the logs would be written, and the blocksize in the buffer itself would be used. cnfsheadconf would also allow to modify the blocksize, if need be. (Use at your own risk! Old articles will be unreachable.) Would these changes suit you? -- Julien ÉLIE « C'est humain, mais il fallait y penser. » (Astérix)
Re: CNFS v4
Author: Michael Grimm
Date: Sun, 08 Aug 2010 11:39
Date: Sun, 08 Aug 2010 11:39
46 lines
2943 bytes
2943 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> Hmm, without any pretension, do you intend to implement the latter or >> the possibility to define the blocksize of newly initialized CNFS'? >> Please, do not misunderstand, I can live without that. I just want to >> know. > > I do not plan on implementing a change of blocksize during a > roll-over, sorry. Ok, that's fine with me. > What I suggest is to add a new optional value in cycbuff lines: > > cycbuff:ONE:/export/cycbuffs/one:512000 > > would be like: > > cycbuff:ONE:/export/cycbuffs/one:512000:4096 > > And one could use: > > cycbuff:ONE:/export/cycbuffs/one:512000:512 > > to initialize the buffer with a blocksize of 512 bytes. > > This parameter would be used when the buffer is initialized. When it > is initialized, if there is a mismatch between that value (if > specified) and the real blocksize, a warning in the logs would be > written, and the blocksize in the buffer itself would be used. > > cnfsheadconf would also allow to modify the blocksize, if need be. > (Use at your own risk! Old articles will be unreachable.) > > Would these changes suit you? Those changes will suit me perfectly well! My CNFS' are old ones besides the only new one initialized recently. That's when I noticed an increase in CNFS space. These changes will let the user decide how to initialize any given CNFS, perfect. From my point of view the modifying of blocksizes by cnfsheadconf isn't needed. Regards, Michael -- to let
Re: CNFS v4
Author: D. Stussy
Date: Sun, 08 Aug 2010 19:53
Date: Sun, 08 Aug 2010 19:53
71 lines
4584 bytes
4584 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:i3m2gj$ai0$1@news.trigofacile.com... > >>> ACK. While dreaming, I would like to see that tool prepare a CNFS > >>> buffer to become re-initialized after roll-over with another > >>> blocksize in order to optimize CNFS buffers whilst in use (I do have > >>> no idea if that could be done from a technical point of view, > >>> anyhow). > >> > >> It would require to handle two block sizes: one for read after > >> roll-over (so as to still reach old articles), one for write (while > >> overwriting old articles). I believe that would be feasible but it > >> would need adapting a few parts of the code. > >> > >> Note that cnfsheadconf could be that tool. It currently does not > >> allow to edit the block size, but it could... > > > > Hmm, without any pretension, do you intend to implement the latter or > > the possibility to define the blocksize of newly initialized CNFS'? > > Please, do not misunderstand, I can live without that. I just want to > > know. > > I do not plan on implementing a change of blocksize during a roll-over, > sorry. Note that if you want to change blocksizes, you could create > a new CNFS buffer and use it instead of the previous one (just mention > the new buffer in "metacycbuff" instead of the other -- in cycbuff.conf). > Both of the two CNFS buffers can live along (the old one only in read access, > until you choose to remove it; the new one in read and write access). > > > With CNFSv4, it is easy to initialize a CNFS buffer with the block size > you want (between 512 bytes and 16k -- I do not why these bounds were chosen > but I think they are reasonable). Dieter cannot experiment 256 bytes, though, > unless he changes the lower limit in the code... I haven't tried any experiments. I merely made a suggestion. As far as that goes, any given buffer can have ONLY ONE blocksize. If one were to change the blocksize of a buffer in use, such could be a problem: 1) Larger->smaller: Could be done, but may require recreating certain internal structures. 2) Smaller->larger: Probably requires rewriting (i.e. copying) the entire buffer contents. I was not envisioning the changing of an in-use buffer's blocksize; only unused/newly-created (or recreated) buffers, and that different buffers may have differing sizes. > What I suggest is to add a new optional value in cycbuff lines: > > cycbuff:ONE:/export/cycbuffs/one:512000 > > would be like: > > cycbuff:ONE:/export/cycbuffs/one:512000:4096 > > And one could use: > > cycbuff:ONE:/export/cycbuffs/one:512000:512 > > to initialize the buffer with a blocksize of 512 bytes. > > This parameter would be used when the buffer is initialized. > When it is initialized, if there is a mismatch between that value > (if specified) and the real blocksize, a warning in the logs > would be written, and the blocksize in the buffer itself would be used. > > cnfsheadconf would also allow to modify the blocksize, if need be. > (Use at your own risk! Old articles will be unreachable.) > > Would these changes suit you?
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