<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 1 sept. 2019 10 h 56, IgalKroyter <<a href="mailto:igalkroy@gmail.com">igalkroy@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nicolas, hi,<br>
<br>
I'm trying to understand from NVidia what exactly they do, in the meanwhile<br>
could you please help me with indicating the flags of the relevant memory.<br>
I added a callback to the src pad of the intervideosrc. There I get a<br>
GstBuffer, from which I obtain the GstMemory (gst_buffer_get_memory(buf, 0))<br>
(I tried to get higher indeces but I got failure, so I guess there is only<br>
one memory attached to one buffer). Then I printed<br>
GST_MEMORY_IS_NO_SHARE(mem) and I got 0, meaning that the memory is shared.<br>
1. Is it the correct method to obtain wether a memory of a buffer is shared?<br>
2. If the memory is shared what else could utilize CPU?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">No-share was just a suggestion. First step should be to locate the memory copy that causes the high cpu usage (assuming it's a memory copy and not a nvmemory <-> sysmemory roundtrip issue). On modern OS people would use generic profiler like perf or sysprof, you could also try just enabling GST_PERFORMANCE:7 debug category.</div><div dir="auto"><br></div><div dir="auto">When the exact cause of cpu usage is found, then you will be able to debug further </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>