-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.1.0 prerelease used 59gb of memory #8485
Comments
I have noticed this on Windows too. Last time I check Tribler was using 5.8GB. |
Did you change Hops? This happened with me [sudden rise in size of Tribler folder] also. I changed Hops of my torrents and then suddenly my Tribler folder was equivalent to 80 GB. All these torrents of mine, were already present in BiglyBT, so when I opened BiglyBT - all those torrents suffered disk error & automatically deleted themselves. I have put them on redownload but some torrents were very obscure - hopefully I can get them back. I think this error is related to this = #8483 But who knows |
I think my issue may have been related to the debug logs. When the logs are open it is consuming excessive amounts of memory in the browser, not specific to the Tribler process. I have seen it use up to over 8GB of memory. |
No change in hops, they have all been 3 hops. I did not have the web client open at the time. |
Since upgrading to 8.1.0 I am also seeing uncontrolled memory usage. I have tribler's output redirected to /dev/null to prevent it from filling my root partition, so I have not been able to look for hints there. Based on casually observing top while writing this, tribler seems to be steadily consuming memory, maybe on the order of a gig per hour. ...and already 42g of virt... Oh, poking around in the journal confirms the kernel killed tribler: Mar 09 03:03:21 mouse23 systemd[1139]: Started app-org.tribler.Tribler-4cd2900cefb443c68466c7f5074053ed.scope - Tribler - P2P /Bittorrent/Youtube client. ...and another glance at top suggests that the memory has leveled off for now... Update from 2 hours later; the memory use has gone down a bit, so it is not a simple case of memory use steadily increasing... |
Thanks for the input everyone. I think we hit this bug (inside our If I read that (massive) issue correctly, the default disk writing mode of |
@qstokkink I installed Tribler 8.0.7 and ran some tests in comparison to 8.1.0 and it looks like the current version is mapping the torrent data files to memory. I don't see the mapping occurring in Tribler 8.0.7. I think this also explains why I was seeing memory usage spiking and then dropping off... |
|
@HanabishiRecca thanks for the help! Setting the Re-opening this issue until the above is implemented. |
Tribler 8.1.1, there is a large amount of memory pages being allocated for torrent data files. I believe this to be a continuation of #8485. A current Tribler session is using 8.95GB of memory... ...here are the commits to Triblers memory map... |
@qstokkink Tribler 8.1.2, whilst not as savage as previous 8.1.x releases memory usage is still a problem. Do you require further information to resolve? |
just stating in advance that I (the OP) won't be available to test or feedback anything until end of april, so feel fee to close or reopen if it is a peovlem |
Unless @HanabishiRecca has any more magic settings for us to play with, I think this is just the cost of supporting v2 torrents. So, regarding:
I think that - at this point - we cannot resolve this and the only way we can further reduce memory, is by going back to BitTorrent v1 again. This is probably also the reason why qBittorrent offers a v1 and v2 option. |
So I see only 2 reasons:
|
That is useful input! Tribler didn't have this memory consumption before: if it is possible to not go over 100M, we must still have a chance to reduce memory consumption. In turn, if there is still a chance to reduce memory usage, I'll keep this issue open. |
Btw about that. Libtorrent 1.x is effectively unmaintained and at this point doesn't even compile against the last version of Boost (arvidn/libtorrent#7796). So it's only matter of time when it would became completely unusable. |
I also noticed that Tribler uses an outdated version of libtorrent (2.0.9). It is highly advised to upgrade to the latest (2.0.11 atm) as we also pushed a lot of fixes on its side in conjunction. |
I let 8.1.2 run last night, and it may have been a small improvement over 8.1.0: 10.5 hours instead of 8.5, but that might be because it got 17g of ram instead of 14g. Mar 16 19:57:59 mouse23 systemd[1154]: Started app-org.tribler.Tribler-a744a0e41eae4d9b8e66d3748733bce0.scope - Tribler - P2P /Bittorrent/Youtube client. |
After upgrading to the 8.1.0 prerelease from 8.0.7 on a m1 Mac mini running the latest macOS resulted in the force quit out of memory macOS modal after about an hour of use, in which tribler was the culprit at 59gb of memory on a 16gb of ram machine. I had to force quit it from that modal as the menu bar icon was unresponsive.
I have I guess 200 torrents in which half of them are completed.
Haven't reopened it since the force quit.
Let me know what steps are needed to send the logs.
The text was updated successfully, but these errors were encountered: