Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Based on the context provided, the memory and storage usage you are observing with Torizon OS on the Apalis iMX6 does seem to be on the higher side, especially when compared to your previous experience with WinCE boards. Here are a few points and potential optimizations to consider:
-
Base Memory Usage: The base memory usage of 40% (400MB) for Torizon OS is relatively typical, as Torizon is a full Linux-based OS with additional services and features that naturally consume more resources than a more minimal OS like WinCE.
-
Docker Overhead: Docker does introduce some overhead, which is why you see a reduction in memory usage when Docker is deactivated. However, Docker is integral to Torizon’s functionality, so completely removing it may not be feasible.
-
Avalonia and Other Templates: The increase in memory and storage usage when using the Avalonia template or other similar templates is expected due to the additional libraries and runtime environments required by these frameworks. Avalonia, being a cross-platform UI framework, can be resource-intensive.
-
Optimizations:
- Minimize Running Services: Review and disable any unnecessary services or containers that may be running by default.
- Optimize Docker Images: Ensure that your Docker images are as lean as possible. Remove unnecessary packages and dependencies.
- Use Lightweight Frameworks: If possible, consider using more lightweight frameworks or libraries that better fit the resource constraints of your hardware.
- Memory Management: While you mentioned that changing the CMA settings had minimal impact, continue to explore other kernel parameters or memory management techniques that might help.
-
Hardware Considerations: If resource constraints continue to be a significant issue, you may need to consider hardware with more RAM and storage, despite the cost implications.
Ultimately, while some of the resource usage is inherent to the nature of Torizon and the frameworks being used, careful optimization of your applications and system configuration can help mitigate these issues.
Please, also check if these links can help you solve your problem:
Getting started for Torizon and Apalis iMX6 fails to build container.