Author Topic: Pause With Automatic Resume  (Read 4500 times)

Offline rweldin

  • Contributor
  • ***
  • Posts: 6
Pause With Automatic Resume
« on: February 04, 2021, 03:51:41 AM »
Historically I've set my temporary download folder to a RAM disk, but recently ran into some issues after upgrading my internet. My connection is now so fast that my downloads fill up the RAM disk before the files can be decoded and deleted which causes the application to hit the pause download threshold hence pausing all downloads. It would be nice if the application resumed downloads as the temp files are decoded and deleted freeing up space for additional temp file downloads on the RAM disk. For now I've moved my temp file directory to a hard disk location which works OK, but my download speed dropped probably because of disk thrashing and all of the writes that are being done on the spinning drive.

Thanks for your consideration.

Offline Rdl

  • Administrator
  • *****
  • Posts: 4043
Re: Pause With Automatic Resume
« Reply #1 on: March 02, 2021, 02:03:50 PM »
Done, but I didn't test it.

Please, when you try new version, test it and report results here.

Offline rweldin

  • Contributor
  • ***
  • Posts: 6
Re: Pause With Automatic Resume
« Reply #2 on: March 07, 2021, 03:14:11 AM »
Thank you for considering this and making a change. I wasn't able to get this change to work as the download would not resume after space was freed up when the temporary files were decoded and deleted.

Below are some reference times it takes to download and decode a test NZB. For the RAMDISK download I manually unpaused the download after enough temporary files were decoded and deleted to free up space for additional temp space for downloads.

Download to drive that contains the temp folder and download folder: 3:31
Download folder is the same as the drive above, but the temp folder is set to a RAMDISK: 1:48

If you have any questions please let me know.

Offline Rdl

  • Administrator
  • *****
  • Posts: 4043
Re: Pause With Automatic Resume
« Reply #3 on: March 07, 2021, 04:12:50 PM »
Whatever was downloaded was it split into parts or 1 big file?
Cause logic is this: if write failed (not enough space) that file part is deleted, returned to not downloaded state, download paused and part size recorded. After every file decode, free space is checked and if larger then recorded part size then download is unpaused.

Offline rweldin

  • Contributor
  • ***
  • Posts: 6
Re: Pause With Automatic Resume
« Reply #4 on: March 07, 2021, 04:29:40 PM »
The test was done with a NZB that contained numerous rar parts split up into ~100MB files. Many 100 MB files were downloaded, but were not able to be decoded before the pause download threshold was met which paused the application. While the application paused decoding continued which eventually decoded all of the downloaded files and freed the space on the temp folder drive when the rar parts were moved to the download folder; the application never resumed even after the free space on the temp drive was more than 10x the pause threshold.

The pause download settings reference the destination drive. Is there any distinction in the pause logic between the temp folder drive and where the file is being downloaded to? In my case the application pauses when the RAMDISK is filled up with temporary files so the destination drive is actually the temp folder drive and not where the file is being downloaded to?

If you need any other information let me know. Thanks!

Offline Rdl

  • Administrator
  • *****
  • Posts: 4043
Re: Pause With Automatic Resume
« Reply #5 on: March 07, 2021, 04:32:10 PM »
I guess I'll have to test it. What s/w for ramdisk?

Offline Rdl

  • Administrator
  • *****
  • Posts: 4043
Re: Pause With Automatic Resume
« Reply #6 on: March 07, 2021, 08:18:53 PM »
Fixed. Download 0.47.3.2

Offline rweldin

  • Contributor
  • ***
  • Posts: 6
Re: Pause With Automatic Resume
« Reply #7 on: March 08, 2021, 02:47:21 AM »
Thank you for the changes. This now works if the download folder is left as the default download folder. When I changed the download folder for a NZB using Ctrl + H to a drive that was different than the drive where the default folder was located this change did not work.

If you need any additional information please let me know. Thanks!

Offline Rdl

  • Administrator
  • *****
  • Posts: 4043
Re: Pause With Automatic Resume
« Reply #8 on: March 08, 2021, 02:56:27 AM »
What has download folder to do with temp folder?

Offline rweldin

  • Contributor
  • ***
  • Posts: 6
Re: Pause With Automatic Resume
« Reply #9 on: March 08, 2021, 03:32:23 AM »
Quote
What has download folder to do with temp folder?
Nothing that I'm aware of.

Below is the scenario that did not work on the latest release 0.47.3.2:

Temporary folder: R:\TEMP
Default download folder: R:\
Open a NZB
Ctrl+H to change the download folder to E:\
Start the download
Application pauses when the pause downloading threshold is met, but never resumes

The following scenario works as expected:

Temporary folder: R:\TEMP
Default download folder: E:\
Open a NZB
Start the download
Application pauses when the pause downloading threshold is met and resumes after space is freed on the temp drive

R: above is my RAMdisk. My previous default config had my default download folder also set to the RAMdisk. Let me know if you have any other questions. Thanks!

Offline Rdl

  • Administrator
  • *****
  • Posts: 4043
Re: Pause With Automatic Resume
« Reply #10 on: March 08, 2021, 08:58:05 AM »
You never told me you download also to ramdrive.

So, first scenario NEVER downloads to R but to E?
What is the value in setup->download#2->Pause downloading if free space...

Offline rweldin

  • Contributor
  • ***
  • Posts: 6
Re: Pause With Automatic Resume
« Reply #11 on: March 09, 2021, 03:11:02 AM »
Quote
So, first scenario NEVER downloads to R but to E?
Correct, the download is not started until after the download folder is changed to E:\

Quote
What is the value in setup->download#2->Pause downloading if free space...
Currently 100MB, but I've tested with values of 500MB and 1000MB with the same results.