discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Memory issues


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Memory issues
Date: Wed, 29 Jul 2015 16:11:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

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


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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