[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] CPU Utilization and USRP2

From: Josh Blum
Subject: Re: [Discuss-gnuradio] CPU Utilization and USRP2
Date: Thu, 04 Nov 2010 14:29:33 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101027 Thunderbird/3.1.6

On 11/04/2010 01:25 PM, Marcus D. Leech wrote:
On 11/04/2010 03:23 PM, Josh Blum wrote:
Well, there is extra overhead. A "pirate" thread in the the receive
path spins on the socket and inspects the contents. The packet may be
an asynchronous message packet for flow control or destined for the
user. Or it may be a data packet, in which case it is placed into a
queue to be popped off by the device::recv() call. No extra memcopies,
its just managing pointers.
When you say that this thread "spins", do you mean that it's in an
infinite loop, waiting on blocking,
   or non-blocking I/O?  That is, does it pause while it waits for data,
or is it in a tight CPU loop?

its a blocking call to a socket ::recv with a timeout

reply via email to

[Prev in Thread] Current Thread [Next in Thread]