Commit faf61b83 authored by Vermeeren's avatar Vermeeren

qemu: change RAM to 12GB, remove vcpu, audio freq 48khz

Also some minor personal tweaks.
parent e5976ddf
......@@ -7,24 +7,24 @@ Section "OutputClass"
ModulePath "/usr/lib/nvidia/xorg"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Eizo CG318"
HorizSync 25.0 - 137.0
VertRefresh 23.0 - 61.0
Option "DPMS"
# 2048x1080 59.96 Hz (CVT) hsync: 67.16 kHz; pclk: 183.75 MHz
Modeline "2048x1080_60.00" 183.75 2048 2176 2392 2736 1080 1083 1093 1120 -hsync +vsync
EndSection
#Section "Monitor"
# # HorizSync source: edid, VertRefresh source: edid
# Identifier "Monitor0"
# VendorName "Unknown"
# ModelName "Eizo CG318"
# HorizSync 25.0 - 137.0
# VertRefresh 23.0 - 61.0
# Option "DPMS"
# # 2048x1080 59.96 Hz (CVT) hsync: 67.16 kHz; pclk: 183.75 MHz
# Modeline "2048x1080_60.00" 183.75 2048 2176 2392 2736 1080 1083 1093 1120 -hsync +vsync
#EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
BusID "PCI:4:0:0"
Option "Coolbits" "8"
Option "ModeValidation" "AllowNonEdidModes"
# Option "ModeValidation" "AllowNonEdidModes"
EndSection
#Section "Device"
......
......@@ -44,8 +44,8 @@ done
echo "updating xorg monitor configuration"
cp -v "./radeon_10-monitor.conf" "/etc/X11/xorg.conf.d/10-monitor.conf"
echo "setting hugepages memory to 8192 pages aka 16gb"
sysctl vm.nr_hugepages=8192
echo "setting hugepages memory to 6144 pages aka 12gb"
sysctl vm.nr_hugepages=6144
echo -n "page count: "
grep "HugePages_Total" < /proc/meminfo
......
......@@ -11,9 +11,9 @@ systemctl start smb.service
systemctl start nmb.service
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FREQ=48000
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FREQ=48000
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
......@@ -29,8 +29,7 @@ nice -n -10 qemu-system-x86_64 \
-name Windows \
-cpu host,kvm=off,hv_vapic,hv_time,hv_relaxed,hv_spinlocks=0x1fff,hv_vendor_id=sugoidesu \
-smp sockets=1,cores=4,threads=2 \
-vcpu 0,affinity=0 -vcpu 1,affinity=1 -vcpu 2,affinity=2 -vcpu 3,affinity=3 \
-m 16G \
-m 12G \
-mem-prealloc \
-mem-path /dev/hugepages \
-soundhw hda \
......
......@@ -11,9 +11,9 @@ systemctl start smb.service
systemctl start nmb.service
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FREQ=48000
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FREQ=48000
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
......
......@@ -11,9 +11,9 @@ systemctl start smb.service
systemctl start nmb.service
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FREQ=48000
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FREQ=48000
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
......
......@@ -22,9 +22,7 @@ qemu-system-x86_64 \
-name Windows \
-cpu host,kvm=off,hv_vapic,hv_time,hv_relaxed,hv_spinlocks=0x1fff,hv_vendor_id=sugoidesu \
-smp sockets=1,cores=4,threads=2 \
-vcpu 0,affinity=0 -vcpu 1,affinity=1 -vcpu 2,affinity=2 -vcpu 3,affinity=3 \
-m 8G \
-mem-prealloc \
-soundhw hda \
-device ich9-usb-uhci3,id=uhci \
-device usb-ehci,id=ehci \
......
......@@ -30,9 +30,9 @@ sleep 1
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FREQ=48000
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FREQ=48000
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
......@@ -48,8 +48,7 @@ nice -n -10 qemu-system-x86_64 \
-name Windows \
-cpu host,kvm=off,hv_vapic,hv_time,hv_relaxed,hv_spinlocks=0x1fff,hv_vendor_id=sugoidesu \
-smp sockets=1,cores=4,threads=2 \
-vcpu 0,affinity=0 -vcpu 1,affinity=1 -vcpu 2,affinity=2 -vcpu 3,affinity=3 \
-m 16G \
-m 12G \
-mem-prealloc \
-mem-path /dev/hugepages \
-soundhw hda \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment