load_mon: reduce FDS_LOW_WARNING_THRESHOLD to 3

This bound can be quite tight, because:
- The system still behaves well, even if all FD's are used (as opposed to
  a stack overflow)
- The amount of used FD's is typically only increased one at a time
  (e.g. adding new logged topics, adding a mavlink stream, ...)
- reducing CONFIG_NFILE_DESCRIPTORS to the minimum frees up a considerable
  amount of RAM on systems that need it
This commit is contained in:
Beat Küng
2018-01-09 10:37:14 +01:00
committed by Lorenz Meier
parent 794c7a5a0f
commit f47d0c8f8c

View File

@@ -62,7 +62,7 @@
extern struct system_load_s system_load;
#define STACK_LOW_WARNING_THRESHOLD 300 ///< if free stack space falls below this, print a warning
#define FDS_LOW_WARNING_THRESHOLD 10 ///< if free file descriptors fall below this, print a warning
#define FDS_LOW_WARNING_THRESHOLD 3 ///< if free file descriptors fall below this, print a warning
namespace load_mon
{