Re: Memory leak in 3.4.x-rt ?

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

 



On 09/25/2012 05:39 PM, Jean-Michel Hautbois wrote:
2012/8/24 Ralf Rösch<rtlinux@xxxxxxxxxxxxx>:
Hi,

we work on our TX4938 (Toshiba Mips, little endian mode) based embedded
system (motion control)
running successfully a 3.2 RT patched kernel for month now.

I just give a try to a 3.4 RT patched kernel and detected a memory problem
as you can see from the logs below:

3.2 with RT FULL PREEMPT is o.k
3.4 without RT FULL PREEMPT is .ok.
3.4 with RT FULL PREEMPT is not o.k.
 [..]
uname -a
Linux MCU 3.4.9-rt17-11244-gb12622a #23 PREEMPT RT Fri Aug 24 12:15:49 CEST
2012 mips GNU/Linux
[root@MCU:/opt]# watch -n 1 cat /proc/meminfo  | grep MemFree
MemFree:          204304 kB
MemFree:          204208 kB
MemFree:          204112 kB
MemFree:          204064 kB
MemFree:          203968 kB
MemFree:          203920 kB
MemFree:          203824 kB
MemFree:          203776 kB
[..]
You have a big leak (around 100kB/sec), yes, but can you give us more details ?
What kind of application ? Network ? video encoder ?
Which drivers are you using ?
Did you try using some advanced tools in order to check that your
application cannot have a memory leak in a specific use case (race
condition ?) ?
You will need to be more precise on the memory leak detection, because
with what you gave, I (maybe others can) cannot help you more...
In a first step, I would propose to run "cat /proc/meminfo" repeatedly and no longer only check MemFree but check all other variables. One of them will increase in the same amount as MemFree decreases. Which one is it? Slab? This information will then lead us where to search further.

	-Carsten.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux