summaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-22 16:02:09 -0800
committerJosh Blum <josh@joshknows.com>2010-12-22 16:02:09 -0800
commitde45f2234ca7ce8a1efd79525323bef55f1f9d44 (patch)
tree435dce2c2e8ff862f84cb47d0bc81f867d2fad1d /host/lib/transport
parentb6983381e46f5bb1156da2e40580a97fd09b9e37 (diff)
downloaduhd-de45f2234ca7ce8a1efd79525323bef55f1f9d44.tar.gz
uhd-de45f2234ca7ce8a1efd79525323bef55f1f9d44.tar.bz2
uhd-de45f2234ca7ce8a1efd79525323bef55f1f9d44.zip
udp_ports: enable async recv in xport, set performance params in top level, things working
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index c758fa894..bbd63836c 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -37,14 +37,15 @@ namespace asio = boost::asio;
**********************************************************************/
//Define this to the the boost async io calls to perform receive.
//Otherwise, get_recv_buff uses a blocking receive with timeout.
-//#define USE_ASIO_ASYNC_RECV
+#define USE_ASIO_ASYNC_RECV
//Define this to the the boost async io calls to perform send.
//Otherwise, the commit callback uses a blocking send.
//#define USE_ASIO_ASYNC_SEND
-//enough buffering for half a second of samples at full rate on usrp2
-static const size_t MIN_RECV_SOCK_BUFF_SIZE = size_t(4 * 25e6 * 0.5);
+//By default, this buffer is sized insufficiently small.
+//For peformance, this buffer should be 10s of megabytes.
+static const size_t MIN_RECV_SOCK_BUFF_SIZE = size_t(10e3);
//Large buffers cause more underflow at high rates.
//Perhaps this is due to the kernel scheduling,