Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Consistent CPU Spikes though Folder Caching

Featured Replies

Hello Guys & Girls!

I build by first Unraid Server a few Days ago and having quite alot of fun fiddeling around. All went fine for the last couple days but yesterday I configured some Times for Parity checks/Auto Plugin and Docker Update as well as Backups though "Backup/Restore Appdata" and "Auto Update Applications".

Today I woke up to oddly CPU spikes inside the Stats. Every 10 Seconds there is a Spike of 30-50%.  After a lot of fiddeling I found out that the Dynamix Folder Caching was to blame. I couldn't remeber that something like that appeared before but in my opinion I changed nothing that should affect the CPU in this ways. I didn't even change the settings for Folder Caching itself.

Now I'm quite desperate. A Screen on how my CPU Usage looks the second I turn on the Folder Caching is attached. In the beginning you can see the initial scan.  On the Second Screen you can see my Settings inside the Folder Caching App. Today I excluded some of my Shares but this helped little. only when I include just 1 or 2 the spikes apear smaller. The Update which arrived  today added quite a lot of additional Settings but the Problem persists. I found another Post with the same Problem here in the Forum with the Tag Solved

But sadly I cannot say why and how it was solved? It mentioned the Setting "Scan User Shares" in the post but this setting vanished in the new Version 2018.08.27a and was disabled from the beginning (as it is default).

Can somebody give me a tipp how to troubleshoot this Problem futher? The Spikes dissapear the second I dissable Folder Caching but I quite liked the feature.


Diagnostics are also attached. If any other Log-File helps just let me know.

My System:
Core i3-3240
8GB RAM
Asrock B75 Pro3-M with 6 Attached HDDS (5x 3TB 1x 6TB) and 2x Cache SSDs (1x 64 & 1x 120 GB)
Unraid 6.5.3
Dynamix Cache Directories 2018.08.27a
all Docker Container & VM's are stopped

Best Regards
Stroker

unraid-diagnostics-20180827-1938.zip

 

htop.png

unraid stats.png

folder cache settings.png

cpu usage.png

Edited by Stroker
adding System Data

An update to Dynamix Folder Caching was done, some time earlier today.

 

This update includes as well enhancements made by @Alex R. Berg and allow better cpu and resource handling. Give it a try and see if it improves your situation.

  • Author

Hey bonienl,

Yes the new Version 2018.08.27a  was released today but sadly this changed nothing on the cpu spike side.

All the Screens you can see are with Version 2018.08.27a  and with the Settings from the 3rd Screenshot

Edited by Stroker

I can't really explain the spikes you are seeing.

The new version allows to set a level depth, in case a folder structure is deeply nested, in this case it might help to limit the scan depth.

Do you have any folders with lots of files and/or levels which are included? Try to exclude them, and see if that makes a difference.

 

  • Author

Yes its possible that such directorys exist (Project Folders of Java or Android apps come here to mind for me) but nothing deeper than a NTFS Partition could handle. This Files and Directorys also existed before. Every Backup/Docker Folder or VM folder is already excluded.

 

 

If I try to set the "Use Adaptive depth" to "Fixed" and set a relativly low level like "7" (everything else is empty so default) then I see a constant Load of 30-60% on my CPU for minutes after minutes. Not even the Timeouts seem to work for me. If I read the settings right the longest would be " Scan timeout for a scan during disk-idle period (sec): " but the default says it is only maximal 150 sec.  At the Screenshot it ran for 5 Minutes straight.

910656901_depth7fixed.png.6f559f85bb7cbd45bbf811654e4f0278.png

 


If I just add my Video share which has a max depth of ~8-10 with all settings back to default then the spikes are still there...
I don't think that such a depth should be a problem in any way...  On the end of this CPU activity the Disks spun down so no activity on these for the whole time right after Caching activation.

 

1746076195_justvideo.png.d5dd98801187a3536098b7bb68027228.png

depth 7 array activity.png

 

 

 

 

Edit:

Sorry but I just noticed. Should this Thread not better be in the plugin Support part of the Forum? If yes could it get moved?  sorry for the mistake

Edited by Stroker
Question Move

  • Author

Does anyone have an idea was is causing this behaviour?

 

For now i have deactivated the Plugin but I quite liked the feature...

Best Regards

  • 1 month later...

Just experimenting, but I excluded appdata and CPU usage seemed to decline a lot, as appdata was the heaviest of the searches (due to plex folder structure, I assume)

It's not perfect, but along with the latest version, it seems to keep CPU usage down, and disk reads low.

  • Author

Thanks for the tipp but sadly I already exclude all no data folders. (Backups, tmp, appdata,vms,....) but sadly the problem persists... even with the new unraid versions....

How much files does your log say you have when running the Folder Caching? I'm just wondering if I have just that many files... but in total I have just ~10TB and the bulk of it would be videos...

  • 5 months later...

I know this is an old thread, but I just wanted to add that excluding the \appdata folder in Dynamix Cache Directories and setting the max level depth to 8 greatly reduced the CPU spiking behavior for me.

Edited by 3doubled

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.