aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: crazy idea  (Read 9968 times)

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
crazy idea
« on: December 20, 2004, 07:03:55 PM »

ok, i dunno if this will work at all and how much it will affect performance, but i thought about implementing a file lock mechanism to reduce incompleteable files. it could work like this:
1. file is added to download list (either via search or uri) and first gets "locked" status.
2. while locked, sources are searched with low priority, but no upload queue place is taken until all parts of the file have been seen (not neccessarily at the same time).
3. when all parts are there, the lock is opened and everything from this point on works like it does now, except the already found sources are kept of course.
the lock can be opened manually and the file could be shown white in the dl list while locked.

i guess, this could decrease dead files be at least one third or more. and it will prevent wasting credits for incompleteable files :)
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: crazy idea
« Reply #1 on: December 20, 2004, 08:06:53 PM »

Maybe. After 2.0.0 final.
Logged
concordia cum veritate

lfroen

  • Guest
Re: crazy idea
« Reply #2 on: December 21, 2004, 04:12:08 PM »

nachbarnebenan: what exactly is the problem you trying to solve ? Amount of disk space  taken by uncompleted files ? You have "delete file" command on your operating system for this.

Quote
i dunno if this will work at all and how much it will affect performance

It will not. And will not affect performance, whatever you mean by this.

Quote
while locked, sources are searched with low priority

It doesn't work this way. Sources are not searched according to some priority. File priority means priority while downloading/uploading

Quote
but no upload queue place is taken

What direction are we talking about ?

Quote
the lock is opened and everything from this point on works like it does now

You mean that downloading doesn't start untill ALL parts are available ? Does it also mean, that if some of parts are no longer available (source is dropped for whatever reason), you will abort this download ? If your answer is "no" - your internal logic is broken, 'cause this file is going to become "incompleteable" by your definition.

Quote
i guess, this could decrease dead files be at least one third or more

How did you come out with number "1/3" ? Guess is not acceptable, sorry.
Detailed analysis of "how ed2k network works" shows that it will have no effect.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: crazy idea
« Reply #3 on: December 21, 2004, 05:24:39 PM »

I think the problem he is trying to solve is downloading files with no complete sources, or at least files where all the incomplete sources joint, give the complete file. This has already been implemented in some emule MODs, I think MorphXT already has it.

Regards.
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: crazy idea
« Reply #4 on: December 21, 2004, 07:38:49 PM »

Yes, exactly. No file should start downloading until it's sure all parts are available (or the user overrides it). Of course, a file still can get lost if the only available source goes offline but this could give some improvement at least.
Logged

lfroen

  • Guest
Re: crazy idea
« Reply #5 on: December 21, 2004, 08:48:31 PM »

WHY do you want to do it ?

Quote
No file should start downloading until it's sure all parts are available

Why it's a problem if it DOES start downloading ?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: crazy idea
« Reply #6 on: December 21, 2004, 09:30:00 PM »

Quote
Why it's a problem if it DOES start downloading ?
Because there are people around the world (although in minority) who don't have unlimited disk space.
Logged
concordia cum veritate

djtm

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
Re: crazy idea
« Reply #7 on: December 21, 2004, 10:18:44 PM »

Yeah, it is a great Idea.

It would also help in the search section:
The servers would only display many sources (which actually have hardly anything of the file) if the file is actually available...

but mostly no space would be waisted for incomplete files.
And it should be very easy to implement.

The status should be saved: If it was completely found/started once it should keep going...

while ( available_percent != 100 ){pause_download(this);}
or better
if ( available_percent == 100 ){start_download(this);}
or similar ;)
Logged
"If you laid all of our laws end to end, there would be no end."
Mark Twain
"Linux is like a wigwam: No Gates, no Windows, but Apache inside!"

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: crazy idea
« Reply #8 on: December 21, 2004, 11:55:02 PM »

> And it should be very easy to implement.

yep, i guess it will take one of the core devs less than a minute to hack it. Nevertheless it should not be added before 2.0 to not further delay the final.
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: crazy idea
« Reply #9 on: December 22, 2004, 03:46:48 AM »

Quote
Originally posted by GonoszTopi
Quote
Why it's a problem if it DOES start downloading ?
Because there are people around the world (although in minority) who don't have unlimited disk space.
i think the even bigger issue here is to avoid wasting upload bandwidth of the clients we would be downloading from. since upload bandwidth is the most limited resource on the network, any attempt to reduce wasting it is very valuable...
Logged
Current aMule CVS builds for OS X can be found here.

lfroen

  • Guest
Re: crazy idea
« Reply #10 on: December 22, 2004, 12:52:43 PM »

lionel77:
Quote
avoid wasting upload bandwidth

What does it have to do with upload ?! By pausing file in download queue how exactly you save upload bandwidth ?

GonoszTopi:
Quote
Because there are people around the world (although in minority) who don't have unlimited disk space.

When you put file in download queue, you obviously must have space for this file. The mere fact that this space is not allocated right away doesn't make it different. The space depends on size of whole file, not size of downloaded parts. Moreover, it's nice feature of ext2/3 that makes it possible to allocate only used parts, on vfat/ntfs it IS allocated right away.

djtm:
Search doesn't check parts availability. amule have to actually connect to each one of sources, and ask about parts available for each file. And there're limits about how fast it can be done, how many requests  amule can issue etc.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: crazy idea
« Reply #11 on: December 22, 2004, 06:02:29 PM »

Folks,

Dead files are a problem, but how do you know that a file is really dead? I think that the only ones capable of knowing it are the servers, that have a big up time and could do statistics about the last time a file part has been seen on the net.

If the file is not really dead, there is no bandwidth waste, because everybody is getting the existing parts. When the missing parts come up again, download continues.

Not starting a download because there are some parts missing at the moment goes against the nework philosophy in my opinion. If you really want that file, you will leave your client there asking for it a few days before dropping it from your queue. What harm does this file causes beeing on the download queue?

1) Disk space allocation
2) Source exchange bandwidth

Number 2 should be *very* small, number 1 depends upon your file system and hard disk free space.

Cheers!
Logged

lfroen

  • Guest
Re: crazy idea
« Reply #12 on: December 23, 2004, 10:06:40 AM »

Quote
Not starting a download because there are some parts missing at the moment goes against the nework philosophy in my opinion. If you really want that file, you will leave your client there asking for it a few days before dropping it from your queue. What harm does this file causes beeing on the download queue?

That is exactly what I was talking about.

And there's another way: write perl script that will operate amulecmd and see available sources for each file, and call "pause" for those who have incomplete source set. And resume they later in same way.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: crazy idea
« Reply #13 on: December 23, 2004, 09:01:18 PM »

Quote
And there's another way: write perl script that will operate amulecmd and see available sources for each file, and call "pause" for those who have incomplete source set. And resume they later in same way.
Not exactly. amulecmd doesn't show part info, only available sources - so you cannot determine whether the full file is available or not.
Logged
concordia cum veritate

lfroen

  • Guest
Re: crazy idea
« Reply #14 on: December 26, 2004, 06:49:15 AM »

So may be we should add it :)
Logged
Pages: [1] 2