X2Go Bug report logs -
#526
Included PulseAudio consumes too much CPU when launched with high priority
Reported by: Nable 80 <nable.maininbox@googlemail.com>
Date: Sun, 29 Jun 2014 14:05:01 UTC
Severity: normal
Tags: build-win32
Found in version 4.0.2.0
Fixed in version x2goclient/4.0.2.1
Done: Michael DePaulo <mikedep333@gmail.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#526
; Package x2goclient
.
(Sun, 29 Jun 2014 14:05:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Nable 80 <nable.maininbox@googlemail.com>
:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Sun, 29 Jun 2014 14:05:01 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):
Package: x2goclient
Version: 4.0.2.0
When I use sound forwarding and launch inside X2Go session some application
with sound support, pulseaudio.exe at client side starts consuming ~100% CPU.
By default, X2Go Client starts pulseaudio.exe with high priority (13).
When I set priority to "Above Normal (10)" PA's CPU load drops to 10-20%.
With "Normal (8)" it drops to almost 0%, although sound is still played stable,
without any additional delays.
I'm using WinXP SP3 (32-bit) on my laptop with single core CPU.
This issue seems to be "PulseAudio 5.0 && WinXP"-specific.
Information forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#526
; Package x2goclient
.
(Sun, 29 Jun 2014 15:05:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Sun, 29 Jun 2014 15:05:03 GMT) (full text, mbox, link).
Message #10 received at 526@bugs.x2go.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: tag -1 build-win32
Hi Nable,
On So 29 Jun 2014 16:04:42 CEST, Nable 80 wrote:
> Package: x2goclient
> Version: 4.0.2.0
>
> When I use sound forwarding and launch inside X2Go session some application
> with sound support, pulseaudio.exe at client side starts consuming ~100% CPU.
> By default, X2Go Client starts pulseaudio.exe with high priority (13).
> When I set priority to "Above Normal (10)" PA's CPU load drops to 10-20%.
> With "Normal (8)" it drops to almost 0%, although sound is still
> played stable,
> without any additional delays.
>
> I'm using WinXP SP3 (32-bit) on my laptop with single core CPU.
> This issue seems to be "PulseAudio 5.0 && WinXP"-specific.
thanks for handing this one in.
Our PA expert will take a look at that (I hope!).
Mike
--
DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
[Message part 2 (application/pgp-signature, inline)]
Added tag(s) build-win32.
Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
to 526-submit@bugs.x2go.org
.
(Sun, 29 Jun 2014 15:05:03 GMT) (full text, mbox, link).
Information forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#526
; Package x2goclient
.
(Sun, 29 Jun 2014 15:50:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Nable 80 <nable.maininbox@googlemail.com>
:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Sun, 29 Jun 2014 15:50:02 GMT) (full text, mbox, link).
Message #17 received at 526@bugs.x2go.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi Mike!
> Our PA expert will take a look at that (I hope!).
I've attached possible workaround, although I'm not sure if it's acceptable.
[pa-disable-high-priority.diff (text/plain, attachment)]
Information forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#526
; Package x2goclient
.
(Mon, 30 Jun 2014 14:15:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael DePaulo <mikedep333@gmail.com>
:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Mon, 30 Jun 2014 14:15:01 GMT) (full text, mbox, link).
Message #22 received at 526@bugs.x2go.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi Nable,
1. thank you for the patch. Command line testing shows that it does
lower the priority for PulseAudio 5.0 on Windows to "normal".
PulseAudio 1.1 ignores the argument and remains at "high" priority,
even though --help states that it recognizes the argument. 0.9.6
defaults to normal priority anyway. None of them refuse to start when
the argument is passed though.
2. I will incorporate your patch (it's only 1 line after all,) but
after talking with the PulseAudio developers, I will extend it so that
"normal" priority will only be set on Windows XP and Server 2003 /
Server 2003 R2. On Windows Vista / server 2008 and later, we will
continue to default to "high" priority.
(You are welcome to extend the patch to do this, or I will do extend
it later today or tomorrow.)
3. Right now I cannot test the patch with x2goclient because the
WIndows build VM has a networking problem. Mike#1 will fix that
problem sometime this week.
4. My testing reveals the following:
a. I am able to reproduce this bug. See setup #2 below.
b. I encountered a different bug with the virtual hardware (setup #1),
which is fixed by switching to a different sound driver (setup #2). I
will clone this bug report for my setup #1 bug.
c. This bug does not result in high CPU usage until audio is playing,
unlike my bug.
d. Manually lowering the priority in task manager does appear to be a
valid workaround.
5. All my test details:
setup #1:
Note: default sound driver. I think I have a driverpacks.net driver
pack installed though, so it may not be the default driver for XP
without said driver pack.
Host & Hypervisor: Fedora 20 w/ KVM/virt-manager
VM accessed via: VirtViewer 0.6.0 64-bit for Windows w/ the SPICE protocol
Guest OS: Windows XP SP3 32-bit
vCPUs : 2 (host has 4 cores, core i5 750)
Sound setting in virt-manager: ac97
Sound adapter according to Windows: Intel(r) AC'97 Audio Controller -
SIgmaTel Codec
Driver Provider: SigmaTel
Driver Date: 12/20/2001
Driver Version: 5.10.0.7159
Results with: PulseaAudio 5.0, PulseAudio 1.1, and PulseAudio 0.9.6
launched from the command-line:
The combined CPU usage of pulseaudio.exe + "System" is very high, even
at normal priority, and the VM is extremely slow overall. This occurs
before any sound as playing. In other words, as the process is
started, the CPU usage immediately goes up and the VM immediately
becomes extremely slow. The combined CPU usage is always greater than
or equal to 1 CPU core.See #1 for notes on the behavior of the
priority. And yes, "System" CPU usage is normally 0% or just above 0%,
when pulseaudio.exe is not running.
The attached logs are from said results.
Results with x2goclient 4.0.2.0 (PulseAudio 5.0):
X2Go client GUI is extremely slow for same reason as on the
command-line. Cannot test any further.
setup #2
Note: same as before, except for a different sound driver:
Host & Hypervisor: Fedora 20 w/ KVM/virt-manager
VM accessed via: VirtViewer 0.6.0 64-bit for Windows w/ the SPICE protocol
Guest OS: Windows XP SP3 32-bit
vCPUs : 2 (host has 4 cores, core i5 750)
Sound setting in virt-manager: ac97
Sound adapter according to Windows: Intel(r) 82801AA AC'97 Audio Controller
Driver Provider: Microsoft
Driver Date: 7/1/2001
Driver Version: 5.1.2535.0
Results with: PulseaAudio 5.0, PulseAudio 1.1, and PulseAudio 0.9.6
launched from the command-line:
Whether I have normal priority or high priority, there is no high CPU
usage for either process, and no VM slowdown.
Results with x2goclient 4.0.2.0 (PulseAudio 5.0):
I reproduced this bug reported by Nable. I also observed that lowering
PulseAudio to normal fixes the problem. Only 1 vCPU was maxed out for
me (Nable had single core.) Also, unlike my problem with setup #1, the
VM is not extremely slow. Also, unlike my problem setup #1, CPU usage
is not high until audio is playing. Also, unlike my problem on
setup#1, "System's usage is 0% or a few % like normal. There seems to
be a 1 second delay in audio, but that may be due to me accessing the
VM over Virt-Viewer. Also, the delay occurs at high priority.
-Mike#2
On Sun, Jun 29, 2014 at 11:47 AM, Nable 80
<nable.maininbox@googlemail.com> wrote:
> Hi Mike!
>
>> Our PA expert will take a look at that (I hope!).
> I've attached possible workaround, although I'm not sure if it's acceptable.
>
> _______________________________________________
> x2go-dev mailing list
> x2go-dev@lists.x2go.org
> http://lists.x2go.org/listinfo/x2go-dev
[pulse-0.9.6-on-xp-normal-priority-defaulted-log.txt (text/plain, attachment)]
[config.test.pa (application/octet-stream, attachment)]
[pulse-1.1-on-xp-normal-priority-ignored-log.txt (text/plain, attachment)]
[pulse-5.0-on-xp-normal-priority-log.txt (text/plain, attachment)]
Bug 526 cloned as bug 530
Request was from Michael DePaulo <mikedep333@gmail.com>
to control@bugs.x2go.org
.
(Tue, 01 Jul 2014 20:55:01 GMT) (full text, mbox, link).
Information forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#526
; Package x2goclient
.
(Tue, 01 Jul 2014 21:35:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael DePaulo <mikedep333@gmail.com>
:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Tue, 01 Jul 2014 21:35:01 GMT) (full text, mbox, link).
Message #29 received at 526@bugs.x2go.org (full text, mbox, reply):
Bug 80772 - Windows XP: PulseAudio consumes too much CPU when launched
with high priority
https://bugs.freedesktop.org/show_bug.cgi?id=80772
Bug 526 cloned as bug 537
Request was from Michael DePaulo <mikedep333@gmail.com>
to control@bugs.x2go.org
.
(Mon, 07 Jul 2014 21:45:01 GMT) (full text, mbox, link).
Reply sent
to Michael DePaulo <mikedep333@gmail.com>
:
You have taken responsibility.
(Sun, 14 Dec 2014 17:20:01 GMT) (full text, mbox, link).
Notification sent
to Nable 80 <nable.maininbox@googlemail.com>
:
Bug acknowledged by developer.
(Sun, 14 Dec 2014 17:20:02 GMT) (full text, mbox, link).
Message #36 received at 526-done@bugs.x2go.org (full text, mbox, reply):
Package: x2goclient
Version: 4.0.2.1
This was fixed back in X2Go Client for Windows 4.0.2.1.
I updated the x2goclient debian/changelog file incorrectly, so it
wasn't marked as fixed.
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.x2go.org>
to internal_control@bugs.x2go.org
.
(Mon, 12 Jan 2015 06:24:02 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
X2Go Developers <owner@bugs.x2go.org>.
Last modified:
Thu Nov 21 14:01:57 2024;
Machine Name:
ymir.das-netzwerkteam.de
X2Go Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.