NVS write frequency analysis
Posted: Sat Jan 06, 2018 3:14 am
Hello.
The wifi subsystem can store its settings in nvs. In my case I'm switching between AP and STA and APSTA modes during a scanning process, due to the limitations of the SoftAP.
What I'm wondering is how to prove that I'm not wearing out the nvs. I'm pretty sure I'm not, and I could instrument my code but I was looking for ram based write counters in the nvs code that could help. Something where for each byte written and each separate nvs commit a counter would be incremented. This wouldn't persist across boots but would let me periodically check the rate of data written.
There doesn't appear to be any api like this in the documentation https://esp-idf.readthedocs.io/en/lates ... flash.html
Chris
The wifi subsystem can store its settings in nvs. In my case I'm switching between AP and STA and APSTA modes during a scanning process, due to the limitations of the SoftAP.
What I'm wondering is how to prove that I'm not wearing out the nvs. I'm pretty sure I'm not, and I could instrument my code but I was looking for ram based write counters in the nvs code that could help. Something where for each byte written and each separate nvs commit a counter would be incremented. This wouldn't persist across boots but would let me periodically check the rate of data written.
There doesn't appear to be any api like this in the documentation https://esp-idf.readthedocs.io/en/lates ... flash.html
Chris