jlaitine opened a new pull request, #19886:
URL: https://github.com/apache/nuttx/pull/19886
## Summary
Add a flag to drop SHM object cache alignment. This can be used on small
systems to save RAM if the SHM object doesn't need to be cache-aligned. On a
CONFIG_BUILD_FLAT, saves ~24 bytes per object.
## Impact
No impact on existing boards, added configuration flag to save some RAM on a
system using lots of SHM objects.
## Testing
With my custom SW, having a few hundred SHM objects on a Pixhawk 5x
(stm32f7) HW, CONFIG_BUILD_FLAT:
CONFIG_FS_SHMFS_NO_ALIGN=y:
```
nsh> cat /proc/meminfo
total used free maxused maxfree nused nfree name
419860 383948 35912 386392 33688 1600 4 Umem
2097152 2097152 0 0 13 0 Prog
```
CONFIG_FS_SHMFS_NO_ALIGN=n:
```
nsh> cat /proc/meminfo
total used free maxused maxfree nused nfree name
419796 387964 31832 387688 31744 1542 5 Umem
2097152 2097152 0 0 13 0 Prog
```
So the RAM saving gets up to ~5kB
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]