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.

Server Unresponsive High CPU on GUI but not on HTOP?

Featured Replies

My server is not responding in any services, SMB or HTTPS, dashboard says CPU is 100% on all cores, however HTOP shows a different picture?

Any ideas?

image.thumb.png.cde9cf10a34f8f6902cf85a09a86e8a0.png

Solved by ThanasisPolitis

  • Community Expert

Dashboard graph includes i/o wait.

  • Author
2 minutes ago, JorgeB said:

Dashboard graph includes i/o wait.

Thank you for the reply!

It seems that my cache drives have SMART errors and I can see that in the logs too...

 

I/O error, dev loop2, sector 27962672 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2

 BTRFS error (device loop2: state EA): bdev /dev/loop2 errs: wr 20, rd 1, flush 1, corrupt 1, gen 0

  • Community Expert

There are ATA errors with both cache devices, and one of them had previous write errors, run a correcting scrub and check/replace cables to rule that out, but strange that both are having errors at the same time, see if they share something like a power splitter.

  • Author

Thank you for the help!

Scrub completed, no errors found...

 

 

UUID: 5815d461-6c5e-4322-852c-c860344b7dd0

Scrub started: Thu Aug 31 13:41:51 2023

Status: finished

Duration: 0:16:43

Total to scrub: 273.53GiB

Rate: 278.98MiB/s

Error summary: no errors found

 

Both cache HDDs where bought brand new in March 2023...

SMART errors started to show up a week or so ago...

 

Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE

197 Current_Pending_Sector  -O--CK   100   100   050    -    8

 

Edit: 

HDD Power is direct to PSU (no splitters)

SATA data cables are look visually OK and they are plugged in fully on both MB and HDD.

Edited by ThanasisPolitis

  • Community Expert

Run an extended SMART test on cache1, the one with pending sectors.

  • Author

Both of the cache SSDs are 512GB SPCC Solid State Disks.

I have run a command to check what's waiting for disk IO.

 

watch -n 1 "(ps aux | awk '\$8 ~ /D/ { print \$0 }')"

 

image.thumb.png.ac8f79e4978297997fdba2df589138a9.png

Edited by ThanasisPolitis

  • Community Expert

SMART test passed so it's OK for now, try rebooting to see if it helps with the wait.

  • Author
  • Solution

Sorry for the late reply, been quite busy...

So I have rebooted the server, still no go, cache seems to be bottlenecking the CPU.

Decided to convert the cache from BTRFS mirror to ZFS mirror and the performance difference is astonishing!

CPU is averaging 3% with 32 docker containers running! 

Before, Plex plyers on the local network would freeze at least 5 times when watching a movie -- in direct stream, not transcoded, and now, it is smooth as butter!

 

Will keep an eye on it but it seems that BTRFS was putting high stress in IOPS and it was bottlenecking the CPU... 

 

Thank you very much for all your help and support with this!

  • 2 months later...
On 9/4/2023 at 10:29 PM, ThanasisPolitis said:

Sorry for the late reply, been quite busy...

So I have rebooted the server, still no go, cache seems to be bottlenecking the CPU.

Decided to convert the cache from BTRFS mirror to ZFS mirror and the performance difference is astonishing!

CPU is averaging 3% with 32 docker containers running! 

Before, Plex plyers on the local network would freeze at least 5 times when watching a movie -- in direct stream, not transcoded, and now, it is smooth as butter!

 

Will keep an eye on it but it seems that BTRFS was putting high stress in IOPS and it was bottlenecking the CPU... 

 

Thank you very much for all your help and support with this!

Been having the same issue lately and was wondering how to convert my btrfs cache drive to zfs file system to see if it solve my issue, would you have any guide on how to and is there any impact doing this on dockers / vm's?

Thank you for your help

  • Author
2 minutes ago, deblex said:

Been having the same issue lately and was wondering how to convert my btrfs cache drive to zfs file system to see if it solve my issue, would you have any guide on how to and is there any impact doing this on dockers / vm's?

Thank you for your help

Yes, my friend, this is what I had to do to get over that issue.

It seems that it did work (partially) but at the end, I got some 2nd hand Data Centre grade Intel SSDs which now host my Docker, VM and System shares and I keep the cache just for... well, cache. ;)

 

You can convert the current cache from BTRFS to ZFS without losing anything, however, you have to do some file moves to the array and back to cache once it is on zfs.

This guide from  helped me massively.

 

https://www.youtube.com/watch?v=vXF8au5o9Tw

 

Regards,

Thanasis

So you could format a BTRFS to ZFS even that the array is a BTRFS? I use my cache drives for my appdata and downloads. But im having highg IOwait. But i use the mover to move from cache to array but can you mix this? Thanks!

  • Community Expert
5 minutes ago, DanielPT said:

So you could format a BTRFS to ZFS even that the array is a BTRFS?

You can.

5 hours ago, JorgeB said:

You can.

Thanks :) Do you think it would help me with my high IOwait? :)

  • Community Expert

It does for some users, can't say if it's going to help you.

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.