...
 
Commits (2)
......@@ -58,5 +58,8 @@ done
echo "updating x11 monitor configuration"
cp -v ./nvidia_10-monitor.conf /etc/X11/xorg.conf.d/10-monitor.conf
echo "releasing hugepages memory"
sudo sysctl vm.nr_hugepages=0
echo "ok"
exit 0
......@@ -40,5 +40,8 @@ done
echo "updating x11 monitor configuration"
cp -v "./radeon_10-monitor.conf" "/etc/X11/xorg.conf.d/10-monitor.conf"
echo "attempting to set hugepages to 8192 (16GB)"
sudo sysctl vm.nr_hugepages=8192
echo "ok"
exit 0
......@@ -11,8 +11,13 @@ systemctl start smb.service
systemctl start nmb.service
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
export QEMU_PA_SAMPLES=8192
export QEMU_PA_SAMPLES=1024
export QEMU_PA_SERVER="/run/user/1000/pulse/native"
nice -n -10 qemu-system-x86_64 \
-serial none \
......@@ -27,6 +32,7 @@ nice -n -10 qemu-system-x86_64 \
-vcpu 0,affinity=0 -vcpu 1,affinity=1 -vcpu 2,affinity=2 -vcpu 3,affinity=3 \
-m 16G \
-mem-prealloc \
-mem-path /dev/hugepages \
-soundhw hda \
-device ich9-usb-uhci3,id=uhci \
-device usb-ehci,id=ehci \
......
......@@ -11,7 +11,14 @@ systemctl start smb.service
systemctl start nmb.service
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
export QEMU_PA_SAMPLES=1024
export QEMU_PA_SERVER="/run/user/1000/pulse/native"
qemu-system-x86_64 \
-serial none \
-parallel none \
......
......@@ -11,7 +11,14 @@ systemctl start smb.service
systemctl start nmb.service
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
export QEMU_PA_SAMPLES=1024
export QEMU_PA_SERVER="/run/user/1000/pulse/native"
qemu-system-x86_64 \
-serial none \
-parallel none \
......
......@@ -11,9 +11,7 @@ systemctl start smb.service
systemctl start nmb.service
echo "Starting VM"
export QEMU_AUDIO_DRV="pa"
export QEMU_PA_SAMPLES=8192
export QEMU_PA_SERVER="/run/user/1000/pulse/native"
export QEMU_AUDIO_DRV="none"
qemu-system-x86_64 \
-serial none \
-parallel none \
......
......@@ -29,8 +29,14 @@ done
sleep 1
echo "Starting VM"
export QEMU_AUDIO_ADC_FIXED_FREQ=44100
export QEMU_AUDIO_ADC_FIXED_FMT=S32
export QEMU_AUDIO_DAC_FIXED_FREQ=44100
export QEMU_AUDIO_DAC_FIXED_FMT=S32
export QEMU_AUDIO_TIMER_PERIOD=1000
export QEMU_AUDIO_DRV="pa"
export QEMU_PA_SAMPLES=8192
export QEMU_PA_SAMPLES=1024
export QEMU_PA_SERVER="/run/user/1000/pulse/native"
nice -n -10 qemu-system-x86_64 \
-serial none \
......@@ -45,6 +51,7 @@ nice -n -10 qemu-system-x86_64 \
-vcpu 0,affinity=0 -vcpu 1,affinity=1 -vcpu 2,affinity=2 -vcpu 3,affinity=3 \
-m 16G \
-mem-prealloc \
-mem-path /dev/hugepages \
-soundhw hda \
-device ich9-usb-uhci3,id=uhci \
-device usb-ehci,id=ehci \
......@@ -69,7 +76,7 @@ do
if [[ ! $(pgrep -x -u melvin synergyc) ]]
then
echo "Starting Synergy client"
sudo -u melvin /usr/bin/synergyc --debug ERROR --no-daemon --enable-crypto 192.168.1.12 &
sudo -u melvin /usr/bin/synergyc --debug ERROR --no-daemon --enable-crypto 192.168.1.3 &
fi
sleep 5
......