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

2010-09-22 Thread Josh Blum

On 09/22/2010 07:17 AM, Per Zetterberg wrote:

Is the receiver buffer size in bytes or samples ?



bytes

Its a direct proxy for SO_REVBUF socket option. 
http://www.boost.org/doc/libs/1_41_0/doc/html/boost_asio/reference/basic_datagram_socket/receive_buffer_size.html


http://msdn.microsoft.com/en-us/library/ms740476%28VS.85%29.aspx

-Josh




From: discuss-gnuradio-bounces+perz=kth...@gnu.org 
[discuss-gnuradio-bounces+perz=kth...@gnu.org] on behalf of Josh Blum 
[j...@joshknows.com]
Sent: Monday, September 20, 2010 5:07 PM
To: discuss-gnuradio@gnu.org
Subject: Re: [Discuss-gnuradio] Setting buffer size when using UHD

The buffer size setting is used across all motherboards in the mimo
setup. So, if specified, its only specified once:
http://www.ettus.com/uhd_docs/manual/html/usrp2.html#resize-the-send-and-receive-buffers

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

sudo sysctl -w net.core.rmem_max=5000

-Josh

On 09/20/2010 03:36 AM, Per Zetterberg wrote:

Hi All,

How do I set the buffer size when using uhd::usrp::mimo_usrp ?

BR/
Per
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2010-09-22 Thread Per Zetterberg
Is the receiver buffer size in bytes or samples ?



From: discuss-gnuradio-bounces+perz=kth...@gnu.org 
[discuss-gnuradio-bounces+perz=kth...@gnu.org] on behalf of Josh Blum 
[j...@joshknows.com]
Sent: Monday, September 20, 2010 5:07 PM
To: discuss-gnuradio@gnu.org
Subject: Re: [Discuss-gnuradio] Setting buffer size when using UHD

The buffer size setting is used across all motherboards in the mimo
setup. So, if specified, its only specified once:
http://www.ettus.com/uhd_docs/manual/html/usrp2.html#resize-the-send-and-receive-buffers

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

sudo sysctl -w net.core.rmem_max=5000

-Josh

On 09/20/2010 03:36 AM, Per Zetterberg wrote:
> Hi All,
>
> How do I set the buffer size when using uhd::usrp::mimo_usrp ?
>
> BR/
> Per
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2010-09-21 Thread Josh Blum



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"] = "192.168.10.11 192.168.20.11";
dev_addr["addr"] = "192.168.10.11 192.168.20.11";
dev_addr["recv_buff_size"] = "1e4";
d_mdev=uhd::usrp::mimo_usrp::make(dev_addr);




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=5000




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.


-Josh

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2010-09-21 Thread Per Zetterberg
I read the page you refer to but I don't understand. Is this correct ?

uhd::device_addr_t dev_addr;
dev_addr["addr"] = "192.168.10.11 192.168.20.11";
dev_addr["addr"] = "192.168.10.11 192.168.20.11";
dev_addr["recv_buff_size"] = "1e4";
d_mdev=uhd::usrp::mimo_usrp::make(dev_addr);


> If this is linux, I recommend setting sysctl and letting UHD 
> automatically pick the size.
> 
> sudo sysctl -w net.core.rmem_max=5000
> 
> 
> 
Yes. But then I need to do change this value when depending on which 
application I about to run or ... ?

BR/
Per



On Mon, 2010-09-20 at 08:07 -0700, Josh Blum wrote:
> The buffer size setting is used across all motherboards in the mimo 
> setup. So, if specified, its only specified once: 
> http://www.ettus.com/uhd_docs/manual/html/usrp2.html#resize-the-send-and-receive-buffers
> 
> If this is linux, I recommend setting sysctl and letting UHD 
> automatically pick the size.
> 
> sudo sysctl -w net.core.rmem_max=5000
> 
> -Josh
> 
> On 09/20/2010 03:36 AM, Per Zetterberg wrote:
> > Hi All,
> >
> > How do I set the buffer size when using uhd::usrp::mimo_usrp ?
> >
> > BR/
> > Per
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2010-09-20 Thread Josh Blum
The buffer size setting is used across all motherboards in the mimo 
setup. So, if specified, its only specified once: 
http://www.ettus.com/uhd_docs/manual/html/usrp2.html#resize-the-send-and-receive-buffers


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


sudo sysctl -w net.core.rmem_max=5000

-Josh

On 09/20/2010 03:36 AM, Per Zetterberg wrote:

Hi All,

How do I set the buffer size when using uhd::usrp::mimo_usrp ?

BR/
Per
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Setting buffer size when using UHD

2010-09-20 Thread Per Zetterberg
Hi All,

How do I set the buffer size when using uhd::usrp::mimo_usrp ?

BR/
Per
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio