Running qemu-aarch64 emulator inside Termux
Hello I tried to run qemu-system-x86_64 to run an alpine image it worked fine using this command:
It booted and I installed the system in the disk normally. Then I noticed I can get better performance by using aarch64 instead of x86_64 since my phone is using arm64 CPU This is what i tried:
But it just does nothing I waited for it 30mins no output on the terminal it just hangs there.
6 Replies
you are using qemu-system-arm instead of qemu-system-aarch64 maybe?
use aarch64 instead of arm
and, i thirnk something is missing in the second one, the "alpine.img" at the end is not there
I did use aarch64 now but i see massive I/O perfoance reduction the same when i used x86_64
In termux disk read speed is around 100Mb/s but inside termux 4Mb/s
Well yes, qemu emulates a disk, so there's overhead
Also, without KVM, doing aarch64 emulation instead of x86_64 will not give any significant performance improvement even if the host OS is having the same CPU architecture as the guest OS.
Actually that isn't the whole truth, as aarch64 has mostly simpler instructions than x86_64, and that it's more 1:1 makes TCL work a bit faster, or have less slow down