Invalid Argument/Failed to Allocate Buffer

I am trying to play back my recorded data and I get the following:

3 instances of vmcircbuf_sysv_shm: shmget(1): Invalid argument

allocate_buffer: failed to allocate buffer size of 25784 KB

Those four lines are repeated, then

terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_aloc

My flow is a file source to a throttle to a frequency xlating fir filter
to
a wx gui fft sink. Sample rate is 50M.

Any ideas?

Paul B. Huter

On 11/21/2013 06:17 PM, Paul B. Huter wrote:

I am trying to play back my recorded data and I get the following:

3 instances of vmcircbuf_sysv_shm: shmget(1): Invalid argument

allocate_buffer: failed to allocate buffer size of 25784 KB

Those four lines are repeated, then

terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_aloc

What architecture are you running on?

Philip

Linux Mint 14

Paul B. Huter

Paul, I read that as lack of available shared memory. I’m curious what
result you get if you run the following at the command line:
sysctl kernel.shmmax

Not sure how you installed gnu radio, but if you used Marcus’s
build_gnuradio script then the following changes should have been made
in /etc/sysctl.conf:

Updates for Gnu Radio

net.core.rmem_max = 1000000
net.core.wmem_max = 1000000
kernel.shmmax = 2147483648
These would be considered good starting values for general GNUradio with
a USRP work.

You can experiment at the command line to see if it solves your issue
with:

sudo sysctl -w kernel.shmmax=2147483648

-Ian

Editing that file did not work, but I was able to write a quick script
that
ran that last line and then ran GNURadio.

Thanks!