<?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>Long execution time for statvfs() filesystem function.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109948/long-execution-time-for-statvfs-filesystem-function</link><description>MCU: nrf52840 | SDK: NCS 2.4.1 
 
 Hi, 
 This is more of a general question than a &amp;quot;problem&amp;quot;, but I noticed that the first time I use the statvfs() function on a filesystem it&amp;#39;s taking quite a long time (~4.5 seconds). I&amp;#39;m using FATFS as the backend FS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Apr 2024 12:54:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109948/long-execution-time-for-statvfs-filesystem-function" /><item><title>RE: Long execution time for statvfs() filesystem function.</title><link>https://devzone.nordicsemi.com/thread/477813?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 12:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9a8a6c3-60c2-4a51-9572-9b7372c5c070</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;No worries! Leaving it open for now. You could also ask in the &lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;Zephyr Discord&lt;/a&gt; to increase your odds of responses.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long execution time for statvfs() filesystem function.</title><link>https://devzone.nordicsemi.com/thread/477649?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 16:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d316351-fe9b-4d37-97f7-52e0d7201cfe</guid><dc:creator>nordicator_prim3</dc:creator><description>&lt;p&gt;As long as leaving tickets open doesn&amp;#39;t hurt your metrics or something like that. Otherwise that would be great, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long execution time for statvfs() filesystem function.</title><link>https://devzone.nordicsemi.com/thread/477325?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 13:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:950bdf04-c01f-441a-ac34-cb4128cbb003</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I did a quick search through the DevZone history and this is not an issue that&amp;#39;s been reported here before, but I can leave the case open if someone in the community has had the same issue.&lt;/p&gt;
&lt;p&gt;A potential reason as to why it takes longer the first time is because the backend has to check the full FS the first time around and indeed caching the data somewhere for subsequent calls.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>