Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > General Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Discussion For anything which doesn't fit somewhere else (for PHEX users)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old August 3rd, 2002
Disciple
 
Join Date: August 3rd, 2002
Posts: 15
Eagle3yes is flying high
Unhappy 99% Hurdle & Reusing Fragments

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...
Attached Images
File Type: gif phexsegmntprob01.gif (4.8 KB, 181 views)
Reply With Quote
  #2 (permalink)  
Old August 3rd, 2002
Disciple
 
Join Date: August 3rd, 2002
Posts: 15
Eagle3yes is flying high
Default Ok Images work

I got about 4 files in that state :
Attached Images
File Type: gif phexsegmntprob02.gif (3.9 KB, 193 views)
Reply With Quote
  #3 (permalink)  
Old August 5th, 2002
Disciple
 
Join Date: August 3rd, 2002
Posts: 15
Eagle3yes is flying high
Red face I think I understand now !

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 ?
Attached Images
File Type: gif phexsegmntprob03.gif (5.2 KB, 175 views)
Reply With Quote
  #4 (permalink)  
Old August 5th, 2002
Enthusiast
 
Join Date: May 13th, 2002
Posts: 39
HelgeB is flying high
Default 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
Reply With Quote
  #5 (permalink)  
Old August 6th, 2002
Disciple
 
Join Date: August 3rd, 2002
Posts: 15
Eagle3yes is flying high
Default 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 !?
Reply With Quote
  #6 (permalink)  
Old August 7th, 2002
Enthusiast
 
Join Date: May 13th, 2002
Posts: 39
HelgeB is flying high
Default 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
Reply With Quote
  #7 (permalink)  
Old August 7th, 2002
Disciple
 
Join Date: August 3rd, 2002
Posts: 15
Eagle3yes is flying high
Lightbulb 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 !
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
only corrupt files and fragments? Wizard General Gnutella / Gnutella Network Discussion 0 February 12th, 2001 09:34 AM


All times are GMT -7. The time now is 03:10 PM.


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.