You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用swiftshader_indirect时Android模拟器QEMU内存超限问题

Android模拟器分配4GB内存后QEMU进程占用超8GB的排查求助

给Android虚拟机分配了4GB内存,使用浏览器一段时间后,QEMU进程占用了8GB内存。内存占用详情如下:

$ cat /proc/`pidof qemu-system-x86_64`/status | egrep "VmRSS|VmHWM|VmSize|VmPeak" | awk "{print \$1 \t\t \$2/1024 \" MB\"}"
VmPeak:         15521.3 MB
VmSize:         11935.1 MB
VmHWM:          8710.93 MB
VmRSS:          8681.04 MB

环境信息

  • Android模拟器版本:34.1.18.0
  • Android版本:13
  • ABI:x86_64
  • 宿主机系统:Ubuntu 22.04

AVD创建命令

$ avdmanager create avd -n test-13 -k "system-images;android-34;default;x86_64" -d "Galaxy Nexus"

AVD启动命令

$ ./emulator/emulator -avd test-13 -debug init,memory -skip-adb-auth -no-snapshot -cores 4 -writable-system -partition-size 8192 -gpu swiftshader_indirect -qemu -cpu host  -enable-kvm -m 4096

启动初期QEMU内存占用正常,使用浏览器后出现内存超限情况,恳请协助排查解决。

内容的提问来源于stack exchange,提问作者buutuu700

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 01:41:17