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
Reviewing lfs.h and the port for esp32 I'm using here I don't see any tracking counters exposed from littlefs.
It would be helpful for embedded use to be able to retrieve counters of page writes and page erases from littlefs to aid in the analysis of product lifespan.
The simple analysis is to look at the datarate from the application into littlefs, however this excludes overhead and other internal management of the filesystem that may add overhead. Having run-time counters (stored in ram, not persisted to the filesystem), for erases, block writes, and block reads, a block read count could let you examine if your application's workload was somehow causing more reads than anticipated, would provide the information necessary for an analysis.
Thoughts?
The text was updated successfully, but these errors were encountered:
This is an interesting idea. One could imagine an optional define that makes these counters available through lfs_fs_stat.
Though I wonder if inside the filesystem is the best place for these. You could also add the counters to the block device itself, and query the block device outside the filesystem. That way you could also measure any overhead introduced by other block device layers (FTL, ECC, etc).
This is what we do in emubd for running local (no-hardware) benchmarks:
Reviewing lfs.h and the port for esp32 I'm using here I don't see any tracking counters exposed from littlefs.
It would be helpful for embedded use to be able to retrieve counters of page writes and page erases from littlefs to aid in the analysis of product lifespan.
The simple analysis is to look at the datarate from the application into littlefs, however this excludes overhead and other internal management of the filesystem that may add overhead. Having run-time counters (stored in ram, not persisted to the filesystem), for erases, block writes, and block reads, a block read count could let you examine if your application's workload was somehow causing more reads than anticipated, would provide the information necessary for an analysis.
Thoughts?
The text was updated successfully, but these errors were encountered: