qBittorrent
qBittorrent copied to clipboard
v4.4.5 x64 - Insane memory usage (Windows)
qBittorrent & operating system versions
qBittorrent: v4.4.5 x64 OS: Windows 10 x64 21H2 10.0.19044 Qt: 6.3.0 Libtorrent: 1.2.17.0 32 GB RAM
What is the problem?
Insane memory leak. 5k torrents. In previous versions there was excessive consumption and chrome/telegram/media(vids, streams) crashes, even with a memory usage limit.
Steps to reproduce
- Start qB
- Wait
- ???
- Profit.
Additional context
No memory leak with all seeding torrents turned off.
Log(s) & preferences file(s)
No response
In previous versions there was excessive consumption and chrome/telegram/media(vids, streams) crashes, even with a memory usage limit.
Why do you report about previous versions?
Why do you report about previous versions?
Just for additional information. Main report about last version.
Seems like a duplicate of many other issues reported this year. It is connected with libtorrent v2 - https://github.com/arvidn/libtorrent/issues/6667
Speaking of the current topic, it is better to switch to the client version with libtorrent v1. And since 4.4.5 it is default build. You can get under qBittorrent Windows x64
link from https://www.fosshub.com/qBittorrent.html
After installing it you'll see something like this in About dialog:
@adem4ik, sorry, there was a mistake in libtorrent ver. My current version is 1.2.17.0 already.
@FiTADiNE in this case you can limit RAM usage by setting up Tools>Options>Advanced>Disk cache
(Кэш диска). -1
means unlimited/auto. Only build with libtorrent v1 has such option.
@adem4ik, probably, in prev releases there was RAM limit, but now it's disk cache limit. Omg... Thanks, i'll try it.
This is a separate thing, but how did you get your task manager to be dark like that?
@adem4ik, still the same.
@ElectricityMachine, just windows dark theme.
4.4.5(libtorrent1+qt5) x64 uses 300-400 MB more memory than the disk cache size. 4.3.9 did not.
@pulbitz, best way is downgrading to 4.3.9?
@pulbitz, best way is downgrading to 4.3.9?
I think it's a bit odd to use around 300-400 MB more memory than the disk cache size I specified. That's all. I'm still using 4.4.5 (libtorrent1+qt5) as there are no other inconveniences.
4.4.5(libtorrent1+qt5) x64 uses 300-400 MB more memory than the disk cache size.
Do you think qBittorrent uses memory only for the disk cache?
I usually use the disk cache size set to 4096 MB. Below is the result of measuring memory usage in Process Explorer. And I tested it by setting it to 1024 MB.
Working Set limit 1024MB.
25% of 32GB RAM used after 15 minutes. (Work around application stuttering on Windows not fixed [fixed in 4.4.4]).
Disk Cache limit 1024MB.
68% of 32GB RAM used after 15 minutes and growing. (Peak Working set cuz i've tried 2048MB Disk Cache).
FiTADiNE, decide already which version of qbt you are using and on which libtorrent.
@stalkerok, already decided in 1st post.
Working Set limit 1024MB.
25% of 32GB RAM used after 15 minutes.
There are less than 1GB of RAM used on this screenshot. The similar contradiction is in your second screenshot and related comment.
@glassez, yes, cuz it's older version on libtorrent 2 with Working set limit parameter and w/o memory leak. Here you can see 2 screenshots: 1066MB qB usage with total 88% of RAM (28.16GB) and 21% total of RAM (6.72GB) w/o qB.
Today i've tested older version, and last on Qt5. 4.4.5 has memory leak with libtorrent 1.2.17.0 on any Qt. 4.4.3.1 on libtorrent 2.0.6.0 doesn't have memory leak, but has problem with "work around application stuttering on Windows" which was fixed in 4.4.4.
Now i'm testing 4.4.5 RC_2 with libtorrent 2.0.7.0
@FiTADiNE, have you tried lowering the memory priority?
1066MB qB usage with total 88% of RAM (28.16GB)
Unfortunately, your screenshot does not provide any information about what actually uses all this memory.
4.4.5 has memory leak with libtorrent 1.2.17.0 on any Qt
There can be no memory usage that is not taken into account by the operating system (unless of course there is a memory leak in the operating system itself). Even if there is a memory leak in some application program, the operating system knows that this memory is occupied by this program.
Of course, this memory can be used by the operating system itself for something related to the operation of qBittorrent (for example, for I/O caching). Therefore, it would be much more useful if you presented a more accurate source of memory consumption. Besides, it would be better to see reports in a more structured form (since you decided to compare data on the work of several qBittorrent versions).
@stalkerok, no, should i? And why?
@glassez, lolwhat? 1st screen: qB works, 88% of 32GB RAM. Second: qB closed, 21% of 32GB RAM. What kind of screenshot do you need? Maybe i should record video? UPD: i'll be glad if you tell me, how can i present more accurate source of memory consumption and structured form of reports.
@FiTADiNE, disable the OS cache and set the memory usage to the lowest level, this will reduce the memory consumption.
1st screen: qB works, 88% of 32GB RAM. Second: qB closed, 21% of 32GB RAM. What kind of screenshot do you need?
Where it is seen what exactly uses all these memory.
structured form of reports
Since you provide reports about different qBittorrent version don't forget to attach info about used qBittorrent, libtorrent, OS, etc.
Where it is seen what exactly uses all these memory.
Okay, where could i see it?
Since you provide reports about different qBittorrent version don't forget to attach info about used qBittorrent, libtorrent, OS, etc.
Already done (with attached screenshots and text information in posts).
v4.4.5 RC_2, Qt 6.3.0, libtorrent 2.0.7.0. 30% of RAM used. Works fine probably, but Private bytes...?
I do not understand what people expect the RAM usage to be with 5000 torrents. If qBt has to constantly access and read files from disk, the OS is definitely caching some of them and even with a working set limit you may not have control over how the OS behaves. If there is a memory leak, you should run a profiler and collect data for the developers to look into it and see if there's indeed a leak or it's just the OS.
I do not understand what people expect the RAM usage to be with 5000 torrents.
What do you expect it to be?
@summerqB, well, now i'm testing v4.4.5 Qt6 libtorrent 2.0.7.0 and i don't have any problems with RAM. 350MB usage with 1024MB Working set limit, and 21% usage of total RAM with no "Work around application stuttering on Windows".
I do not understand what people expect the RAM usage to be with 5000 torrents.
What do you expect it to be?
Anywhere between 16 to 32 GB. Also someone should not be seeding 5k torrents on a regular PC and expect the torrent client to not bog down the system. It should be done on a dedicated system with adequate CPU, RAM, Network capacity and proper storage medium to be able to handle the I/O demand.
Also you should note that less RAM limit will result in more page faults, the OS will flush the dirty pages earlier, as well as the clean pages, resulting in frequent read/write which could’ve been avoided if the program had cached more data in physical memory.