<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Long running du process keeps my backup disk spinning]]></title><description><![CDATA[<p dir="auto">I noticed that my backup disk (external USB, my last non-SSD drive) keeps spinning all the time.<br />
Running <code>fatrace -c -t</code> on the drive, I saw a <code>du</code> process running this morning, probably for determining size in the System Info tab?</p>
<pre><code>05:35:43.891373 du(902292): O   /media/WD4TB/CloudronBackup/2024-09-23-220001-268/app_###_v2.17.2/data/plugins.local/af_readability/vendor/fivefilters/readability.php/test/test-pages/aclu
05:35:43.904784 du(902292): R   /media/WD4TB/CloudronBackup/2024-09-23-220001-268/app_###_v2.17.2/data/plugins.local/af_readability/vendor/fivefilters/readability.php/test/test-pages/aclu
05:35:43.905247 du(902292): C   /media/WD4TB/CloudronBackup/2024-09-23-220001-268/app_###_v2.17.2/data/plugins.local/af_readability/vendor/fivefilters/readability.php/test/test-pages/aclu
05:35:43.905385 du(902292): O   /media/WD4TB/CloudronBackup/2024-09-23-220001-268/app_###_v2.17.2/data/plugins.local/af_readability/vendor/fivefilters/readability.php/test/test-pages/herald-sun-1
</code></pre>
<p dir="auto">Can I exclude this drive somehow? Could we just use <code>df</code> as it’s not accessing each folder and file?</p>
]]></description><link>https://forum.cloudron.io/topic/12547/long-running-du-process-keeps-my-backup-disk-spinning</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 13:30:57 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12547.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Sep 2024 16:46:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 13:00:29 GMT]]></title><description><![CDATA[<p dir="auto">Yeah, I guessed the same after reading the <a href="https://wiki.debianforum.de/Hdparm" target="_blank" rel="noopener noreferrer nofollow ugc">debianforum wiki</a> <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=21ee5037fec" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Results after running it a couple of times:</p>
<pre><code>sudo hdparm -t /dev/sdb1

/dev/sdb1:
 Timing buffered disk reads: 192 MB in  3.00 seconds =  63.92 MB/sec
 Timing buffered disk reads: 200 MB in  3.00 seconds =  66.58 MB/sec
 Timing buffered disk reads: 224 MB in  3.01 seconds =  74.44 MB/sec
 Timing buffered disk reads: 236 MB in  3.01 seconds =  78.31 MB/sec
 Timing buffered disk reads: 248 MB in  3.01 seconds =  82.33 MB/sec
 Timing buffered disk reads: 234 MB in  3.01 seconds =  77.69 MB/sec 
</code></pre>
]]></description><link>https://forum.cloudron.io/post/94921</link><guid isPermaLink="true">https://forum.cloudron.io/post/94921</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Mon, 30 Sep 2024 13:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 12:57:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> I guess it needs the device name /dev/xx</p>
]]></description><link>https://forum.cloudron.io/post/94920</link><guid isPermaLink="true">https://forum.cloudron.io/post/94920</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 30 Sep 2024 12:57:00 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 12:13:47 GMT]]></title><description><![CDATA[<pre><code>hdparm -t /media/WD4TB/

/media/WD4TB/:
 Timing buffered disk reads: read() failed: Is a directory
BLKFLSBUF failed: Inappropriate ioctl for device
</code></pre>
]]></description><link>https://forum.cloudron.io/post/94919</link><guid isPermaLink="true">https://forum.cloudron.io/post/94919</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Mon, 30 Sep 2024 12:13:47 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 12:11:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> sorry, updated the post. I misread your output</p>
]]></description><link>https://forum.cloudron.io/post/94918</link><guid isPermaLink="true">https://forum.cloudron.io/post/94918</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 30 Sep 2024 12:11:42 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 12:10:49 GMT]]></title><description><![CDATA[<p dir="auto">Cool, thank you!</p>
]]></description><link>https://forum.cloudron.io/post/94917</link><guid isPermaLink="true">https://forum.cloudron.io/post/94917</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Mon, 30 Sep 2024 12:10:49 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 12:11:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> nice, thank you.</p>
<p dir="auto"><s>I will put some code to skip du if more than 150M inodes (arbitrary) and HDD.</s> actually, in your case only 6M inodes are used! That's a slow disk. Maybe we should base this on read speed instead.</p>
<p dir="auto">How about hdparm -t /media/WD4TB ?</p>
]]></description><link>https://forum.cloudron.io/post/94914</link><guid isPermaLink="true">https://forum.cloudron.io/post/94914</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 30 Sep 2024 12:11:28 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 11:44:09 GMT]]></title><description><![CDATA[<p dir="auto">Here we go:</p>
<pre><code>df -i /media/WD4TB/CloudronBackup/
Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/sdb1        233M  6,0M  227M    3% /media/WD4TB
</code></pre>
<p dir="auto">and</p>
<pre><code>lsblk -d -o name,rota
NAME    ROTA
loop0      0
loop1      0
loop2      0
loop3      0
loop4      0
loop5      0
loop6      0
loop7      0
loop8      0
loop9      0
loop10     0
loop11     0
sda        0
sdb        1
nvme0n1    0
</code></pre>
]]></description><link>https://forum.cloudron.io/post/94911</link><guid isPermaLink="true">https://forum.cloudron.io/post/94911</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Mon, 30 Sep 2024 11:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Mon, 30 Sep 2024 10:53:35 GMT]]></title><description><![CDATA[<p dir="auto">Maybe we can skip du for non-ssd devices with a high inode count ? <a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> can you get the output of <code>df -i /backup-path</code> ? Also, I think <code>lsblk -d -o name,rota</code> should display 1 for your device (indicating hdd)</p>
]]></description><link>https://forum.cloudron.io/post/94906</link><guid isPermaLink="true">https://forum.cloudron.io/post/94906</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 30 Sep 2024 10:53:35 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Sat, 28 Sep 2024 16:39:45 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the info. However, as this drive contains an rsynced backup, there are millions of small files causing it to run forever…</p>
<p dir="auto">Maybe block du something like check for a <code>NO_INDEX</code> file in the root of the drive or something like that?<br />
Or use <code>duc</code> or <code>ncdu</code> as faster alternatives?</p>
]]></description><link>https://forum.cloudron.io/post/94849</link><guid isPermaLink="true">https://forum.cloudron.io/post/94849</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Sat, 28 Sep 2024 16:39:45 GMT</pubDate></item><item><title><![CDATA[Reply to Long running du process keeps my backup disk spinning on Sat, 28 Sep 2024 16:05:11 GMT]]></title><description><![CDATA[<p dir="auto">Currently there is no way to exclude drives from the stat gathering. We do run <code>du</code> to calculate the size each app and volume takes, this is not possible with <code>df</code>, however this only happens once a day <a href="https://git.cloudron.io/cloudron/box/-/blob/master/src/cron.js?ref_type=heads#L115" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/box/-/blob/master/src/cron.js?ref_type=heads#L115</a> so not sure how long a <code>du</code> for all things on that disk takes. Or if other apps with data on it read/write to it on their own schedules.</p>
]]></description><link>https://forum.cloudron.io/post/94842</link><guid isPermaLink="true">https://forum.cloudron.io/post/94842</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Sat, 28 Sep 2024 16:05:11 GMT</pubDate></item></channel></rss>