qbittorent vs deluge memory usage.
Posted: Wed Aug 17, 2016 1:00 am
I constantly am going back and fourth between qbittorrent and deluge, but am pretty sure i'll end up with qbittorrent in the end. Anyway, for purely curious reasons, I wanted to ask if you know why qbittorrent uses about double the memory roughly, than deluge, when using same latest libtorrent version as backend.
In all RAM numbers I mention, I get them from the python script psmem.py, which is very good at reporting precise private and shared memory usage of processes, and I quote the full private+shared value, but the shared value is always very small and e.g. only about 5mb more than the private.
When downloading a single torrent in default config, deluge uses 80mb and qbittorrent uses 311mb. That is of course because deluge has defined by default the disk-cache to 8mb(512*16kb blocks), whereas qbittorrent defines to use libtorrents own disk-cache management which is total RAM / 8.
However, when changing qbittorrent to use 8mb as diskcache then qbittorrent uses 170mb, which is still over double of deluge's 80mb. The only time I can get comparabel memory usage from the two clients, is when setting qbittorrents disk-cache to 1mb, which then uses about 80mb like deluge, but then download speed is greatly reduced to 4 times lower download speed than deluge. Enable/disable OS-cache doesn't have any influence.
However, qbittorrent uses less RAM than deluge when started fresh and no torrent started yet, where deluge uses about 65mb and qbittorrent 55mb. Qbittorrent also uses slightly less cpu than deluge on my system.
I'm not complaining here, and i'm greatly appreciative against the devs for making such a nice app and giving it away for free to us - thank you so much, but i'm just curious about this. I know unused RAM is wasted RAM, but I prefer keeping RAM usage as low as possible, like with CPU, to let other stuff on the system have the most resources available as possible - I have 4gb, well 3.3gb only listed when checked from terminal.
Thank you so much in advance for any insight or thoughts on this please.
In all RAM numbers I mention, I get them from the python script psmem.py, which is very good at reporting precise private and shared memory usage of processes, and I quote the full private+shared value, but the shared value is always very small and e.g. only about 5mb more than the private.
When downloading a single torrent in default config, deluge uses 80mb and qbittorrent uses 311mb. That is of course because deluge has defined by default the disk-cache to 8mb(512*16kb blocks), whereas qbittorrent defines to use libtorrents own disk-cache management which is total RAM / 8.
However, when changing qbittorrent to use 8mb as diskcache then qbittorrent uses 170mb, which is still over double of deluge's 80mb. The only time I can get comparabel memory usage from the two clients, is when setting qbittorrents disk-cache to 1mb, which then uses about 80mb like deluge, but then download speed is greatly reduced to 4 times lower download speed than deluge. Enable/disable OS-cache doesn't have any influence.
However, qbittorrent uses less RAM than deluge when started fresh and no torrent started yet, where deluge uses about 65mb and qbittorrent 55mb. Qbittorrent also uses slightly less cpu than deluge on my system.
I'm not complaining here, and i'm greatly appreciative against the devs for making such a nice app and giving it away for free to us - thank you so much, but i'm just curious about this. I know unused RAM is wasted RAM, but I prefer keeping RAM usage as low as possible, like with CPU, to let other stuff on the system have the most resources available as possible - I have 4gb, well 3.3gb only listed when checked from terminal.
Thank you so much in advance for any insight or thoughts on this please.