diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-05 12:29:31 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-05 12:29:31 -0700 |
commit | 01e5f592d62e2193cc88081bd88765cae4708148 (patch) | |
tree | 2a55a89daa426b87dde8cfc99bb57c8362c8acec /host/docs | |
parent | e057e6afde4b4be21f0e30ee6071599288b0e8a8 (diff) | |
download | uhd-01e5f592d62e2193cc88081bd88765cae4708148.tar.gz uhd-01e5f592d62e2193cc88081bd88765cae4708148.tar.bz2 uhd-01e5f592d62e2193cc88081bd88765cae4708148.zip |
usrp2: increased transport buffer minimum size, and added warning
added more notes on buffer size to the manual
pulled in some firmware fixes from the mimo work, just to have them in here
Diffstat (limited to 'host/docs')
-rw-r--r-- | host/docs/usrp2.rst | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/host/docs/usrp2.rst b/host/docs/usrp2.rst index 09987b3fa..aff0d0454 100644 --- a/host/docs/usrp2.rst +++ b/host/docs/usrp2.rst @@ -158,10 +158,25 @@ buffer incoming samples faster than they can be processed. However, if you application cannot process samples fast enough, no amount of buffering can save you. +By default, the UHD will try to request a reasonably large buffer size for both send and receive. +A warning will be printed on instantiation if the actual buffer size is insufficient. +See the OS specific notes below: + +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +OS specific notes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +On linux, the maximum buffer sizes are capped by the sysctl values +**net.core.rmem_max** and **net.core.wmem_max**. +To change the maximum values, run the following commands: +:: + + sudo sysctl -w net.core.rmem_max=<new value> + sudo sysctl -w net.core.wmem_max=<new value> + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Device address params ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -To set the size of the buffers, +To manually set the size of the buffers, the usrp2 will accept two optional parameters in the device address. Each parameter will accept a numeric value for the number of bytes. @@ -172,14 +187,3 @@ Example, set the args string to the following: :: addr=192.168.10.2, recv_buff_size=100e6 - -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -OS specific notes -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -On linux, the maximum buffer sizes are capped by the sysctl values -**net.core.rmem_max** and **net.core.wmem_max**. -To change the maximum values, run the following commands: -:: - - sudo sysctl -w net.core.rmem_max=<new value> - sudo sysctl -w net.core.wmem_max=<new value> |