How to compress or hide the processors at top of htop on large machines

htopmulti-core

I like to use htop to show me how the server is being used.

Unfortunately with modern servers, the machine might have 48 or even 120 cores. This means that
I can only see the first few lines of htop and never the second half of the htop display that
shows which processes are using the machine.

How can I hide all of the core-usage lines or even better aggregate them for some sort of statistic?

Best Answer

Open the setup screen using F2 or ShiftS. The first page of that screen is dedicated to configuring header meters, so you can remove "CPUs" and add "CPU average".

In recent htop versions, there also are "CPUs (1&2/4)" and "CPUs (3&4/4)" meters showing two cores per line, though this is more of use on 8–32 core systems.

To save two more lines, open the "Display options" page and turn off "Leave a margin around header".

Related Question