docker-android icon indicating copy to clipboard operation
docker-android copied to clipboard

Low performance on nested virtualization environment

Open Ahernandez2904 opened this issue 2 years ago • 3 comments

Hello! My team is trying to emulate virtual devices using Android Kubernetes Services. We are able to send Selenium tests, but it takes up to 20 minutes to boot depending on the docker image. 7.1.1 is fast enough but the Chrome and Chromedriver versions are a little old and we are receiving some issues because of that. We are using a device with nested-virtualization enabled. Our machine is Standard_F4s_v2 (8 RAM, 4 CPU cores, no GPU), which has enough RAM and CPU to run the device.

We tried environment variables like -gpu off -noboot-animation, but it just made the device disappear or did nothing.

Example of a part of an AKS YAML file:

            - name: EMULATOR_ARGS
              value: '-gpu off'
            - name: LD_LIBRARY_PATH
              value: >-
                /root/emulator/lib64/qt/lib/:/root/emulator/lib64/:/root/emulator/lib64/gles_swiftshader/

Is there a way to solve that? Any suggestions on what should we do instead to run virtual devices? Thank you!

Let me know is more information is needed.

Ahernandez2904 avatar Feb 02 '23 20:02 Ahernandez2904

@Ahernandez2904 Have you found any solution? I got the same problem, the performance is too lower than I expected.

asafe199 avatar Jul 20 '23 14:07 asafe199

@asafe199 I remember we tried a couple of things but didn't work. So we dropped the investigation and started using a service like SauceLabs but cheaper :(

Ahernandez2904 avatar Jul 20 '23 15:07 Ahernandez2904

@Ahernandez2904 I got it, thanks mate

asafe199 avatar Jul 20 '23 16:07 asafe199