SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / server / Questions / 180711
Accepted
tobym
tobym
Asked: 2010-09-14 12:22:43 +0800 CST2010-09-14 12:22:43 +0800 CST 2010-09-14 12:22:43 +0800 CST

What exactly do the colors in htop status bars mean?

  • 772

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

linux monitoring performance-monitoring top
  • 3 3 Answers
  • 291477 Views

3 Answers

  • Voted
  1. Best Answer
    sysadmin1138
    2010-09-14T12:50:46+08:002010-09-14T12:50:46+08:00

    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.

    • 643
  2. jjmontes
    2012-11-16T08:38:00+08:002012-11-16T08:38:00+08:00

    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
    • Grey: Free (unused)

    Note: Info obtained from htop source code at https://github.com/hishamhm/htop/blob/master/CPUMeter.c .

    • 201
  3. Roel Van de Paar
    2020-11-06T21:00:57+08:002020-11-06T21:00:57+08:00

    There are several different colors for each of the bars, except the Swap bar. Here are the color keys used inside of htop:

    enter image description here

    • 4

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    How do you restart php-fpm?

    • 18 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Resolve host name from IP address

    • 8 Answers
  • Marko Smith

    How can I sort du -h output by size

    • 30 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    binaryorganic How do I tell Git for Windows where to find my private RSA key? 2010-10-26 08:45:39 +0800 CST
  • Martin Hope
    tobym What exactly do the colors in htop status bars mean? 2010-09-14 12:22:43 +0800 CST
  • Martin Hope
    MikeN In Nginx, how can I rewrite all http requests to https while maintaining sub-domain? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 What is the difference between double and single square brackets in bash? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt How does IPv4 Subnetting Work? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve