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.

100% CPU

Featured Replies

Hello, I'm having a problem with my unraid, it's at 100% cpu, however, when I do an htop or docker start, it uses very few resources, How can I find the cause of the problem? Because I have to restart my server every 3-4 days

Capture d'écran 2025-01-14 141959.png

Capture d'écran 2025-01-14 143323.png

Capture d'écran 2025-01-14 143423.png

Solved by Veah

  • Community Expert
  • Solution

Have you tried to disable docker?  If it goes back to normal, it's one of your containers.

  • Community Expert
20 minutes ago, Veah said:

Have you tried to disable docker?

You could also try booting is SAFE mode to see if a plugin is causing it.

 

Unrelated, but your cache pool has 2 different sized drives in btrfs raid1. The total capacity will be the size of the smaller of the 2.

  • Author

I just cut off the dockers, indeed, my CPU is down well. So how do I know which container is causing this? Because despite my orders, I have no trace. And the diagnosis I sent doesn't show anything?

  • Community Expert
1 minute ago, JD84 said:

So how do I know which container is causing this?

Try running them one at a time.

  • Author

Here is a screenshot after the docker reboot. Now you will have a solution to diagnose which docker caused this?

Capture d'écran 2025-01-14 154701.png

  • Community Expert
1 minute ago, JD84 said:

which docker caused this?

Not clear whether any docker caused it.

  • Author
5 minutes ago, trurl said:

Il n’est pas clair si un docker l’a causé.

can i schedule a re-recording every day of docker? like that i would have more worries 😂

Edited by JD84

  • Author

Having 2 cache disks allows me to secure my docker.io instance because it is on the cache, so as not to lose the configurations. Do you confirm this? Is this done by default in RAID 1? @trurl

  • Community Expert

The docker templates are on the flash drive. You should always keep a current backup of flash.

 

It isn't necessary to have a backup of docker.img since its contents are easily recreated from the templates.

 

More important to have a backup of appdata, whether on a redundant pool or not.

 

btrfs raid1 is a redundant pool. My point was that the total capacity of btrfs raid1 when different sized disks are used is equal to the smaller of the disks. So your cache pool can only hold 256G (minus some overhead). Very important that you don't fill this up or it may corrupt.

 

Now that you have made me look more closely, I see that your appdata, domains, and system pools have files on the array.

 

https://docs.unraid.net/unraid-os/manual/shares/user-shares/#default-shares

 

Ideally, these shares would have all files on a pool such as cache, with no files on the array. This will improve Docker/VM performance, and allow array disks to spin down since these files are always open.

 

These shares should be Primary:cache, Secondary:array, Mover Action:array->cache.

 

Nothing can move open files so you have to disable Docker and VM Manager in Settings before running mover.

  • Author

Its ok @trurl

 

Capture d'écran 2025-01-14 165627.png

  • Community Expert

Your screenshot shows those shares configured to be moved from cache to the array. What I said was to move them from the array to cache.

3 hours ago, trurl said:

Ideally, these shares would have all files on a pool such as cache, with no files on the array. This will improve Docker/VM performance, and allow array disks to spin down since these files are always open.

 

Also, that screenshot only shows how things are configured currently, where new files will be written, and how mover will (try) to move files. They won't necessarily move anything.

3 hours ago, trurl said:

Nothing can move open files so you have to disable Docker and VM Manager in Settings before running mover.

 

You can see how much of each disk or pool is used by each user share by clicking Compute... (or your language equivalent) for each share.

  • 1 month later...
On 1/14/2025 at 2:48 PM, JD84 said:

Hello, I'm having a problem with my unraid, it's at 100% cpu, however, when I do an htop or docker start, it uses very few resources, How can I find the cause of the problem? Because I have to restart my server every 3-4 days

 

Capture d'écran 2025-01-14 143323.png

 

Do You have "detailed CPU time" enabled in htop?
it is under F2 setup\display options

 

in my case it was due to Disk IO Wait
 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.