Way to set CPU utilization?

Message boards : Android : Way to set CPU utilization?
Message board moderation

To post messages, you must log in.

AuthorMessage
Jason Short

Send message
Joined: 16 Jul 15
Posts: 3
United States
Message 63082 - Posted: 16 Jul 2015, 3:34:55 UTC

Is there a way to set the max utilization on an Android device like you can on a PC? I have an 8 core Android phone, but when all cores are going it hits 108 or higher temp. Is there a way I can set it to use 75% of the CPU? I think that would help it stay a lot cooler.

I love the idea of this though. A lot of phones sit on a charger all night every night and could be doing science during that time.
ID: 63082 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 63083 - Posted: 16 Jul 2015, 10:52:13 UTC - in response to Message 63082.  

On the device itself (web computing preferences aren't utilised on the Android Boinc),
Open Boinc, go to 'Preferences', hit the 'Show advanced preferences and controls' tickbox, then scroll down and change the 'Used CPU cores' to what you want.

Claggy
ID: 63083 · Report as offensive
Jason Short

Send message
Joined: 16 Jul 15
Posts: 3
United States
Message 63093 - Posted: 17 Jul 2015, 4:40:24 UTC - in response to Message 63083.  

Thanks, that did the trick. But now I am seeing a weird behavior where the tasks all swap from running to suspended over and over. I think this is because I limited the CPU usage and the UI is showing suspending rather than just sleeping or something. I will let it run this way overnight and see how it performed (and how hot it got).
ID: 63093 · Report as offensive
Profile Elektra*
Avatar

Send message
Joined: 12 Jul 14
Posts: 6
Germany
Message 63094 - Posted: 17 Jul 2015, 8:53:30 UTC - in response to Message 63093.  

Permanent task switching between running and suspended may be a hint that the battery is nearly empty although charging it. That causes all tasks to suspend when the remaining battery power falls under a certain threshold and resume when power rises while the device being idle. My octa core smartphones have been supplied with way too weak chargers (max. 1A charging current). You need to feed your smarties with powerful chargers with at least 2A output. Samsung has a good charger as accessory with stable 2.1A output. Or you have a look at Amazon, they have some USB chargers with 5 or even 7 USB ports each driven with 2.5A. Sometimes it helps to remove the USB cable and reconnect it or even restart the device.
Power supply and battery temperature are the most crucial weak points for power crunching with Android devices. I'd to see at two of my smartphones which are exclusively BOINCing the rear blowing away with a bang because the batteries blew up by overheating. Ok, a prick with a pin cured, and these devices are crunching again without further interference. Btw.: When using NativeBOINC and using global preferences (set by BOINCstats), maximal battery temperature is set to 300°C!!!! Way too much, 60°C should be the highest threshold, better 45°C. Especially during heat periods as currently in Germany your Androids get in troubles because of insufficient heat dissipation.
Love, Michi
ID: 63094 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 63095 - Posted: 17 Jul 2015, 9:35:12 UTC - in response to Message 63093.  

Thanks, that did the trick. But now I am seeing a weird behavior where the tasks all swap from running to suspended over and over. I think this is because I limited the CPU usage and the UI is showing suspending rather than just sleeping or something. I will let it run this way overnight and see how it performed (and how hot it got).

Make sure the CPU limit is set to 100% (Limits the time BOINC uses for computation), if need be run less cores to keep the heat down.

Also make sure 'Pause at CPU usage above' is set to 0%, this is most probably why it's shown as suspended,
I known the battery limits keep the app in memory, unsure about the other limits, some do, some don't.

Claggy
ID: 63095 · Report as offensive
Jason Short

Send message
Joined: 16 Jul 15
Posts: 3
United States
Message 63098 - Posted: 17 Jul 2015, 15:18:44 UTC - in response to Message 63095.  

Setting to 100% CPU the battery will hit 108 even if I am only using 4/8 cores. Turning on all 8 and setting it to 80% use the battery was at 95.5 overnight. So I would rather not use 100% because of the heat.

This is a Samsung Galaxy S6 with the 2A charger. The battery stays at 100% the whole time, so I don't think it is a weak charger.

My theory is that the UI just has a glitch. The device did finish work units overnight, so the phone is working fine.
ID: 63098 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 63102 - Posted: 17 Jul 2015, 19:13:23 UTC - in response to Message 63098.  

What type of surface is the device sitting on?

Claggy
ID: 63102 · Report as offensive

Message boards : Android : Way to set CPU utilization?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.