Skip to contentSkip to conversation

Problems running a UVM vxWorks application (missing mlockall?)

Xenomai-help Niklaus Giger 2 participants 2 messages Apr 26, 2006 – Apr 27, 2006

lore
Share & tools
lore
#0 lore raw

Hi

I get the following problem running my vxWorks based application Xenomai/uvm: real-time nucleus v2.2-dev (Engines Of Creation) loaded.
Xenomai: process memory not locked (missing mlockall?)

Compiling and running koan_uvm under ksrc/skins/vxworks/demos is no problem, e.g. I get

ng:/home/hcu/kernel/xenomai-head/ksrc/skins/vxworks/demos# ./koan_uvm
Xenomai/uvm: real-time nucleus v2.2-dev (Engines Of Creation) loaded.
starting VxWorks services.
START ktest
Entering TaskTest
Time = 0 ms. (0 ns.)
STOP ktest
Time = 47 ms. (47121744 ns.)
Time = 49 ms. (49999782 ns.)
Time = 50 ms. (50001464 ns.)

If I start my application after running koan_uvm, it starts up without problem.

Has anybody an explanation for this problem here?

Best regards

Signature · 1 line
Niklaus Giger
#1 lore raw
Quoted 17 lines · Niklaus Giger

Hi

I get the following problem running my vxWorks based application Xenomai/uvm: real-time nucleus v2.2-dev (Engines Of Creation) loaded.
Xenomai: process memory not locked (missing mlockall?)

Compiling and running koan_uvm under ksrc/skins/vxworks/demos is no problem, e.g. I get ng:/home/hcu/kernel/xenomai-head/ksrc/skins/vxworks/demos# ./koan_uvm Xenomai/uvm: real-time nucleus v2.2-dev (Engines Of Creation) loaded.
starting VxWorks services.
START ktest
Entering TaskTest
Time = 0 ms. (0 ns.)
STOP ktest
Time = 47 ms. (47121744 ns.)
Time = 49 ms. (49999782 ns.)
Time = 50 ms. (50001464 ns.)

Quoted 4 lines

If I start my application after running koan_uvm, it starts up without problem.

Has anybody an explanation for this problem here?

Could you load your app over GDB, put a breakpoint in mlockall, and see whether the breakpoint is hit before the error is raised?

Signature · 1 line
Philippe.