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

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 14 19:42:59 UTC 2016


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

--- Comment #23 from Petr Kulhavy <brain at jikos.cz> ---
(In reply to Nicolas Dufresne (stormer) from comment #21)
> (In reply to Petr Kulhavy from comment #20)
> > 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 :-(
> 
> Not totally true. When using it non-blocking, you can first poll, and then
> you call recvmmsg with N messages allocated. As it's non blocking, it will
> give you back M messages (where M <= N). You don't need to use the timeout.

That might make sense for usecases where latency is not critical. However for
low latency streams you want to possibly receive individual packets (i.e. M == 
1), so there recvmmsg won't gain anything.

-- 
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