Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Abdulla Bubshait
The CPU isolation and interrupt reduction for the guest CPUs seems to have greatly reduced the audio problems. Thanks for that. On Thu, Jun 9, 2016 at 12:43 PM, Milos Kaurin wrote: > Yes, this keeps coming up now and again on this list. > > My solution was: > > 1. Buy a dedicated PCIE sound card

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Abdulla Bubshait
On Thu, Jun 9, 2016 at 3:35 AM, Philip Abernethy wrote: > I actually have this problem with passed through audio. I could improve > there situation by fiddling with the sample frequency and size in the audio > settings. Currently running at 192000Hz and 24 bit. > My first instinct was to blame it

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Milos Kaurin
model name: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz On Thu, Jun 9, 2016 at 6:56 PM, Spam House wrote: > Milos - > > What CPU are you using? > > On Thu, Jun 9, 2016 at 11:43 AM, Milos Kaurin > wrote: > >> Yes, this keeps coming up now and again on this list. >> >> My solution was: >> >> 1.

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Spam House
Milos - What CPU are you using? On Thu, Jun 9, 2016 at 11:43 AM, Milos Kaurin wrote: > Yes, this keeps coming up now and again on this list. > > My solution was: > > 1. Buy a dedicated PCIE sound card > 2. Pass it through to the guest > 3. Route audio: mobo soundcard > guest soundcard > > In es

[vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Zir Blazer
@Arjen What you suggest is something that previously happened to me in Xen around two years ago. Xen 4.3 worked fine with PCI and VGA Passthrough, but when 4.4 was released, they somehow wrecked it. The Passthroughed Sound Card audio was horrendous, and the Video Card was a no-go - good thing is

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Janusz
W dniu 09.06.2016 o 18:52, Abdulla Bubshait pisze: > On Thu, Jun 9, 2016 at 10:55 AM, Alex Williamson > wrote: >> This seems rather obvious doesn't it? An emulated audio device is just a >> blob of code that requires the CPU to run it. Generating audio, it's highly >> susceptible to latency issu

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Abdulla Bubshait
On Thu, Jun 9, 2016 at 10:55 AM, Alex Williamson wrote: > This seems rather obvious doesn't it? An emulated audio device is just a > blob of code that requires the CPU to run it. Generating audio, it's highly > susceptible to latency issues. At the same time you're apparently playing a > game t

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Milos Kaurin
Yes, this keeps coming up now and again on this list. My solution was: 1. Buy a dedicated PCIE sound card 2. Pass it through to the guest 3. Route audio: mobo soundcard > guest soundcard In essence, the always-on guest would handle audio, but I would still have crackles (rarely), especially from

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Alex Williamson
On Thu, Jun 9, 2016 at 1:07 AM, Abdulla Bubshait wrote: > I am not the only one who has this issue, but if you emulate an audio card > you end up with occasional crackling audio output, which is sometimes > associated with drops in FPS. > > I know there are ways to pass audio devices to the VM di

Re: [vfio-users] gpus are still within the same iommu group, kernel 4.4.0, i7 6700

2016-06-09 Thread Alex Williamson
On Thu, Jun 9, 2016 at 3:59 AM, wrote: > Hello everyone, > > I am running a fresh Ubuntu 16.04 and want to use kvm/qemu to run a > windows VM with a gpu passthrough, however after patching the kernel both > gpus are still within the same iommu group 1. > My system: > - Intel Core i7 6700 > - Giga

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Arjen
For me, letting the host load the driver (snd_hda_intel) before passing through the onboard audio to the VM fixed the crackling and buffer underruns. I never found out why this worked... Passing through the physical USB 2.0 controller worked wonders for my USB TV tuner compared to forwarding jus

[vfio-users] gpus are still within the same iommu group, kernel 4.4.0, i7 6700

2016-06-09 Thread lucas
Hello everyone, I am running a fresh Ubuntu 16.04 and want to use kvm/qemu to run a windows VM with a gpu passthrough, however after patching the kernel both gpus are still within the same iommu group 1. My system: - Intel Core i7 6700 - Gigabyte GA-Z170X-UD5 TH Intel Z170 - 1x GeForce GTX 650

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Stein van Broekhoven
I have a on motherboard audio card that I can pass through to a vm without issues. If I do the same with a usb audio device I also get the crackling on playback. So I suspect it is due to the latency in the emulated usb. Possible Solutions: - Pass through a pci audio device. (on motherboard /

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread rndbit
Check your DPC latency, it is one of causes for cracking sound. This is exact reason i stopped using vga passthrough for gaming.. On 2016.06.09 10:07, Abdulla Bubshait wrote: > I am not the only one who has this issue, but if you emulate an audio > card you end up with occasional crackling audio o

Re: [vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Philip Abernethy
I actually have this problem with passed through audio. I could improve there situation by fiddling with the sample frequency and size in the audio settings. Currently running at 192000Hz and 24 bit. My first instinct was to blame it on me skimping on the CPU, because I got me a quad core i5 instea

[vfio-users] Why does the audio from VM crackle?

2016-06-09 Thread Abdulla Bubshait
I am not the only one who has this issue, but if you emulate an audio card you end up with occasional crackling audio output, which is sometimes associated with drops in FPS. I know there are ways to pass audio devices to the VM directly, but in many setups it would be preferable to pass the audio