eclipse-iceoryx / iceoryx

Eclipse iceoryx™ - true zero-copy inter-process-communication
https://iceoryx.io
Apache License 2.0
1.65k stars 384 forks source link

iceoryx_mgmt occupying 82MB space. Can we reduce it? #318

Closed Indra5196 closed 3 years ago

Indra5196 commented 4 years ago

Capture

Required information

Operating system: E.g. Ubuntu 18.04 LTS

Compiler version: E.g. GCC 7.4.0

iceoryx_mgmt occupies approximately 82MB space. Can it be reduced? If yes, How? if no, Why?

Conditions where it occurred / Performed steps: Simply run the RouDi executable.

budrus commented 4 years ago

Yes you can. We are using fixed size containers in the management segment as we are not using dynamic memory allocation during runtime. There is a default configuration which fits more to larger systems. Besides the memory pool configuration you can change these compile time constants. Check here what you can change via CMake switch. Especially the constants for publishers and subscribers are currently relevant

The maximum power you have if you directly check the constants in posh_types. But the ones available as CMake switch should be the most interesting ones

budrus commented 3 years ago

@Indra5196, did it work out? I would close this issue if you think the questions are answered