简体   繁体   English

QEMU android aarch64 作为主机。 来宾 32 位 x86 或 x86_64 哪个会更快?

[英]QEMU android aarch64 as host. Which will be faster as guest 32-bit x86 or x86_64?

Can i achieve more CPU performance by running x86_64 instead x86 on host which is aarch64?我可以通过在 aarch64 主机上运行 x86_64 而不是 x86 来获得更高的 CPU 性能吗?

Since the architecture of the host and guest mismatch, qemu will run the guest in emulation mode (tcg).由于主机和客户机的架构不匹配,qemu 将以仿真模式(tcg)运行客户机。 This mode is very slow compared to native speed.与本机速度相比,此模式非常慢。 If even there will a speed difference between 32 and 64-bit x86 guests, it should be very small.如果连 32 位和 64 位 x86 guest 之间会有速度差异,应该是很小的。

Given that there are more cases for the 64-bit guests in disas_insn function in qemu source code (this function disassembles the original guest code and generates target architecture code), I would say that 32-bit guest should be a little bit faster.鉴于 qemu 源代码中disas_insn function 中 64 位客户机的情况更多(这个 function 反汇编原始客户机代码并生成目标架构代码),我会说 32 位客户机应该快一点。 But this is not the only aspect that will influence performance and you have to compare both variants on your use cases to find the fastest.但这并不是影响性能的唯一方面,您必须在用例中比较两种变体才能找到最快的。

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

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