[sip-comm-dev] on connection use huge amount of CPU


#1

On Linux 64x86 SIP-Communicator uses huge amount of CPU when connection is established on audio call up to 90%. Switching video on puts another 20% .Minimizing the connection windows to task bar cuts with 20 % CPU usage.If there is no connection CPU usage drops back to 1 %.

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

I noticed a similar problem. On a substantial cor2duo machine with 8 gig of ram... SIP-Communicator jumps to 60% ish, and x-org also jumps to 60% or so. (Shown in top) Once call ends, it goes back down.

      Lee

···

On 01/11/2011 06:51 AM, Oleg Miloshev wrote:

  On Linux 64x86 SIP-Communicator uses huge amount of CPU when connection is established on audio call up to 90%. Switching video on puts another 20% .Minimizing the connection windows to task bar cuts with 20 % CPU usage.If there is no connection CPU usage drops back to 1 %.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi Lee,

on all the Windows and Mac box i tested until now, i've this issue only on one PC that is a Sony Vaio notebook with Dual core and 2GB of Ram so quite big machine, only on this Computer when i use Video Call the CPU jump to 100% (javaw process) without video only call about 60-70%. But i can't describe why there is such issue, and why it only happen on this Box.

Regards
Fabio

···

Il giorno 11/gen/2011, alle ore 14.23, Lee Sharp ha scritto:

On 01/11/2011 06:51 AM, Oleg Miloshev wrote:

On Linux 64x86 SIP-Communicator uses huge amount of CPU when connection is established on audio call up to 90%. Switching video on puts another 20% .Minimizing the connection windows to task bar cuts with 20 % CPU usage.If there is no connection CPU usage drops back to 1 %.

I noticed a similar problem. On a substantial cor2duo machine with 8 gig of ram... SIP-Communicator jumps to 60% ish, and x-org also jumps to 60% or so. (Shown in top) Once call ends, it goes back down.

      Lee

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Which version do you use? The generic linux .run installer's version has higher cpu load on my computer than the .deb version ( i use Debian with gnome) - the difference can be as much as 40% (Athlon II @ 3.00 GHz CPU). Xorg adds about 20-30% to the 50-60 used by java. In contrast, the .deb version uses only 30-40% (with only noise cancellation active) - xorg uses no significant amount in this case. In both cases minimizing the window lowers cpu usage, with up to 10% for the deb version and ~20% for the generic linux version.

···

On Tue, 11 Jan 2011 13:51:20 +0200, Oleg Miloshev <olegue@abv.bg> wrote:

On Linux 64x86 SIP-Communicator uses huge amount of CPU when connection is established on audio call up to 90%. Switching video on puts another 20% .Minimizing the connection windows to task bar cuts with 20 % CPU usage.If there is no connection CPU usage drops back to 1 %.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
O zi buna,

Kertesz Laszlo

Using Opera's revolutionary email client: http://www.opera.com/mail/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

The Ubuntu deb. I would hate to see the .run if it is worse! :slight_smile:

      Lee

···

On 01/11/2011 12:34 PM, Kertesz Laszlo wrote:

Which version do you use? The generic linux .run installer's version has
higher cpu load on my computer than the .deb version

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Hey folks,

High CPU usage on linux is a common issue that we've been aware of for
some time now. The problem seems to be due to the interactions between
PortAudio, PulseAudio and alsa.

We'll be looking at this at some point but the issue is hard to
reproduce and seems to only appear on some systems so in case anyone
else would like to have a look then that would be most welcome.

Cheers,
Emil

На 11.01.11 18:45, Lee Sharp написа:

···

On 01/11/2011 12:34 PM, Kertesz Laszlo wrote:

Which version do you use? The generic linux .run installer's version has
higher cpu load on my computer than the .deb version

The Ubuntu deb. I would hate to see the .run if it is worse! :slight_smile:

      Lee

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

I have no time to look into it, but I can make the system available to your devs. I can even give ssh access.

      Lee

···

On 01/11/2011 01:49 PM, Emil Ivov wrote:

Hey folks,

High CPU usage on linux is a common issue that we've been aware of for
some time now. The problem seems to be due to the interactions between
PortAudio, PulseAudio and alsa.

We'll be looking at this at some point but the issue is hard to
reproduce and seems to only appear on some systems so in case anyone
else would like to have a look then that would be most welcome.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hi,

it seams that the issue is present on Mac OS X Version 10.6.5 and Java 1.6.0_22 on Mac OS X Version 10.5.8 Java 1.5.0_26 the issue is not present.

i hope it can help

regards
Fabio

···

Il giorno 11/gen/2011, alle ore 19.49, Emil Ivov ha scritto:

Hey folks,

High CPU usage on linux is a common issue that we've been aware of for
some time now. The problem seems to be due to the interactions between
PortAudio, PulseAudio and alsa.

We'll be looking at this at some point but the issue is hard to
reproduce and seems to only appear on some systems so in case anyone
else would like to have a look then that would be most welcome.

Cheers,
Emil

На 11.01.11 18:45, Lee Sharp написа:

On 01/11/2011 12:34 PM, Kertesz Laszlo wrote:

Which version do you use? The generic linux .run installer's version has
higher cpu load on my computer than the .deb version

The Ubuntu deb. I would hate to see the .run if it is worse! :slight_smile:

      Lee

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

I use Debian Linux 32-bit with PulseAudio installed and i have this high CPU issue, but it is not reproducible every time.
(I use SIP, voice only, echo test in most cases)

But the most common occurence is when i first start Sip Communicator and i make the first call, even an echo test.

Subsequent calls mostly work.

After some time (not in-call time) the pulseaudio process starts to be more and more cpu hungry, calls start to have 20-30% cpu taken by pulseaudio (as opposed to 15-20 normally) and +10-20% (than the 30-40 average) by java.

Calls sometimes stutter, regardless of cpu usage (this can happen right after starting Sip Communicator). In those cases, looking at pavucontrol the streams are flickering. This is probably sign of buffer over/underruns. I tried different pulseaudio settings but i havent found any that helped.
And when changing output devices, sometimes there is a half-second "freeze" when i choose another output device (i alternate pulse or default) and a faint hissing sound can be heard. This is not the case when i have clear sound and normal cpu usage.

Workaround:
Restarting pulseaudio works, bringing back normal cpu usage by both java and pulseaudio and clearing stuttering sound in calls. Sip Communicator does not has to be restarted. But this kills sound in some running apps like Skype that have to be restarted too after pulseaudio.

Generally i have the impression that the higher cpu usage in time is caused by pulseaudio's internals and it is linked to the output device. Most times this occured to me i played sound in other apps or talking on Skype before starting the Sip Communicator call. But clearly has to do with portaudio's device usage because other apps like Sflphone do not have this issue.

If i remember correctly, in older builds there was a time when this issue was solved, but then reappeared after the portaudio's version was upgraded.

···

On Tue, 11 Jan 2011 20:49:49 +0200, Emil Ivov > <emcho@sip-communicator.org> wrote:.
Hey folks,

High CPU usage on linux is a common issue that we've been aware of for
some time now. The problem seems to be due to the interactions between
PortAudio, PulseAudio and alsa.

We'll be looking at this at some point but the issue is hard to
reproduce and seems to only appear on some systems so in case anyone
else would like to have a look then that would be most welcome.

Cheers,
Emil

На 11.01.11 18:45, Lee Sharp написа:

On 01/11/2011 12:34 PM, Kertesz Laszlo wrote:

Which version do you use? The generic linux .run installer's version has
higher cpu load on my computer than the .deb version

The Ubuntu deb. I would hate to see the .run if it is worse! :slight_smile:

      Lee

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
O zi buna,

Kertesz Laszlo

Using Opera's revolutionary email client: http://www.opera.com/mail/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Hi Emil,

yes it is not related to Video, with Video the usage of private memory increase faster but without video is the same the problem still there, i test also with Windows 7 and i can see that the issue is related to the Java version 1.6.0_23 and not the OS. After 20 Minute of conversation the Memory used was as Private Workset for the javaw process was almost 1Gb and still increasing.

regards
Fabio

···

Il giorno 11/gen/2011, alle ore 20.30, Emil Ivov ha scritto:

On 11 janv. 2011, at 20:10, Fabio Telme <fabio@telme.sg> wrote:

Hi,

it seams that the issue is present on Mac OS X Version 10.6.5 and Java 1.6.0_22 on Mac OS X Version 10.5.8 Java 1.5.0_26 the issue is not present.

You might have noticed that the original report here makes no mention of video which leads me to believe that you are experiencing a different issue. It would hence be best if we kept discussions in separate threads.

Thanks for contributing your comment anyways. We'll take them into account when we get to the issue you are referring to.

Emil

--sent from my mobile

since this is the first time we are using them
without a protocol preference.

i hope it can help

regards
Fabio

Il giorno 11/gen/2011, alle ore 19.49, Emil Ivov ha scritto:

Hey folks,

High CPU usage on linux is a common issue that we've been aware of for
some time now. The problem seems to be due to the interactions between
PortAudio, PulseAudio and alsa.

We'll be looking at this at some point but the issue is hard to
reproduce and seems to only appear on some systems so in case anyone
else would like to have a look then that would be most welcome.

Cheers,
Emil

На 11.01.11 18:45, Lee Sharp написа:

On 01/11/2011 12:34 PM, Kertesz Laszlo wrote:

Which version do you use? The generic linux .run installer's version has
higher cpu load on my computer than the .deb version

The Ubuntu deb. I would hate to see the .run if it is worse! :slight_smile:

         Lee

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net