Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
nice server m8. – Housemd Jul 5 at 18:00
up vote 231 down vote accepted

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


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


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

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

share|improve this answer
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
@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
@EtiennePerot you are right. There are some more colors. See my answer ;). – jjmontes Nov 16 '12 at 9:26
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
Yes, it's a good thing. See 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 .

share|improve this answer
press F1 for help. – tgies Mar 20 '13 at 21:53
@tgies - the help page contains something different to this. – UpTheCreek Dec 8 '15 at 12:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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