[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011 |
Date: |
Tue, 01 Mar 2011 13:18:27 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 |
On 03/01/2011 12:52 PM, Feng Andrew Ge wrote:
> Josh,
>
> That's great, thanks.
>
> When using UHD in GNU Radio, I observed huge time overhead: for example,
> using the raw_Ethernet code and 500kb/s, tunnel.py has only about 8 ms
> ping RTT time between two nodes; now with UHD, I have 17ms in average.
> As I increase the ping payload, the overhead time (excluding the extra
> data communication time) increases accordingly. Since USRP2 by default
> sends data samples immediately and the RTT time between UHD and USRP2 is
> negligible, I think that the interface between UHD and GNU Radio is
> introducing some overhead. Do you have any thought on this?
>
The ping time is talking to the embedded cpu and is not a reflection of
the latency when dealing with data/samples. For a better explanation,
see:
http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/2011-January/000521.html
Also, make sure you pull the latest gnuradio next branch. I pushed that
diff I sent you earlier in regards to the time stamps. With the latest
change, all packets are sent ASAP in the single channel case.
> Would you tell me what threads are running in UHD when
> uhd_single_usrp_sink and uhd_single_usrp_source is called? It seems that
> at least two threads are called for each.
>
In reference to what runs on the latest master in uhd:
For a USB device (USRP1) there is a thread running libusb async
transactions.
For a network device (USRP2/N210) there is a thread receiving async
message packets, these include flow control updates and transmit error
notifications.
The other threads you see (and the ones with any major overhead) are the
threads in gnuradio (thread-per-block scheduler)
> Is it right that the maximum amount of data that each socket.send() or
> socket.recv() can operate is dynamically determined by
> noutput_items/ninput_items from the general work function in
correct
> uhd_single_usrp_*? Originally I thought the num_recv_frames have
> control over this; but I noticed that the UDP transport document is
> updated: "*Note1:* num_recv_frames and num_send_frames do not affect
> performance."
>
Those refer to number of buffers allocated. But in the UDP
implementation, buffers are used and disposed of synchronously, so you
only ever need a few.
In the libusb implementation, buffers are processed asynchronously, so
you can potentially have all the buffers being emptied/filled in the
background, so altering those values may make sense to do.
-Josh
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011,
Josh Blum <=
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/01
- Message not available
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/02
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/02
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/02
- [Discuss-gnuradio] How is "UU" generated, Feng Andrew Ge, 2011/03/02
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- [Discuss-gnuradio] uhd_usrp_sink often blocks in non-continuous data sending, Feng Andrew Ge, 2011/03/03