cache size: growing and shrinking. No self-protection?

Get help with all aspects of 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
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

cache size: growing and shrinking. No self-protection?

Post by sander »

Hi,

SABnzbd 0.4.0 (Ubuntu Linux 8.04) stopped working because it filled up the harddisk by filling up the cache directory (yes, my / partition is too full).
I relocated the cache to a partition with more space, and then I watched it's space use: it seems to go up (to about 45 MB) and down.

Q1: is the size and the growing & shrinking normal behaviour?
Q2: is it correct (and meant-to-be) that SABnzbd does not check the space available when writing to the cache directory, and that it can hang itself that way?


Code: Select all

sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
20M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
24M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
25M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
26M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
31M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
31M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
27M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
28M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
34M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
21M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
22M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
43M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
34M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
34M     /media/sda3/sander/cache/
sander@ubuntu804:~$ du -BM /media/sda3/sander/cache/
23M     /media/sda3/sander/cache/
sander@ubuntu804:~$ 
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: cache size: growing and shrinking. No self-protection?

Post by shypike »

The cache folder holds all the articles until they can be assembled into a file. The file is then stored in the "incomplete" folder.
So, indeed the size goes up and down all the time.
If you have enough memory, you can enable the memory cache. This will lessen the disk cache usage, but more importantly reduce disk access substantially.
Given an average size of 50M per file, the memory cache would ideally be about 75M. Worth it, if you can spare the memory.
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: cache size: growing and shrinking. No self-protection?

Post by sander »

As my machine's got 4 GB RAM, I think I can handle that. ;-)

Is it the option "Article Cache Limit" under Config -> General?

If so, what's the unity: bytes, kbytes, Mbytes, Gbytes? Or can I select that myself by specifying an extension? Is "200M" the value for 200 MByte RAM?

Thanks.
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: cache size: growing and shrinking. No self-protection?

Post by shypike »

All your assumptions are correct (as you could have seen in the Wiki Help page).
"-1" is unlimited memory use (which is never more then the size of two files).
Post Reply