aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: How to know the amount of disk space needed for download?  (Read 4451 times)

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
How to know the amount of disk space needed for download?
« on: April 06, 2009, 03:12:52 PM »

Is it possible to know how much disk space will be occupied (when the download will ends)  from the files currently downloading?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: How to know the amount of disk space needed for download?
« Reply #1 on: April 06, 2009, 09:41:41 PM »

You mean total size of all downloads minus effective size of temp folder (considering sparse file effects) ?
No, there's no function for that at the moment afaik.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: How to know the amount of disk space needed for download?
« Reply #2 on: April 06, 2009, 10:12:48 PM »

ok, and the absolute total amount of disk space required for the downolad, regardless the tmp files?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: How to know the amount of disk space needed for download?
« Reply #3 on: April 06, 2009, 10:19:37 PM »

Looks like even that info is not there at the moment.  :(
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

lfroen

  • Guest
Re: How to know the amount of disk space needed for download?
« Reply #4 on: April 06, 2009, 10:22:39 PM »

ok, and the absolute total amount of disk space required for the downolad, regardless the tmp files?
Eeee - you mean size of your file?!
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: How to know the amount of disk space needed for download?
« Reply #5 on: April 06, 2009, 11:32:29 PM »

He might be downloading more than one of them.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: How to know the amount of disk space needed for download?
« Reply #6 on: April 07, 2009, 12:36:23 AM »

ok, and the absolute total amount of disk space required for the downolad, regardless the tmp files?
Eeee - you mean size of your file?!
No.
I'll try with an example.
I ' m searching 4 files with aMule:
  - Ubuntu live 9.04 iso image 700 MB
  - Ubuntu alternate 9.04 iso image 698 MB
  - amule 2.2.4 tarball  4.5 MB
  - Debian Lenny iso image  136 MB
If I start to download these files I need 1538.5 MB of free disk space. When I start the downloads the amount of the disk space required is the same of the sum of the sizes of the files, during DL the tmp files growth up and free space on disk decreases.

 It would be nice to have a function that gives a look to the total of the files downloading and report the total of the disk space required (the sum of the files sizes), than calculate the amount of the DL already done and compare the delta with the space available on the disk, keeping in mind that during DL probably aMule need some more space for the tmp file than the actual size of the file downloading.

sum of sizes + extra space required - total downloaded = free space required
disk space avalaiable  - disk space required =  disk space remainig   (if negative    :o)

EMule does that and I think is not very hard to do it.
« Last Edit: April 07, 2009, 03:08:11 PM by luquino »
Logged

lfroen

  • Guest
Re: How to know the amount of disk space needed for download?
« Reply #7 on: April 07, 2009, 01:38:43 PM »

Sorry, but I hardly see a point in such calculation. In your example you need at least 1.5Gb. Plus "some" overhead (size of .met files + sparse files handling). In case you don't allow sparse files, the overhead equal to size of .met file which is few Kb, which is less that 1% of file size and comparable to cluster size on your disk.
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: How to know the amount of disk space needed for download?
« Reply #8 on: April 07, 2009, 03:04:45 PM »

ok lfroen, may be is not so important to insert the overhead in the calculation, that is not the point.
The point is to have an instant situation of the disk space, this is important.
In the example I mention about 1.5 GB of download, but in the normal use I have much more Gigas downloading  at the same time, and be sure I am totally legal.
« Last Edit: April 07, 2009, 03:06:55 PM by luquino »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: How to know the amount of disk space needed for download?
« Reply #9 on: April 07, 2009, 08:08:27 PM »

I think is not very hard to do it.
At first glance not. But if you have temp files and 4 categories residing on 3 different drives (mounted relatively to each other), some sparse-capable, some not, then things can get slippery quickly, and hard to present.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: How to know the amount of disk space needed for download?
« Reply #10 on: April 08, 2009, 03:10:42 AM »

... if you have temp files and 4 categories residing on 3 different drives (mounted relatively to each other), some sparse-capable, some not, ...
I don't understand well what you mean, but it's  my fault not yours, I will look for document about this argument and I will study hard.

Anyway, the easiest solution: for each file downloading you know both the total size and downloaded size (this data are displayed in DL window), just sum those two data in all the files downloading and report the total of  "Global size" and "Downloaded size" , you could put the total "still to download" as well.
That could be enough and doesn't  concern the technical problem you were mentioning.
« Last Edit: April 08, 2009, 03:17:25 AM by luquino »
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: How to know the amount of disk space needed for download?
« Reply #11 on: April 18, 2009, 03:17:43 PM »

no way?
Logged