intel / haxm

Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
BSD 3-Clause "New" or "Revised" License
3.21k stars 870 forks source link

The performance of 4 vCPUs is slower than 1 vCPUs #201

Open jay1948 opened 5 years ago

jay1948 commented 5 years ago

Describe the Bug Summary: Host Environment HAXM version: Tried with 7.3.2 and 7.4.1 Host OS version: Windows 10 Pro version Host OS architecture: x86_64 Host CPU model: Core i7-8550U Host RAM size: 16GB Guest Environment Android Emulator: Guest OS version: Tried with Lolipop, Nougut, Oreo Guest OS architecture: tried with both x86 and x86_64 To Reproduce Steps to reproduce the behavior:

  1. set hw.cpu.ncore=4 in Nexus_10_API_27.avd/config.ini
  2. emulator -avd Nexus_10_API_27.avd
  3. run Antutu benchmark in Android, the GPU score is about 40000, the code consuming time of writel in goldfish kernel is about 40us one time.
  4. set hw.cpu.ncore=1 in Nexus_10_API_27.avd/config.ini
  5. emulator -avd Nexus_10_API_27.avd
  6. run Antutu benchmark in Android, the GPU score is about 50000, the code consuming time of writel in goldfish kernel is about 30us one time. Expected Behavior

Expectation: the code consuming time of writel is shorter with 4 cores than 1 core

Reproducibility 100%

HaHoYou commented 5 years ago

My result is different with yours. Mine results of 4 cores is faster than 1 core. Using Antutu v7.3.0, 4 cores scores is better in every area,or at least the same, especially in the total score. Would you bother to try it again? Other environment as below: Host: windows 10 64bit v1511, CPU: Intel Slk, RAM: 16G HAXM v7.5.1 Emulator: 28.0.25 Guest: Image: 5x_GoogleAPI_API27_x86 v8, Ram 1.5G