Skip to contentSkip to conversation

mem leak on slab size-1024 with Xenomai processes

Xenomai-core Jan Kiszka 3 participants 6 messages Oct 13, 2008

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Sigh, this is not my day: Can anyone confirm that we are leaking memory with current SVN head? I'm seeing a constant increase on slab "size-1024" on a x86_64 box when running arbitrary Xenomai apps in a loop.

[ Besides that, I have an occasional deadlock in xnpipe_wakeup_proc due to an inconsistent xnpipe_sleepq - likely a different story... :-/ ]

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
author
#1 lore raw
Quoted 3 lines · Jan Kiszka

Sigh, this is not my day: Can anyone confirm that we are leaking memory with current SVN head? I'm seeing a constant increase on slab "size-1024" on a x86_64 box when running arbitrary Xenomai apps in a loop.

I loose 1k per invocation, and this already from applying "-lrtdm" to an innocent application (which just means xeno_bind_skin_opt). Strange. Digging deeper.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#2 lore raw
In reply to Jan Kiszka
Quoted 7 lines · Jan Kiszka

Sigh, this is not my day: Can anyone confirm that we are leaking memory with current SVN head? I'm seeing a constant increase on slab "size-1024" on a x86_64 box when running arbitrary Xenomai apps in a loop.

[ Besides that, I have an occasional deadlock in xnpipe_wakeup_proc due to an inconsistent xnpipe_sleepq - likely a different story... :-/ ]

Any luck with CONFIG_XENOMAI_OPT_DEBUG_QUEUES on?

Quoted 2 lines

Jan

Signature · 1 line
Philippe.
author
#3 lore raw
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

Sigh, this is not my day: Can anyone confirm that we are leaking memory with current SVN head? I'm seeing a constant increase on slab "size-1024" on a x86_64 box when running arbitrary Xenomai apps in a loop.

[ Besides that, I have an occasional deadlock in xnpipe_wakeup_proc due to an inconsistent xnpipe_sleepq - likely a different story... :-/ ]

Any luck with CONFIG_XENOMAI_OPT_DEBUG_QUEUES on?

As usual no luck: the bug disappeared (likely some race). Will dig into that next after fixing this leak:

xnshadow_sys_event()
XNSHADOW_CLIENT_ATTACH -> xnarch_alloc_host_mem(xnsys_ppd) XNSHADOW_CLIENT_DETACH -> ???

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
author
#4 lore raw
Quoted 9 lines · Jan Kiszka
Quoted 8 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

Sigh, this is not my day: Can anyone confirm that we are leaking memory with current SVN head? I'm seeing a constant increase on slab "size-1024" on a x86_64 box when running arbitrary Xenomai apps in a loop.

[ Besides that, I have an occasional deadlock in xnpipe_wakeup_proc due to an inconsistent xnpipe_sleepq - likely a different story... :-/ ]

Quoted 8 lines
Quoted 1 line

Any luck with CONFIG_XENOMAI_OPT_DEBUG_QUEUES on?

As usual no luck: the bug disappeared (likely some race). Will dig into that next after fixing this leak:

xnshadow_sys_event()
XNSHADOW_CLIENT_ATTACH -> xnarch_alloc_host_mem(xnsys_ppd) XNSHADOW_CLIENT_DETACH -> ???

That was the key, now fixed with #4218.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#5 lore raw
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

Sigh, this is not my day: Can anyone confirm that we are leaking memory with current SVN head? I'm seeing a constant increase on slab "size-1024" on a x86_64 box when running arbitrary Xenomai apps in a loop.

[ Besides that, I have an occasional deadlock in xnpipe_wakeup_proc due to an inconsistent xnpipe_sleepq - likely a different story... :-/ ]

Any luck with CONFIG_XENOMAI_OPT_DEBUG_QUEUES on?

Quoted 8 lines
Quoted 6 lines

As usual no luck: the bug disappeared (likely some race). Will dig into that next after fixing this leak:

xnshadow_sys_event()
XNSHADOW_CLIENT_ATTACH -> xnarch_alloc_host_mem(xnsys_ppd) XNSHADOW_CLIENT_DETACH -> ???

That was the key, now fixed with #4218.

Ok. I think this one is mine. Sorry.

Signature · 1 line
					    Gilles.