Page 1 of 1

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

Posted: July 7th, 2008, 3:06 pm
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:~$ 

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

Posted: July 7th, 2008, 4:03 pm
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.

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

Posted: July 7th, 2008, 4:18 pm
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.

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

Posted: July 7th, 2008, 4:32 pm
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).