A
Android Question
Guest
Device: galaxy s7 edge (no root)
Apps: GNURoot – Debian (fake root) , Termux (terminal emulator)
I am trying to run some cpu intensive linux software on my phone.
I use the app “GNURoot – Debian” to get a linux terminal. Then I install and run my software.
For a few minutes everything works as expected, but the software soon begins to use up to 300% cpu and the phone will freeze and require reboot.
On my desktops I just use the command “cpulimit -P java -l 20” and this prevents the programs from crashing the desktop.
On the GNURoot - Debian Terminal the command “cpulimit -P java -l 20” will return “Proccess ID xxx detected” but the cpu usage is not actually limited. proccess cpu usage will still shoot up to 300% and crash the phone.
“nice” or “renice” also seem to have no effect.
I have tried to use the “Termux” terminal emulator to use the “cpulimit” command on the entire “GNURoot” app, but it returns “operation not permitted.
I am no linux guru and I am guessing the problem might be that the phone is not rooted, but in my case rooting the devices is not an option.
Can anyone please recommend how I can limit the cpu usage for this app or proccess? I’ve been stuck on this for over a week and am getting nowhere with the little time I have.
Thanks for reading. Your help would be much appreciated.
Apps: GNURoot – Debian (fake root) , Termux (terminal emulator)
I am trying to run some cpu intensive linux software on my phone.
I use the app “GNURoot – Debian” to get a linux terminal. Then I install and run my software.
For a few minutes everything works as expected, but the software soon begins to use up to 300% cpu and the phone will freeze and require reboot.
On my desktops I just use the command “cpulimit -P java -l 20” and this prevents the programs from crashing the desktop.
On the GNURoot - Debian Terminal the command “cpulimit -P java -l 20” will return “Proccess ID xxx detected” but the cpu usage is not actually limited. proccess cpu usage will still shoot up to 300% and crash the phone.
“nice” or “renice” also seem to have no effect.
I have tried to use the “Termux” terminal emulator to use the “cpulimit” command on the entire “GNURoot” app, but it returns “operation not permitted.
I am no linux guru and I am guessing the problem might be that the phone is not rooted, but in my case rooting the devices is not an option.
Can anyone please recommend how I can limit the cpu usage for this app or proccess? I’ve been stuck on this for over a week and am getting nowhere with the little time I have.
Thanks for reading. Your help would be much appreciated.