[Top][All Lists]

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

Re: [Discuss-gnuradio] Setting buffer size when using UHD

From: Josh Blum
Subject: Re: [Discuss-gnuradio] Setting buffer size when using UHD
Date: Tue, 21 Sep 2010 08:35:28 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100915 Thunderbird/3.0.8

On 09/21/2010 01:30 AM, Per Zetterberg wrote:
I read the page you refer to but I don't understand. Is this correct ?

uhd::device_addr_t dev_addr;
dev_addr["addr"] = "";
dev_addr["addr"] = "";
dev_addr["recv_buff_size"] = "1e4";

That should work, however, that is a very small buffer. Expect overflow.

If this is linux, I recommend setting sysctl and letting UHD
automatically pick the size.

sudo sysctl -w net.core.rmem_max=50000000

Yes. But then I need to do change this value when depending on which 
application I about to run or ... ?

50MB is half a second of buffering at full rate. The default behavior of the UHD is to resize recv buffers to 50 MB. I think that is sufficient for most applications.


reply via email to

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