From 230959f2282ec0b4b6b325235d06f42d56a39628 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 15 Jun 2023 11:49:53 -0700 Subject: [PATCH] Add notes on kvm acceleration --- README.md | 4 +++- src/main.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bb68227..1afaf9a 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +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` diff --git a/src/main.rs b/src/main.rs index fdfa47e..fa05514 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(),