Add notes on kvm acceleration

This commit is contained in:
Sarah Jamie Lewis 2023-06-15 11:49:53 -07:00
parent c021d92bad
commit 230959f228
2 changed files with 4 additions and 1 deletions

View File

@ -58,4 +58,6 @@ We do use Docker as part of our continuous build processes. However, we have cho
### Builds are slow. Can they be sped up?
Virtualization is inherently slower than running on bare metal. We consider the speed overhead worth it for complete isolation of the build environment. However, if you are considering using repliqate for
something more speed-sensitive then you may want to consider enabling and using qemu with [kvm](https://wiki.qemu.org/Features/KVM) enabled.
something more speed-sensitive then you may want to consider enabling and using qemu with [kvm](https://wiki.qemu.org/Features/KVM) enabled.
Note: This is now enabled by default. To disable kvm acceleration see the note in `src/main.rs`

View File

@ -63,6 +63,7 @@ impl QemuProcess {
"nic",
"-net",
"user",
// comment out the below line to disable kvm acceleration
"-accel","kvm",
"-drive",
format!("if=virtio,format=qcow2,file={}", path).as_str(),