Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Android Emulator (qemu-system-i386) CPU usage so high (%360)?

I haven't used Android emulator for long time because of its performance. However, Android devs claimed that emulator is better now. Even better than a real device so I started using it. It works fine, but CPU usage is too high.

Emulator Version: 25.1.7.0

Android SDK Tools: 25.1.7

Host Operating System: MacOS 10.10.3

enter image description here

like image 882
Gokhan Arik Avatar asked Jun 01 '16 17:06

Gokhan Arik


People also ask

What is QEMU system i386?

DESCRIPTION. The QEMU PC System emulator simulates the following peripherals: i440FX host PCI bridge and PIIX3 PCI to ISA bridge. Cirrus CLGD 5446 PCI VGA card or dummy VGA card with Bochs VESA extensions (hardware level, including all non standard modes). PS/2 mouse and keyboard.

Is Android emulator based on QEMU?

The Android Emulator is downstream from the QEMU emulator. It adds support for booting Android devices, emulates typical Android hardware (OpenGL, GPS, GSM, Sensors) and a GUI interface. The android emulator extends qemu in various ways.

How much RAM do you need for AVD?

However, the heap size should not be less than 12 MB. o Depending on your computer specs, the recommended ram size is in the range between 512 MB – 1024 MB.

How much RAM do I need for HAXM?

The maximum memory for the Intel HAXM driver on a 32-bit system is 1.6GB. For a 64-bit system, the maximum is 8GB.


1 Answers

Normally CPU usage is OK, but it becomes very high after the laptop comes out of the sleep mode. In this case I simply re-start the emulator. It is very annoying. Somebody suggested to edit AVD config.ini to set

hw.audioInput=no
hw.audioOutput=no

but it didn't help in my case.

Edit

The probelm seems to be fixed in Android emulator version 26.0.3.0 (build_id 3965150)

like image 87
Y2i Avatar answered Sep 19 '22 08:09

Y2i