FileSystem Backend Log Overwrite takes a lot of CPU

Hi all,

I am working on an nrf5340 and I activated the FileSystem Backend log to save the logs in my external Flash.
It's working how we are expecting to except once the flash is full. Once the system starts to overwrite data, we see a huge increase of CPU usage. At this point the logging thread is switching for from 5% of the CPU usage to 80%.. 
Were you aware of this behaviour? Is there some way to optimize this?

Thank you,

Sylvain

Related