[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] File sink causes "S" errors
From: |
Jared Casper |
Subject: |
Re: [Discuss-gnuradio] File sink causes "S" errors |
Date: |
Wed, 6 Oct 2010 10:00:32 -0700 |
On Tue, Oct 5, 2010 at 9:17 PM, Thomas Hobiger <address@hidden> wrote:
> When doing a few samples with decimation of 8 nothing happens.
>
>> ./rx_streaming_samples -f 1.575G -d 8 -N 1000000000 -s -o /SSD/test.bin
>
>> ./rx_streaming_samples -f 1.575G -d 8 -N 2000000000 -s -o /SSD/test.bin
>
>
> But when taking more data
>
>> ./rx_streaming_samples -f 1.575G -d 8 -N 4000000000 -s -o /SSD/test.bin
> SSSSSSSSSS....
The default receive buffer in the Linux kernel is relatively small, I
think just over 100k. It may not help, but would be worth a shot to
increase the buffer size to smooth out the data flow. Use "sysctl
net.core.rmem_max" and "sysctl net.core.rmem_default" to see the max
and default you have now, and "sysctl -w net.core.rmem_max=4194304"
(or whatever) to set them. The default is what all new sockets are
allocated, and you can use setsockopt to set the SO_RCVBUF option on
the socket to change it after that (up to the max of course). I'm not
sure if the usrp2 driver is currently trying to increase that buffer
size or not, but if your max is low it won't help much.
Jared
- Re: [Discuss-gnuradio] File sink causes "S" errors, (continued)
- Re: [Discuss-gnuradio] File sink causes "S" errors, Josh Blum, 2010/10/05
- Re: [Discuss-gnuradio] File sink causes "S" errors, Thomas Hobiger, 2010/10/06
- Re: [Discuss-gnuradio] File sink causes "S" errors, Nick Foster, 2010/10/06
- Re: [Discuss-gnuradio] File sink causes "S" errors, Seth David Schoen, 2010/10/06
- Re: [Discuss-gnuradio] File sink causes "S" errors, Thomas Hobiger, 2010/10/06
- Re: [Discuss-gnuradio] File sink causes "S" errors, Thomas Hobiger, 2010/10/06
- Re: [Discuss-gnuradio] File sink causes "S" errors, Josh Blum, 2010/10/06
- Re: [Discuss-gnuradio] File sink causes "S" errors, Thomas Hobiger, 2010/10/06
- Re: [Discuss-gnuradio] File sink causes "S" errors,
Jared Casper <=
Re: [Discuss-gnuradio] File sink causes "S" errors, Marcus D. Leech, 2010/10/05
Re: [Discuss-gnuradio] File sink causes "S" errors, Marc Epard, 2010/10/06
Re: [Discuss-gnuradio] GNU Radio roadmap, Tom Rondeau, 2010/10/09