Sobes.tech
Junior

What important points and items can you see on the htop screen, and what do they mean?

sobes.tech AI

Answer from AI

  • Top area:

    • CPU load (percentage, per core or overall). Reflects how intensively the processor is used.
    • Memory usage (total, used, free, buffer/cache). Shows the state of RAM.
    • Swap usage (total, used, free). Displays the state of the swap file or partition.
    • Load average for 1, 5, and 15 minutes. The number of processes waiting or active.
  • Process list:

    • PID (Process ID): Unique identifier for each process.
    • USER: User under which the process is running.
    • PRI (Priority): Virtual priority of the process.
    • NI (Nice): Static priority of the process (from -20 to 19). Lower value means higher priority.
    • VIRT (Virtual Memory): Amount of virtual memory used by the process (including code, data, and libraries).
    • RES (Resident Memory): Amount of physical memory (RAM) actually used by the process.
    • SHR (Shared Memory): Amount of shared memory used by the process.
    • S (State): Current state of the process (R - Running, S - Sleeping, Z - Zombie, T - Stopped, etc.).
    • CPU%: CPU usage percentage by this process.
    • MEM%: Physical memory (RAM) usage percentage by this process.
    • TIME+: Total CPU time used by the process.
    • COMMAND: Command or path to the executable of the process.
  • Functional buttons (bottom):

    • F1 Help: Opens the built-in help for htop.
    • F2 Setup: Configures display and behavior of htop.
    • F3 Search: Search processes by command name.
    • F4 Filter: Filter process list by various criteria.
    • F5 Tree: Display processes as a tree (hierarchically).
    • F6 SortBy: Sort process list by selected column.
    • F7 Nice-: Decrease nice value (increase priority) for the selected process.
    • F8 Nice+: Increase nice value (decrease priority) for the selected process.
    • F9 Kill: Send a signal (e.g., SIGTERM, SIGKILL) to the selected process.
    • F10 Quit: Exit htop.

Understanding these elements helps diagnose system performance issues, identify resource-intensive processes, and manage their behavior.