简体   繁体   English

同时运行HAXM AVD仿真器限制

[英]Simultaneous Running HAXM AVD Emulator Limit

To elaborate on the title, I'm running many simultaneous AVD's for my automated build/test processes (think concurrent builds for a project, or multiple projects building at once). 为了详细说明标题,我为自动构建/测试过程运行了许多同步AVD(想想项目的并发构建,或者同时构建多个项目)。 Most problems that people have with running multiple HAXM accelerated AVD's at once is memory related. 人们在运行多个HAXM加速AVD时遇到的大多数问题都与内存有关。 THIS IS NOT MY PROBLEM (I think). 这不是我的问题(我想)。 I have a pretty beefy i7 machine with 32gb of ram. 我有一台非常强劲的i7机器,配有32GB的内存。 When installing HAXM, I allocated 28gb (sorry, I can't post more pictures without more rep). 安装HAXM时,我分配了28gb(对不起,我不能发布更多的图片而没有更多的代表)。

Here is my AVD configuration(s). 这是我的AVD配置。 Observe, only 1024mb of memory allocated per emulator: 观察,每个仿真器只分配了1024mb的内存:

AVD Config: AVD配置:

在此输入图像描述

Here are my system specs: 这是我的系统规格:

OS Name Microsoft Windows 7 Enterprise 操作系统名称Microsoft Windows 7 Enterprise
Version 6.1.7601 Service Pack 1 Build 7601 版本6.1.7601 Service Pack 1 Build 7601
Other OS Description Not Available 其他操作系统描述不可用
OS Manufacturer Microsoft Corporation OS制造商Microsoft Corporation
System Name DUCHT1-DS1 系统名称DUCHT1-DS1
System Manufacturer Dell Inc. 系统制造商Dell Inc.
System Model OptiPlex 7040 系统型号OptiPlex 7040
System Type x64-based PC 系统类型基于x64的PC
Processor Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz, 3401 Mhz, 4 Core(s), 8 Logical Processor(s) 处理器Intel(R)Core(TM)i7-6700 CPU @ 3.40GHz,3401 Mhz,4 Core(s),8个逻辑处理器
BIOS Version/Date Dell Inc. 1.2.8, 1/26/2016 BIOS版本/日期Dell Inc. 1.2.8,1 / 26/2016
SMBIOS Version 2.8 SMBIOS版本2.8
Windows Directory C:\\WINDOWS Windows目录C:\\ WINDOWS
System Directory C:\\WINDOWS\\system32 系统目录C:\\ WINDOWS \\ system32
Boot Device \\Device\\HarddiskVolume2 Boot Device \\ Device \\ HarddiskVolume2
Locale United States Locale美国
Hardware Abstraction Layer Version = "6.1.7601.17514" 硬件抽象层版本=“6.1.7601.17514”
User Name Not Available 用户名不可用
Time Zone Central Daylight Time 时区中央夏令时
Installed Physical Memory (RAM) 32.0 GB 已安装的物理内存(RAM)32.0 GB
Total Physical Memory 31.9 GB 总物理内存31.9 GB
Available Physical Memory 29.5 GB 可用物理内存29.5 GB
Total Virtual Memory 63.8 GB 总虚拟内存63.8 GB
Available Virtual Memory 61.2 GB 可用虚拟内存61.2 GB
Page File Space 31.9 GB 页面文件空间31.9 GB
Page File C:\\pagefile.sys 页面文件C:\\ pagefile.sys

I can run 8 emulators at once, I would post an image if I could. 我可以一次运行8个模拟器,如果可以,我会发布一个图像。 I'm only using ~16gb of my 32gb of ram when they're all running. 当他们全部跑步时,我只使用了大约16gb的32gb内存。 (2048mb per emulator at this moment in time). (此时此模拟器为2048mb)。 No matter what I do, I cannot run more than 8 emulators. 无论我做什么,我都不能运行8个以上的模拟器。 I can run 8 emulators with 1gb, 2gb, or 3gb memory allocated per device simultaneously. 我可以运行8个模拟器,同时为每个设备分配1gb,2gb或3gb内存。 I've tried 32bit vs 64bit intel images. 我尝试过32位对比64位的英特尔图像。 There is clearly a limit beyond that of memory that is enforcing this. 除了强制执行此操作的内存之外,显然存在一个限制。

The error message I get when starting my 9th emulator (Note, I started counting emulators at 0): 我在启动第9个仿真器时得到的错误消息(注意,我开始将仿真器计数为0):

9th emulator boot error 第9个模拟器启动错误

在此输入图像描述

"Failed to create HAX VM. No accelerator found." “无法创建HAX VM。未找到加速器。”

The only thing I could think of where the number 8 might be coming from would be the fact I have 4 cores == 8 logical processors. 我唯一可以想到8号可能来自哪里的事实是我有4个核= = 8个逻辑处理器。 That's a wild guess though. 这是一个疯狂的猜测。 Any help would be greatly appreciated. 任何帮助将不胜感激。

It is due to a hardcoded variable in the HAXM. 这是由于HAXM中的硬编码变量 You can solve this problem by downloading the latest HAXM from the Github page , which will set an limit of 64 guests instead of 8. 您可以通过从Github页面下载最新的HAXM来解决此问题,该页面将设置64位访客的限制,而不是8位。

Type this in the command line: 在命令行中键入:

sc stop intelhaxm

then: 然后:

sc start intelhaxm

And then your emulator should work. 然后你的模拟器应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM