Skip to contentSkip to conversation

Dovetail/Xenomai 3: kernel config CONFIG_XENO_OPT_REGISTRY_NRSLOTS

DISCUSSION YinJie LI 2 participants 2 messages Jun 7, 2024

lore
Share & tools
lore

YinJie LI

author
#0 lore raw

Hi all,

What is the maximum value of the kernel option CONFIG_XENO_OPT_REGISTRY_NRSLOTS?

When I set more than 30,000, Linux failed to start.

#1 lore raw
Quoted 6 lines · YinJie LI

Hi all,

What is the maximum value of the kernel option CONFIG_XENO_OPT_REGISTRY_NRSLOTS?

When I set more than 30,000, Linux failed to start.

The value is used for an allocation with kmalloc().

       registry_obj_slots = kmalloc(CONFIG_XENO_OPT_REGISTRY_NRSLOTS *
                                    sizeof(struct xnobject), GFP_KERNEL);
       if (registry_obj_slots == NULL)
               return -ENOMEM;

kmalloc() gives you at most a few pages. Depends on the memory fragmentation of the system.

Signature · 2 lines
Thanks,
//richard