By default, htop shows colored status bars for processors, memory, and swap. From left to right, the bars are colored green, blue, yellow, and red depending on some thresholds.

What does it mean when the Memory bar has a small level of green and blue, and almost all the remainder is yellow? The swap bar is empty. The color settings for htop are "default".

htop screenshot

up vote 403 down vote accepted

Hitting F1 or h will show you the key. But for reference, the default colors are:

CPU:

  • Blue = Low priority threads
  • Green = Normal priority threads
  • Red = Kernel threads

Memory:

  • Green = Used memory
  • Blue = Buffers
  • Yellow/Orange = Cache

There are a couple of different color-schemes available, you can see them through hitting F2.

  • 15
    What does orange mean in the CPU bars? Most of my CPU bars are filled with orange, but it doesn't say what it means in the key. – Etienne Perot May 13 '12 at 19:27
  • 1
    @nodakai Maybe that's not the case... I see scarce orange bars in my CPU meters too, beisdes blue, green and red. – jjmontes Nov 15 '12 at 15:55
  • 1
    @EtiennePerot you are right. There are some more colors. See my answer ;). – jjmontes Nov 16 '12 at 9:26
  • 1
    Is it good that a lot of RAM is used by OS caches? Does that make everything faster? The numbers say 1859/8192MB, I guess that excludes the OS cache. Including OS cache the bar is about 4/5 full. Good/bad? – Rudie Apr 5 '13 at 14:47
  • 7
    Yes, it's a good thing. See linuxatemyram.com for a good understanding. – GodsMadClown May 10 '13 at 19:08

I couldn't find this documented elsewhere. Looking into the code:

There are two modes for CPU metrics reporting: the default one, and a "detailed CPU time" which can be enabled from the Setup screen (Display Options / Detailed CPU time). All of them show the percentage of time spent in different processes:

Default mode

  • Blue: low priority processes (nice > 0)
  • Green: normal (user) processes
  • Red: kernel time (kernel, iowait, irqs...)
  • Orange: virt time (steal time + guest time)

Detailed mode

  • Blue: low priority threads (nice > 0)
  • Green: normal (user) processes
  • Red: system processes
  • Orange: IRQ time
  • Magenta: Soft IRQ time
  • Grey: IO Wait time
  • Cyan: Steal time
  • Cyan: Guest time

Memory meters are more straightforward:

  • Green: Used memory pages
  • Blue: Buffer pages
  • Orange: Cache pages

Note: Info obtained from htop source code at http://htop.svn.sourceforge.net/viewvc/htop/trunk/CPUMeter.c?revision=300&view=markup .

  • 23
    press F1 for help. – tgies Mar 20 '13 at 21:53
  • 5
    @tgies - the help page contains something different to this. – UpTheCreek Dec 8 '15 at 12:15
  • 1
    If you put the CPU bars into "detailed" mode then press F1 and this info shows properly. – joshperry Aug 10 '16 at 18:58
  • 8
    If, like me, you see this orange CPU-bars on an Amazon EC instance (aug 2016), most likely your CPU is throttled because your so called "CPU credits" are spent. – berkes Aug 18 '16 at 8:11
  • Wait so in your answer under 'memory meters' orange is for cache pages, in sysadmin1138's answer under the same it says yellow/orange is for cache pages. Does the code mention anything about the yellow? – projectdp Mar 26 '17 at 13:20

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.