summaryrefslogtreecommitdiff
path: root/conf.d/qemu.d/beefcake
blob: 49315cb4b6526f146ffd9f4856c629b1676065b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/hint/bash

system=x86_64
args=(
	-no-user-config
	-no-reboot # let the systemd supervisor know we're restarting

	-machine accel=kvm

	-m $((30*1024)) # We have 32 GiB RAM on this socket; leave 2GiB for qemu itself
	# 1 socket / 8 cores-per-node / 2 threads-per-core = total of 16 CPUs
	-smp sockets=1,cores=8,threads=2,cpus=16
	-numa node,cpus=0-7
	-numa node,cpus=8-15

	-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=2,3
# 	--cpunodebind=2,3
# )
# for i in {0..15}; do
# 	vcpu2cpulist[$i]=$((16+$i))
# done

numactl=(
	--membind=0,1
	--cpunodebind=0,1
)
for i in {0..15}; do
	vcpu2cpulist[$i]=$i
done