summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-23 20:07:28 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-23 20:07:28 -0400
commitd31a16c435e497f320ccfa880122dff963f151a7 (patch)
tree35d5c3423f3f77743f2e89dee17cff88a9511d2b /examples
parent799e0edc196c4273b728b9f832d90dc79bbf8bbe (diff)
Organize in to an installable packagev20180714
Diffstat (limited to 'examples')
-rw-r--r--examples/beefcake39
-rw-r--r--examples/qemutest7
-rw-r--r--examples/testbox10
3 files changed, 56 insertions, 0 deletions
diff --git a/examples/beefcake b/examples/beefcake
new file mode 100644
index 0000000..21b7e74
--- /dev/null
+++ b/examples/beefcake
@@ -0,0 +1,39 @@
+#!/hint/bash
+
+system=x86_64
+args=(
+ -no-user-config
+ -no-reboot # let the systemd supervisor know we're restarting
+
+ -machine accel=kvm
+
+ # RAM: 16 GiB per NUMA node, but leave 1 GiB per node for QEMU itself
+ -m $((30*1024))
+ -object memory-backend-ram,id=ram0,prealloc=on,size=$((15*1024**3)),host-nodes=0,policy=bind
+ -object memory-backend-ram,id=ram1,prealloc=on,size=$((15*1024**3)),host-nodes=1,policy=bind
+ # CPU: 1 socket / 8 cores-per-node / 2 threads-per-core = total of 16 CPUs
+ # Except that it's AMD, and QEMU thinks all threads are Intel HT, so turn off threads
+ # The distance between the two nodes is '16'
+ -smp sockets=1,cores=16,threads=1,cpus=16
+ -numa node,nodeid=0,memdev=ram0,cpus=0-7
+ -numa node,nodeid=1,memdev=ram1,cpus=8-15
+ -numa dist,src=0,dst=1,val=16
+
+ -uuid 4c42bd65-6ad5-456d-8b76-758ecb795e21
+ -drive media=disk,file=/dev/vg_build64/lv_beefcake_root,format=raw,if=virtio
+ -drive media=disk,file=/dev/vg_build64/lv_beefcake_home,format=raw,if=virtio
+ -drive media=disk,file=/dev/vg_build64/lv_beefcake_data,format=raw,if=virtio
+ -drive media=disk,file=/dev/vg_build64/lv_beefcake_chroots,format=raw,if=virtio
+ #-cdrom /mnt/media/Operating_Systems/unix/Linux-based/Arch-based/Parabola/parabola-2017.05.28-dual.iso
+ -boot menu=on,order=dc
+
+ -writeconfig /tmp/beefcake.cfg
+)
+
+numactl=(
+ --membind=0,1
+ --cpunodebind=0,1
+)
+for i in {0..15}; do
+ vcpu2cpulist[$i]=$i
+done
diff --git a/examples/qemutest b/examples/qemutest
new file mode 100644
index 0000000..04d9046
--- /dev/null
+++ b/examples/qemutest
@@ -0,0 +1,7 @@
+#!/hint/bash
+
+system=x86_64
+args=(
+ -machine accel=kvm -m 5G
+ -drive media=disk,file=/dev/vg_build64/lv_qemutest_root,format=raw,if=virtio
+)
diff --git a/examples/testbox b/examples/testbox
new file mode 100644
index 0000000..6e76886
--- /dev/null
+++ b/examples/testbox
@@ -0,0 +1,10 @@
+#!/hint/bash
+
+system=x86_64
+args=(
+ -machine accel=kvm
+ -m 5G
+ -cdrom /mnt/media/Operating_Systems/unix/Linux-based/Arch-based/Parabola/parabola-2017.05.28-dual.iso
+ -boot menu=on,order=dc
+ -writeconfig /tmp/testbox.cfg
+)