How to enable Android Studio AVD to use only lesser number of CPUs than available on the computer

To use only 2 cores of the CPU of the computer, do the following action after opening a terminal window in Linux, where Device10.avd is the Android 10 AVD created: $ vi ~/.android/avd/Device10.avd/config.ini <enter> Change the values in red for the below parameters in the file to those in blue as below.hw.cpu.ncore=4 hw.cpu.ncore=2 Save the … Continue reading How to enable Android Studio AVD to use only lesser number of CPUs than available on the computer

CPU Frequency Scaling on Ubuntu 12.04 – Manage laptop heating

There are occasions when you need to run processor-intensive tasks on your laptop. These can lead to generation of heat to a level where the laptop automatically shuts down. To prevent this from happening and reduce the excessive generation of heat, you need to throttle the speed of the CPU. This helps to prevent overheating. … Continue reading CPU Frequency Scaling on Ubuntu 12.04 – Manage laptop heating

Limit CPU usage for a program

$ wget 'http://downloads.sourceforge.net/cpulimit/cpulimit-1.1.tar.gz' $ tarĀ  -zxvf cpulimit-1.1.tar.gz $ cd cpulimit-1.1 $ make # cp cpulimit /usr/local/sbin cpulimit is a program that helps to limit the CPU usage of a program. It is useful to prevent overheating and subsequent shutdown of your laptop when converting videos from one format to another. To restrict CPU usage: 1. … Continue reading Limit CPU usage for a program