Skip to content

[BACKPORT] fs/shm: Add a flag FS_SHMFS_NO_ALIGN to remove SHM alignment - #416

Open
jlaitine wants to merge 1 commit into
PX4:px4_firmware_nuttx-12.12.0+from
tiiuae:shm_alingment_removal
Open

jlaitine wants to merge 1 commit into
PX4:px4_firmware_nuttx-12.12.0+from
tiiuae:shm_alingment_removal

Conversation

@jlaitine

@jlaitine jlaitine commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

This is a backport from NuttX mainline, which can be used on small systems to save RAM if the SHM object doesn't need to be cache-aligned.

Impact

Has no impact on the current PX4, which doesn't use posix shm for anything, but is needed for PX4/PX4-Autopilot#27331 to reduce SRAM consumption.

Testing

Tested on fmu-v5, fmu-v5x, fmu-v6xrt w. the SHM-based uORB implementation.

This can be used on small systems to save RAM if the SHM object
doesn't need to be cache-aligned.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
@jlaitine

Copy link
Copy Markdown
Contributor Author

@dakejahl Could we have this in px4 nuttx branch? It is no-op in current mainline, but if I want to continue on the the SHM uORB pr, this would be good to have. My boards do work without, but without this backport the SRAM waste is big.

@dakejahl dakejahl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link to the upstream PR?

@jlaitine

Copy link
Copy Markdown
Contributor Author

link to the upstream PR?

apache/nuttx#19886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants