Donny9 commented on PR #14416:
URL: https://github.com/apache/nuttx/pull/14416#issuecomment-2425567376

   > > If the used file descriptor exceeds CONFIG_NFILE_DESCRIPTORS_PER_BLOCK, 
it will still invoke file_extend and then call the allocator. How can this 
situation be resolved? By adjusting CONFIG_NFILE_DESCRIPTORS_PER_BLOCK?
   > 
   > We will ensure that the application code does not exceed 
CONFIG_NFILE_DESCRIPTORS_PER_BLOCK, so file_extend() is useless.
   > 
   > > This is an issue related to filelist references, not file references.
   > > Can this functionality be made configurable with a default setting to 
turn it off? Or are there any other good solutions to this problem?
   > 
   > No, static reservation is a better solution. As long as the nuttx task is 
created, it needs 3 handles for standard input 、output、 error(0,1,2),So 
pre-reserve for the file list is a certain event and cannot be skipped, so why 
not make it static reservation?
   
   If that's the case, tasks using a static file list shouldn't exit, now using 
such a static file list for tasks that need to exit doesn't make  sense. 
However, given the current requirement to enforce the use of such static lists, 
it would be best if there were options available.


-- 
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]

Reply via email to