Hide Forgot
qemu-1.5 has a regression where the audio_timer tries to expires every nano second, which gets rate limited to every 250 us by the timer subsys, resulting in 4000 wakeups per seconds for vms with audio active. Here is an upstream patch fixing this: http://lists.nongnu.org/archive/html/qemu-devel/2013-10/msg01204.html Dropping host cpu load to a much better 13%. And here is a follow up patch further limiting the wakeup rate from 250 / second (which is a bit much) to 100 / second: http://lists.nongnu.org/archive/html/qemu-devel/2013-10/msg01205.html Further reducing the host cpu load for playing audio to 9%.
(In reply to Miroslav Rezanina from comment #1) > Using patches lower cpu consumption to less then half of the consumption > without them. However, only one of patches applied upstream, waiting for > second to be applied. The second one may cause issues with Windows guests (this needs more testing), which is why it was not applied. Most of the benefits come from the first patch, so I suggest just moving forward with only the 1st patch, the 2nd patches may very well never get applied upstream.
Quick update on this, the second patch has been accepted upstream now: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=40a814b0b1789b94c483190b3208729b5182e5bd There also is a related patch which we should probably also pick up (although it is unlikely to impact typical RHEL qemu use): http://git.qemu.org/?p=qemu.git;a=commitdiff;h=0e8ae611bda0dfb038da2d865801d8adbd692bad
Fix included in qemu-kvm-1.5.3-38.el7
Hi, Miroslav Does this bug related with virtual sound deivces, do we qe need test this bug with which sound deivce (AC97/intel-hda)? And should we test both windows/linux guests? Thanks,
Hi Qian, this should be applicable to both sound device on both windows/linux guests to see full impact of patches (I was able to test only with linux).
Test this bug with qemu-kvm-1.5.3-30.el7.x86_64 and qemu-kvm-1.5.3-48.el7.x86_64, and guests I used rhel7 and win7, the following matrix is the result that I got: 1.Reproduce this bug with qemu-kvm-1.5.3-30.el7.x86_64, the value is the cpu usage: | RHEl7 | Win7 ------------|-------------|------------------------------------------- intel-hda | 42%~55% | 25%~34% ------------|-------------|------------------------------------------- AC97 | 40%~55% | Windows not support AC97 by default 2.Verify this bug with qemu-kvm-1.5.3-48.el7.x86_64: | RHEl7 | Win7 ------------|-------------|------------------------------------------- intel-hda | 17%~25% | 11%~15% ------------|-------------|------------------------------------------- AC97 | 15%~25% | Windows not support AC97 by default Hi, Miroslav windows can not use AC97 sound device, and accoridng to above, can it verify this bug? thanks
Hi Qian, yes, these numbers verify the fix is working. Mirek
Thank Mirek for the quick response. So according to comment #9 and comment #10, this bug is fixed by qemu-kvm-1.5.3-48.el7.x86_64
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request.