You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ESP32 VFS Module has a downstream library that sets a maximum File Descriptor / File Handle, so I need to rewrite how I handle assigning them in DeviceFS, in order to reuse old ones. The default maximum is 64, but can be defined by the user by redefining FD_SETSIZE, in our project. However, we won't have infinite space to work with since higher descriptors are used for sockets. So, I still need to do some garbage collection on file handles.
The text was updated successfully, but these errors were encountered:
seisatsu
changed the title
The maximum File Descriptor is 64 so I need to handle them differently
There is a maximum limit on File Descriptors / Handles imposed by a downstream library
Dec 21, 2021
seisatsu
changed the title
There is a maximum limit on File Descriptors / Handles imposed by a downstream library
There is an adjustable hard limit on File Descriptors / Handles imposed by a downstream library
Dec 21, 2021
Also it looks like file descriptors should be handled globally rather than by DeviceFS internally, so I will need to redo that as well once I hook DeviceFS up to the overall VFS manager.
Alternatively I might just end up writing our own simpler VFS, I have done it before and it would probably cut out some overhead. This is a big project on a tiny chip so we need to cut out as much overhead as we can; see also #20.
I can probably port the VFS from Tsunagari or Driftwood.
And sure. We can also measure how much space everything uses with nm—there is a command line argument that will have it print the space of each symbol (function, global variable, etc.) in an object file/binary file.
The ESP32 VFS Module has a downstream library that sets a maximum File Descriptor / File Handle, so I need to rewrite how I handle assigning them in DeviceFS, in order to reuse old ones. The default maximum is 64, but can be defined by the user by redefining FD_SETSIZE, in our project. However, we won't have infinite space to work with since higher descriptors are used for sockets. So, I still need to do some garbage collection on file handles.
See https://github.com/pycom/esp-idf-2.0/blob/master/components/newlib/include/sys/types.h
The text was updated successfully, but these errors were encountered: