<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NVS occasionally takes a long time to initialize</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91558/nvs-occasionally-takes-a-long-time-to-initialize</link><description>Our product is using NVS to manage settings in external flash. The normal NVS initialization time is between 1 to 3 seconds at boot. Occasionally I have witnessed 10 to 15 seconds. I trapped it one time and was able to trace through the initialization</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Sep 2022 04:28:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91558/nvs-occasionally-takes-a-long-time-to-initialize" /><item><title>RE: NVS occasionally takes a long time to initialize</title><link>https://devzone.nordicsemi.com/thread/384477?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 04:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95fa9285-cafd-4469-a1f6-49e4a214ae5c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;nvs_mount which can cause the nvs_gc (garbage collection) to trigger is an synchronous procedure. If the mount is happening in the lower priority thread (like main) while other higher priority threads are already functioning, then there is a possibility that the garbage collection might be starving for sometime. I did not find any benchmarks on our end on how fast the &lt;strong&gt;gc&amp;nbsp;&lt;/strong&gt;should perform on different conditions. I would check what other higher priority threads are running in your system when the&amp;nbsp;&lt;strong&gt;gc&lt;/strong&gt; takes about 15 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>