runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

runtime in qemu is very slow (linux) #24

Closed dominictarr closed 10 years ago

dominictarr commented 10 years ago

@hij1nx helped me get runtime running on my computer yesterday, but inside runtime is was unbearably slow.

I havn't solved the problem, but I have figured out what the problem was - qemu wasn't running in kvm mode, so it was being entirely emulated, and not taking advantage of any of the virtualization support that my hardware uses. I'm running archlinux on a thinkpad x220, so I have virtualization capable hardware, but it seems I need to enable some kernel modules.

Just leaving this issue here incase anyone else has this issue, and I'll update as I progress and then add this to the wiki.

iefserge commented 10 years ago

Yeah, tested on my Archlinux with -enable-kvm option and it's much faster.

heapwolf commented 10 years ago

moving to wiki

morganrallen commented 10 years ago

I did this also and while it does appear to go much faster it also never completes loading. It (quickly) goes through the [INITRD] Load ... sections but just stops after pci-driver.js

morganrallen commented 10 years ago

The output to the console is the same for either. But with -enable-kvm qemu never gets to the terminal.

iefserge commented 10 years ago

@morganrallen There is an issue with timers in kvm, looking into it.

iefserge commented 10 years ago

@morganrallen Try -no-kvm-irqchip. Alright, system needs better timers implementation.

morganrallen commented 10 years ago

@iefserge That's got it working but seems to be in between the two on speed. Cheers,

morganrallen commented 10 years ago

Also noted this in the wiki