Add performance optimization to Nested VM
[csit.git] / resources / tools / disk-image-builder / nested / image-patches / 07-isolate-cpu
diff --git a/resources/tools/disk-image-builder/nested/image-patches/07-isolate-cpu b/resources/tools/disk-image-builder/nested/image-patches/07-isolate-cpu
new file mode 100644 (file)
index 0000000..72d9416
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+patch boot/grub/menu.lst <<"_EOF"
+15c17
+<       kernel /boot/bzImage rw root=/dev/sda1 console=ttyS0,115200n8
+---
+>       kernel /boot/bzImage rw root=/dev/sda1 console=ttyS0,115200n8 isolcpus=1-7 nohz_full=1-7 rcu_nocbs=1-7
+_EOF
\ No newline at end of file