Skip to contentSkip to conversation

Increasing UVMs heap size

Xenomai-help Thomas Necker 2 participants 2 messages Oct 31, 2006

lore
Share & tools
lore
#0 lore raw

I tried to increase the heap size for UVM. I did so by using --enable-uvm-heapsz=512 when compiling the user space parts and also setting CONFIG_XENO_OPT_SYS_HEAPSZ=512 in the kernel configuration. Somehow it seems to work, at least I now can create a lot more pSOS skin queues than before. However, if I do a "cat /proc/xenomai/heap" I still get "size=131072:used=16:pagesz=512". So, why can't I see the increased heap size here? Thanks.

Thomas

#1 lore raw
Quoted 8 lines · Thomas Necker

I tried to increase the heap size for UVM. I did so by using --enable-uvm-heapsz=512 when compiling the user space parts and also setting CONFIG_XENO_OPT_SYS_HEAPSZ=512 in the kernel configuration. Somehow it seems to work, at least I now can create a lot more pSOS skin queues than before. However, if I do a "cat /proc/xenomai/heap" I still get "size=131072:used=16:pagesz=512". So, why can't I see the increased heap size here? Thanks.

Because passing --enable-uvm-heapsz changes the heap size for the local/slave nucleus embodied (as a library) into your application process (i.e. the UVM). /proc/xenomai/heap reports this size for the "master" nucleus running in kernel space, each slave nucleus end up using to emulate context switches and other low-level ops. UVM strangeness.

Quoted 6 lines

Thomas

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.