-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
DietPi-Software | Transmission: RAM usage raises unlimited in Stretch repo version #2413
Comments
@GulyFMG We install Transmission from Debian repo indeed, where the fix has not yet been applied. Only thing we can do is built a custom package each architectures and place it on our server. But requires some work and much testing and could mess with the Debian package, it's files, e.g. systemd unit and such 🤔. Would be great if we could push the fix to be applied in Debian Stretch. Perhaps a comment to the closed bug report to ask for a backport to Stretch will do: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865624 |
How about a simple script to restart the service after x % of memory usage? |
@GulyFMG |
True , i did some inicial testing wth qbitorrent and deluge and both suit my needs... so maybe im gonna drop transmission until its patch. Thank you for the input. |
确实存在这个问题,Linux工作机制应该就是把内存用尽,软件层没有办法解决 |
@1265578519 |
I reopen the topic, to not forget following the issue externally and in case push a backport of the fix to Debian Stretch. |
Hey guys, Restart bashrc and for now its pretty stable one thing that was making the problem worse was jackett but since they release the non mono version, my system has been pretty stable. |
@GulyFMG Little note:
|
@MichaIng |
my Edit 2: finally got it, .bashrc is present in root, i used @MichaIng your script and it added line to the file. Sorry total newbie |
@nicoolaro The line just adds the However we need to find a solution from this issue so that Transmission does not use this much RAM. |
hey, the thing that was eating the ram was mono related apps like sonarr, radarr and Jackett, being the biggest offender Jackett, and it would crash the system. I'm on the phone so can't send much more info. |
@GulyFMG We already have a system inside However 200M memory consumption for a torrent downloader (that states to be lightweight) without any runtime system is simply a hint for a memory leak that needs to be fixed. |
Puhh, source build is not too trivial (official instruction do not work OOTB, "no supported crypto library found", configure file missing that docs state, pre-reqs take > 600M disk size, several X11 packages included somehow due to dependency tail... Nothing I am keen to ship to end users and requires much testing on all hardware models... Finally the only thing that I could imagine is that we host custom binaries for current and place them on top of the APT install (so user + systemd unit etc setup does not need to be done manually). But I have no ARMv6 or ARMv8 machine here. Also a bid out of scope for v6.25 at least. Moved to outstanding milestone for now. Will have another look after v6.25 release. However if someone wants to compile binaries, I am happy to host them on dietpi.com and ship with our Transmission install for the related architecture. |
I mark this issue as closed now since we don't ship any Stretch image anymore and with Buster the initial issue has been resolved. There seem to be still cases where Transmission does not release memory/cache as expected, but we should track those in a new issue, in case. |
Is this supposed to be solved? Because I am experiencing the exact same problem on DietPi 6.34.3 |
@igorkulman |
Doing |
Yes as can be seen in above discussion, while the major issue on Stretch has been solved with the version shipped with Buster, Transmissions still seems to have a memory leak issues. I can't find it, but one user "solved" it by regularly restarting the service. Since we have thousands of Transmission users, I don't thing it is a general issue, especially memory usage does not raise to 100%, but at least it does not release memory to initial state after torrents have been removed. @igorkulman can you go a bit more into detail, how much memory does Transmission use at startup (without active torrents), how much while having a certain amount of active torrents, and how much after those did finish/have been removed? |
When When I start a torrent the memory usage starts to climb slowly up to 27.4%, never exceeding it (Kodi for comparison is a stable 26%). When the download finishes, the memory stays at 27.4% never coming down, no matter what I do. Starting another download does not increase it further. My total memory usage at that point is always around 80%. Only restarting the |
Okay, that matches other observations. I think most users do not recognise or mind, when running that daemon 24/7 with always active torrents anyway, but I agree that a good program should release memory when changing from active to idle state, in this case memory that is used for downloading/seeding active torrents, after those torrents have been removed. Let's see if the new v3 works better. It is quite easy to install manually from Bullseye repository:
|
You can lower cache size mb in transmission config file and then memory will not rise to that level.. on my end transmission also doesn't release memory after torrent is finished/deleted.. |
Actually it is not that easy
Anyway, I think I will stick with Edit: Just noticed, your command downloads amd64, I need to change it to armhf. |
can you post |
|
I guess you would need to replace all and don't forget to delete |
Using Transmission 3.00 installed manually there is not much of a change, just that the memory usage is a bit lower. Stays az 22% after download finishes, also never drops down back. |
did you tried to lower cache size as indicated above #2413 (comment) |
Ah lol sorry for linking the wrong architecture, copy paste from x86_64 VM console 😄. |
Having same problem on
Transmission gets stuck and eats about 1.5 - 1.6 GB of RAM. Problem is that it keeps my external HDD active and it may damage it. |
the topic is more than 3 years old and has been closed. Pls open a new issue and fill the required information. thx for understanding. |
I don't see a reason, It's the exact issue. on the latest version of dietpi. Something may've break along the way. |
No it is an entirely different issue, even sounds like expected or something which can be solved by changing the configuration. The issue here is about a bug in the Transmission version shipped with Debian stretch, while you run the 2 versions newer Debian Bullseye with much newer Transmission, which is not affected by this bug 😉. EDIT: Although, the newer comments here seem to indicate that it still has a memory leak in some situations (but a different one). However, OP issue is long obsolete, so a new issue makes sense in any case. |
ADMIN EDIT
Workaround: #2413 (comment)
Required Information:
DietPi version | #!/bin/bash
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=19
G_DIETPI_VERSION_RC=7
G_GITBRANCH=master
G_GITOWNER=Fourdee
Distro version |
9.6
Kernel version |
Linux blacksun 4.14.80-v7+ #1161 SMP Mon Nov 12 18:51:43 GMT 2018 armv7l GNU/Linux
SBC device | RPi 3 Model B+ (armv7l)
Power supply used 5V
SDcard used | SanDisk 16Gb
Additional Information (if applicable):
Steps to reproduce:
Just download a torrent with transmission.
At boot memory print is low when it is downloading a torrent is growing as expected but at the end the memory get "locked" after a couple of hour i need to reboot transmission to reduce memory consumption.
Expected behaviour:
after download transmission should release memory
Actual behaviour:
after download transmission doesn't release memory
Extra details:
transmission/transmission#313 (comment)
i did some dig around and it looks like "The problem is solved in Debian since 2.94 packaging [1] by applying the proposed workaround. But in general it is not yet solved. I continue investigating this further."
Best Regards
The text was updated successfully, but these errors were encountered: