[Bug 772841] udpsrc: high CPU usage at high packet rate

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 14 17:29:52 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=772841

--- Comment #20 from Petr Kulhavy <brain at jikos.cz> ---
(In reply to Tim-Philipp Müller from comment #19)
> > I'm also wondering if reducing the number of syscalls would bring any
> > further performance boost. I mean try to combine the wait (poll) and
> > receive, e.g. by setting SO_RCVTIMEO on the socket. What do you think?
> 
> We should use recvmmsg(). I have patches for that which I need to rebase,
> this is next on my list, give me a day or so please :)

I have been looking at recvmmsg(). But the timeout seems to be buggy:

man recvmmsg:
"BUGS: The timeout argument does not work as intended.  The timeout is checked
only after the receipt of each datagram, so that if up to vlen-1 datagrams are
received before the timeout expires, but then no further data‐grams are
received, the call will block forever."

So I'm afraid it is useless :-(

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list