Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Peer Manager, FDS, gc question

When and by what logic Peer Manager performs garbage collection on FDS?

I have a single number stored also in FDS and I’m wondering if gc performed by Peer Manager will be enough to gc for me or I have to take care for the garbage that updating my simple number would accumulate over the time?

Thanks

Parents
  • Hi,

    There is only one instance of the FDS filesystem, so when you run GC it will clean up data records from all users of FDS.  You may handle GC in your application code to ensure that it's run ahead of time before the filesystem gets completely full. Use the FDS stat function to get information about current flash usage.

  • Hi Vidor, could you provide some information when Peer Manager  checks and how decide that need/don't need to perform garbage collection and when initiate it (immediately or by certain conditions later)?

    Because I have very  small amount of data (compared to what PManager use) saved in FDS and my wild guess is that if PM initiate garbage collection not when FDS is completely full, but at certain threshold,  that could be enough to do and the job of lazy me ;) ?

    Thanks

Reply
  • Hi Vidor, could you provide some information when Peer Manager  checks and how decide that need/don't need to perform garbage collection and when initiate it (immediately or by certain conditions later)?

    Because I have very  small amount of data (compared to what PManager use) saved in FDS and my wild guess is that if PM initiate garbage collection not when FDS is completely full, but at certain threshold,  that could be enough to do and the job of lazy me ;) ?

    Thanks

Children
Related