28

if press h inside htop for quick help:

CPU

Blue      : Low-priority threads
Green     : Normal priority threads
Red       : Kernel threads
Turquoise : Virtualization threads

but yellow?

IMAGE: See htop result

5
  • ServerFault dupe: What exactly do the colors in htop status bars mean?
    – DavidPostill
    Commented Apr 7, 2016 at 10:30
  • This depends on the htop colour theme in use (default) and the terminal color scheme.
    – DavidPostill
    Commented Apr 7, 2016 at 10:34
  • 3
    In fairness the 'dupe' doesn't have any top level answer that addresses the 'yellow' for CPU issue. You have to dig into the comments to get the answer below. Commented Nov 19, 2017 at 3:55
  • 2
    How can we remove the "dupe" flag? That other question doesn't mention yellow cpu. Commented Dec 14, 2018 at 7:11
  • For me this IOwait was caused from an AWS T instance running out of CPU credit but can also be caused from EBS/Disk being too slow or running out of credit too.
    – mRyan
    Commented Dec 6, 2022 at 11:57

2 Answers 2

18

In my case, yellow means that the CPU time is spent on virtualization (for VDS) and CPU is lost. Change your hosting provider.

1
  • 7
    That's called "steal" time. It's CPU time that is unavailable to your instance due to other people making heavy use of the CPU on the same physical machine. Upon request, a decent VPS provider may move your instance to a host with less CPU contention; I know mine (Linode) would.
    – bwDraco
    Commented Apr 11, 2016 at 4:31
6

Making an educated guess: you've got htop's detailed CPU time display on. Under the Black Night colorscheme, yellow is io-wait. Which makes sense for a database server.

1
  • 1
    Yes, my VPS provider had bad SSD or something else. I've changed him. Yellow meant io-wait, you are correct. Commented Sep 4, 2019 at 15:10

Not the answer you're looking for? Browse other questions tagged .