On Tuesday 15 June 2010 03:51:21 Evan Daniel wrote: > On Mon, Jun 14, 2010 at 4:56 PM, Matthew Toseland > <toad at amphibian.dyndns.org> wrote: > > > - Even segment splitting. Freenet divides large files up into "splitfiles": > > because a CHK can only be 32KB, Freenet splits larger files up into many > > blocks, and then divides those blocks into "segments" of no more than 256 > > blocks (128 data blocks, and 128 "check blocks" that are generated for > > redundancy). Until 1251, on any splitfile of more than 128 blocks (4MB), > > all but the last segment would be exactly 128 data blocks and 128 check > > blocks. From this build onwards, all the segments will be roughly the same > > size. Plus, we allow up to 131 data blocks (with 125 check blocks) to use > > fewer segments (which is a net benefit for reliability), and we add an > > extra check block to each segment of less than 128 data blocks. > > You're only allowing > 128 data blocks on small files, right? With > > 520 total data blocks, it should be max 128 data blocks per segment > (ie at 5 segments or more). And with less than that, the appropriate > max depends on file size.
Yes, this is one problem. Another problem is not changing the metadata means we still have to have all but one segment be the same size, so the last segment can still be rather small. I've fixed the first in trunk and am working on the second. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20100616/a673894e/attachment.pgp>
