You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/03/15 23:48:03 UTC

[GitHub] [mynewt-core] ccollins476ad opened a new pull request #1693: Bookmarks optimization for FCB-backed logs

ccollins476ad opened a new pull request #1693: Bookmarks optimization for FCB-backed logs
URL: https://github.com/apache/mynewt-core/pull/1693
 
 
   Bookmarks are an optimization to speed up lookups in FCB-backed logs.  The concept is simple: maintain a set of flash area+offset pairs corresponding to recently found log entries.  When we perform a log lookup, the walk starts from the bookmark closest to our desired entry rather than from the beginning of the log.
   
   Bookmarks are stored in a circular buffer in the fcb_log object.  Each time the log is walked, the starting point of the walk is added to the set of bookmarks.
   
   FCB rotation invalidates all bookmarks.
   
   By default, this optimization is disabled.  To enable it, set the `LOG_FCB_BOOKMARKS` syscfg setting to 1.  Each FCB-backed log must then be configured with bookmark storage at runtime.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services