Not enough Disk Space warning improvement

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
trinsnet
Newbie
Newbie
Posts: 8
Joined: March 12th, 2010, 11:16 pm

Not enough Disk Space warning improvement

Post by trinsnet »

I'm on Linux, SABnzbd 0.7.11. I'll update to 0.7.12 when my queue is empty, which could be awhile....

I have a few mount points, for example:
/mnt/category_test/ (2 TB)
/mnt/downloads/ (750 GB)

Let's assume that /mnt/downloads has 500GB free and /mnt/category_test has 1 TB free.

Temporary Download Folder: /mnt/downloads/incomplete
Completed Download Folder: /mnt/downloads/complete

Category: new_category; Priority: default; Processing: +Delete; Folder/Path: /mnt/category_test/

If I add a few items to the queue in new_category that are individually less than 500 GB yet sum to more than 500 GB then I get an erroneous Not enough Disk Space warning from SABnzbd regarding /mnt/downloads.
It is erroneous because SABnzbd will download 1 item (ITEM1, 200 GB), unpack it to /mnt/category_test/ITEM1_unpack, and delete /mnt/downloads/incomplete/ITEM1. Then it has the same amount of disk space available for ITEM2 on /mnt/downloads as it did for ITEM1. It is also a problem that SABnzbd ignores the free disk space on /mnt/category_test

We could make the disk space warning smarter by checking each item in the queue (path and post-processing) and having queue tallies for each mount point:

List mount points on the system and compare them to Completed Download Folder path, Temporary Download Folder path, and the path specified for each category. Check free disk space for each mount point that is relevant to SABnzbd.

Create a queue tally for each mount point and check which type of post-processing is set:
-if it is Download or Repair then add the actual download size to the appropriate queue tally
-if it is Unpack or Delete then add two times the actual download size to the appropriate queue tally

Compare the total of each queue tally to the space free on the corresponding mount point and have multiple lines for free disk space information below the queue. We can also include a grand tally for total queue size remaining but there is no reason to compare it to free disk space.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Not enough Disk Space warning improvement

Post by shypike »

SABnzbd only guards the "incomplete" folder, not the final destination.
SABnzbd gives a warning for "incomplete", because it could happen that all jobs fail and remain in "incomplete".
Other than that, SABnzbd is not a disk guardian.
We only added some basic checks to prevent downloaded data from getting lost.
trinsnet
Newbie
Newbie
Posts: 8
Joined: March 12th, 2010, 11:16 pm

Re: Not enough Disk Space warning improvement

Post by trinsnet »

I see. I didn't realise it is out of scope.
Post Reply