nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

fs/inode: add pre-allocated task files to avoid allocator access

Open anchao opened this issue 1 year ago • 0 comments

Summary

fs/inode: add pre-allocated task files to avoid allocator access

Pre-allocated files to avoid allocator access during thread creation phase, For functional safety requirements, increase CONFIG_NFILE_DESCRIPTORS_PER_BLOCK could also avoid allocator access caused by the file descriptor exceeding the limit.

For Task Termination, the time consumption will be reduced ~3us (Tricore TC397 300MHZ): 10.65(us) -> 7.35(us)

NOTE: This commit will not waste of extra heap, just pre-allocates the list of files for task_group.

Signed-off-by: chao an [email protected]

Impact

N/A

Testing

ci-check

anchao avatar Mar 06 '24 07:03 anchao