Skip to content

Instantly share code, notes, and snippets.

@dimorinny
dimorinny / GPU.md
Created March 24, 2019 22:09
Android emulator gpu utilization question

We're running a lot of emulators for testing on our CI. Right now, we're using swiftshader_inderect renderer. But we have tesla p40 on our servers and want to utilize it because CPU usage is our bottle neck.

I'm using command:

/opt/android-sdk/emulator/emulator -avd emulator_22 -sdcard /sdcard.img -verbose -gpu host -snapshot ci -no-snapshot-save -no-boot-anim -no-audio -qemu

for running gpu accelerated emulator and everething works great.

But when I tried to run a lot more emulators (about 6) I found X11 lags (about 20 FPS) and white screen of deth on 7th emulator with a lot of buffer allocations errors: