High cpu usage in windows

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

High cpu usage in windows

Jesus Urroa

Hi

I compiled my app against version 1.8.2 and noticed a high cpu usage, I found this command also uses to much cpu

gst-launch-1.0.exe playbin uri="http://192.168.1.121:8000"

The uri is an ogg audio stream

This uses 13% cpu which is 100% of a single core in my system

I tested in 1.9.90 and it has the same problem

I'm using windows 10 with x86 version of gstreamer.

Should I fill a bug?


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: High cpu usage in windows

Sebastian Dröge-3
On Wed, 2016-10-05 at 20:18 +0000, Jesus wrote:
> Hi
> I compiled my app against version 1.8.2 and noticed a high cpu usage,
> I found this command also uses to much cpu
> gst-launch-1.0.exe playbin uri="http://192.168.1.121:8000"
> The uri is an ogg audio stream
> This uses 13% cpu which is 100% of a single core in my system
> I tested in 1.9.90 and it has the same problem
> I'm using windows 10 with x86 version of gstreamer.
> Should I fill a bug?

Do some profiling to check where the CPU usage comes from first, and
also mention how you actually measure the CPU usage.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.co
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: High cpu usage in windows

Jesus Urroa

I  used the visual studio diagnostic tools these is the result only the first 2 rows


Function Name Total CPU (%) Self CPU (%) Total CPU (ms) Self CPU (ms) Module

- libgstdirectsoundsink.dll!0x00000067541cfe 61.45 % 0.22 % 3953 14 libgstdirectsoundsink.dll

[...]

+ libgstdirectsoundsink.dll!0x00000067541d15 22.31 % 0.19 % 1435 12 libgstdirectsoundsink.dll


I simply opened the task manager and see the performance tab


De: gstreamer-devel <[hidden email]> en nombre de Sebastian Dröge <[hidden email]>
Enviado: jueves, 6 de octubre de 2016 10:52:11
Para: Discussion of the development of and with GStreamer
Asunto: Re: High cpu usage in windows
 
On Wed, 2016-10-05 at 20:18 +0000, Jesus wrote:
> Hi
> I compiled my app against version 1.8.2 and noticed a high cpu usage,
> I found this command also uses to much cpu
> gst-launch-1.0.exe playbin uri="http://192.168.1.121:8000"
> The uri is an ogg audio stream
> This uses 13% cpu which is 100% of a single core in my system
> I tested in 1.9.90 and it has the same problem
> I'm using windows 10 with x86 version of gstreamer.
> Should I fill a bug?

Do some profiling to check where the CPU usage comes from first, and
also mention how you actually measure the CPU usage.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.co

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: High cpu usage in windows

Sebastian Dröge-3
On Thu, 2016-10-06 at 17:56 +0000, Jesus wrote:

> I  used the visual studio diagnostic tools these is the result only
> the first 2 rows
>
> Function Name Total CPU (%) Self CPU (%) Total CPU (ms) Self CPU (ms)
> Module
> - libgstdirectsoundsink.dll!0x00000067541cfe 61.45 % 0.22 % 3953 14
> libgstdirectsoundsink.dll
> [...]
> + libgstdirectsoundsink.dll!0x00000067541d15 22.31 % 0.19 % 1435 12
> libgstdirectsoundsink.dll
>
> I simply opened the task manager and see the performance tab
Ok, so it's something in directsoundsink that is taking all the CPU in
your case. Someone would have to look into that in more detail, which
function or block of code inside there is actually causing that.

Can you file a bug about this with some details about what exactly
you're doing, the Windows version, etc?

 https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment