Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Discussion (https://www.gnutellaforums.com/general-discussion/)
-   -   99% Hurdle & Reusing Fragments (https://www.gnutellaforums.com/general-discussion/14180-99-hurdle-reusing-fragments.html)

Eagle3yes August 3rd, 2002 11:03 AM

99% Hurdle & Reusing Fragments
 
1 Attachment(s)
I am seeing the strange problem that a lot of files (>300MB) make it nice while there are big sections to be downloaded

I still haven't figured out how to attach screengrabs but I'll supply some to show that sometimes a segment is either out of sequence or somehow overrun because the next one starts at an offset that would be negative to the previous...

That also brings me to the Restarting Fragments issue which I tried and when I copy the Initial_Fragment.file to Sg0Initial_Fragment.file it shows me that it has xHundred percent of the expected 1 Megabyte how do I do it right ?

Or better could someone please check the code to see what could be done.

Ideal long term dream of course would be a feature to edit, review, abort, delete or insert segments ?

I know I am asking much so relax - I'd like to help but I am missing some advanced way of exploring other peoples code
It is just overwhelming when you got a few other projects too...

Eagle3yes August 3rd, 2002 11:06 AM

Ok Images work
 
1 Attachment(s)
I got about 4 files in that state :

Eagle3yes August 5th, 2002 01:39 AM

I think I understand now !
 
1 Attachment(s)
Its the continous fragmenting to be able 'use' the download candidates even a megabyte is subfragmented again and again...

at what point does the program make the choice to not fragment any further and just leave the segment to the first comes basis ?
Shouldn't that be adjustable ?

HelgeB August 5th, 2002 02:04 AM

Re: I think I understand now !
 
Quote:

Originally posted by Eagle3yes
Shouldn't that be adjustable ?
Hello Eagle3yes,

it is adjustable... in the phex sources.
In the file phex/download/swarming/SWDownloadConstants.java you can change:
public static final int DEFAULT_SEGMENT_LENGTH = 1024 * 1024;
and
public static final int RESIZE_BOUNDARY_SIZE = 32 * 1024;
I've changed them to 32M/128K with good results for large downloads. After changing a full rebuild of phex is required.

Helge

Eagle3yes August 6th, 2002 02:33 PM

Now that would be a very nice IMPROVEMENT
 
To make it Soft configurable (maybe even on a file to file base)
How big the segments are by default
I would think 32MB Max / 1MB Min to be a fair default for large files

By the way some of the 99% hurdle files finished after all but not all with full functionality !?

HelgeB August 7th, 2002 10:44 AM

Re: Now that would be a very nice IMPROVEMENT
 
Quote:

Originally posted by Eagle3yes
By the way some of the 99% hurdle files finished after all but not all with full functionality !?
Which phex version do you use? Have a look at this thread:
http://www.gnutellaforums.com/showth...threadid=13076

Helge

Eagle3yes August 7th, 2002 12:13 PM

I am using the latest 073
 
What I am dreaming of is a version that can repair damaged files

Lets start thinking about rational ways to implement that:
For example the prefragmentation - Why ?

The xml file is indeed filled with 6-700 entries of one megabyte segments before ever realizing need for that - that can't be resource efficient - I recommend a segment linked list that in case a new candidate is found can respond with the largest unassigned segment or half of the largest segment not currently being downloaded. or if that is not available on the fly splits the largest segment even if it is in download proceedings and not smaller than the minimum size. Of course the linked list can help reposes segments that never started and are overrun by a well loading one. Sure its already implemented very similar... Just this fragment first algorithmic seems unnecessary complicated to me !

Ok and what does it have to do with damaged files ?
Keep a log of the downloaded segments (even from whom) and then later allow the user (initially manually) to question any segment and request Phex to veryfy it by getting it again ... How about that ? Soon enough we may be able to automate that by implementation of a specific request Segment Sums protocol !

Thanks all for your Great Work !:p


All times are GMT -7. The time now is 08:12 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.