Since the available memory capacity varies from device to device,
Is there any way to find the best value for each build config?

The maximum number of file descriptors for a task is OPEN_MAX which is determined by CONFIG_LIBC_OPEN_MAX.  The actual number may vary from task to task.

In Linux, you might get the current number of descriptors with ulimit() (and set it with sysconf()).

In NuttX, the current number of file descriptions is held in the fl_rows field of struct filelist.  Access to that field is provided only through the /proc file file system.


Reply via email to