discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Memory issues


From: bob wole
Subject: Re: [Discuss-gnuradio] Memory issues
Date: Thu, 30 Jul 2015 10:10:13 +0500

Maricus,

Does your flowgraph involves aany hardware sink e.g USRP, audio ? If try adding a throttle if you are not already doing it.

--
Bob



Hi Marius,

good question!
Now, typically, you'd use tools like valgrind to figure that out. I
haven't noticed a memory leak in GNU Radio itself, but it's absolutely
possible that something like PMTs do not get freed etc, and we didn't
notice how this could happen.
If you need additional things to look for:
* do you have something like a vector that stores e.g. messages that
come in?
* what's the failure mode of your application? Is it killed by the
Out-of-Memory killer, or do you get into a situation where it crashes
because of e.g. stack overflow?

Best regards,
Marcus

On 29.07.2015 15:57, Marius Cachelin wrote:
> Hi all,
>
> I am writing because I have some misunderstood concerning how memory
> is used in GNURadio.
>
> I developed a transmitter which can be split into 5 parts :
>    - MAC Encoder : read PDU data from TUNTAP
>    - HEADER Prefixer : add header before each PDU Data
>    - PREAMBLE prefixer : add preamble before each PDU Data
>    - MODULATOR : Performing BPSK/QPSK
>    - FIR Interp : Pulse shape
>
> My question is : when I run my transmitter, I can see in HTOP that the
> memory (%MEM) used by my transmitter increase. The increasing is
> relatively slow, but the is an issue because I can't keep using my
> transmitter after a while.
>
> I have checked all my blocks. All memory allocations are freed, and
> all my objetcs (new...) are deleted.
>
> So, how the memory can increase if I do not allocate extra memory and
> free all memory?
>
> Thanks you in advance.
>
> --
> *CACHELIN Marius*
> /Ing?nieur Syst?mes, R?seaux et T?l?communications/
> address@hidden <mailto:address@hidden

reply via email to

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