-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Termux suddenly closed when more cpu or memory used #1789
Comments
Nothing can prevent Termux from being closed once certain memory usage threshold is reached. Safe memory usage by any application on Android is no more than 50%. Beyond that, probabilities of triggering OOM killer drastically increase. Android devices are focusing on system stability and multitasking, they are not designed for processing large amounts of data.
Android does not have such thing as "exceptions for memory optimization".
Really? Then how Termux reached out-of-memory condition (crash)? |
Device Care has nothing to do with lowmemorykiller (kernel driver) or lmkd (userspace) and can't configure them.
CPU overusing causes device heating and quickly drains battery charge, nothing more. Suggesting to try
to limit memory allocations to 256MiB max. You may change "256" to some other value, e.g. 512. |
Many thanks |
Hello dear developers
I use Termux for glossary converting tool "pyglossary", when I try to convert a big glossary Termux closed suddenly when the process reach to 99.9%,
N.B: I did everything to prevent closing (kept termux notification and locked it in recent apps, added exeption for Termux in battery optimization, make not to be checked by "Device care app of samsung", closed every app other than Termux, run it as forground with light on and I kept cooling my phone with fun.
N.B: converting smaller glossaries of the same type done smoothly "so, it is not pyglossary issue"
N.B: During the process, cpu usage reach to 100% many times and sometimes android tells me that python use more cpu and I close this message. But no storage space problem.
I hope you suggest or make any solution.
Thanks a lot 🙏
The text was updated successfully, but these errors were encountered: