Optimizing Cache size?
Optimizing Cache size?
I want to make sure I use as much of the cache available to Deluge as possible. Am I correct in thinking the cache size should be tuned to the cpus cache?
Re: Optimizing Cache size?
deluge's cache size is the amount of RAM memory (not CPU cache) that deluge will use to store torrent blocks that are frequently accessed from disk (meaning some parts of or even whole files that you seed). Deluge uses cache to store those frequently accessed files in RAM so that deluge doesn't have to read them from disk every time they are needed. So this RAM cache lowers the amount of disk reads (but also disk writes when you download a torrent) to prevent disk overloading and to increase downloading/seeding performance.
The actual amount of cache you want to set depends on your internet speed and the fact what is the machine that deluge runs on used for. For example if it is a seedbox (which you don't use for anything else except torrenting) you'd like to set the cache amount as high as possible (to maximize performance). I've got a personal, dedicated seedbox with 2GB of RAM and 1GB is used for cache. In Deluge, if you want to set your cache to 1GB you need to specify the cache size to 65536. Why this number? Because 65536 x 16kilobytes equals to 1048576 kB wich is exactly 1GB. Deluge wants its cache size provided in 16kB blocks so: a cache set to 1 equals to 16kB cache (which is a very small amount). But if your internet connection is slow (eg 10/10 mbits) you rather don't need a cache bigger than 64 MB, especially if you use your computer for other things than torrenting.
The actual amount of cache you want to set depends on your internet speed and the fact what is the machine that deluge runs on used for. For example if it is a seedbox (which you don't use for anything else except torrenting) you'd like to set the cache amount as high as possible (to maximize performance). I've got a personal, dedicated seedbox with 2GB of RAM and 1GB is used for cache. In Deluge, if you want to set your cache to 1GB you need to specify the cache size to 65536. Why this number? Because 65536 x 16kilobytes equals to 1048576 kB wich is exactly 1GB. Deluge wants its cache size provided in 16kB blocks so: a cache set to 1 equals to 16kB cache (which is a very small amount). But if your internet connection is slow (eg 10/10 mbits) you rather don't need a cache bigger than 64 MB, especially if you use your computer for other things than torrenting.
Last edited by daerragh on Sat Oct 03, 2015 4:01 pm, edited 1 time in total.
Re: Optimizing Cache size?
Thanks. I have plenty of ram to spare, so 1 gig sounds reasonable.