Monitor Ubuntu performance with htop and btop
An Ubuntu machine can feel slow for several unrelated reasons: a busy processor, insufficient memory, a disk that cannot keep up, or a network service waiting on the connection. Using htop and btop to monitor Ubuntu performance turns a vague feeling of slowness into measurements of CPU time, memory pressure, storage throughput, and network traffic without changing the system.
Htop is a compact terminal interface with excellent process controls, while btop presents the same core data as a colourful dashboard of graphs. Both run on ordinary Ubuntu installations, work over SSH, and can reveal whether a freeze comes from sustained CPU load, swap activity, high disk use, or a process stuck waiting for input.
Install the tools and set expectations
Both programs are available from Ubuntu’s standard repositories on current desktop releases, so the quickest installation uses APT rather than a downloaded binary. Open Terminal with Ctrl+Alt+T and update the package lists before installing them together; this also makes sure any existing versions receive normal Ubuntu security updates.
sudo apt update
sudo apt install htop btop
If APT reports that btop is unavailable, the package may be missing from the enabled repositories on an older release. Enable the Universe repository with sudo add-apt-repository universe, refresh APT again, and retry the installation. On a minimal system, install software-properties-common first if that command is not present.
Start with htop or btop rather than immediately using sudo. Normal users can view most system-wide statistics and manage their own processes; root privileges are only needed for signals against processes owned by another account. Both programs use q to quit, and Ubuntu’s built-in top remains a useful fallback if neither package is available. Htop’s F2 setup screen can adjust update intervals, meter visibility, and sorting defaults when the default view feels crowded.
Read the system overview
Htop opens with one bar per logical CPU core. Across the top are load averages, running tasks, and a summary of memory and swap; the lower half lists processes. A load average of 1.0 does not always mean one core is fully occupied: Linux also counts tasks waiting for uninterruptible I/O, so a high value with little CPU use often points toward storage instead.
Btop replaces much of that text with boxed meters and scrolling graphs. Its CPU, memory, disks, and network areas make changes easy to spot, while a process panel supports selection and details without leaving the screen. Colour thresholds provide a quick warning, but they are guideposts rather than diagnoses, and very short spikes may simply reflect normal background work. Adjustable graph scales are useful when a burst is small but meaningful.
Begin by watching an idle system for about a minute, then repeat the same observation while the slowdown occurs. Comparing equivalent moments is more reliable than reacting to a single red bar. Fresh installations can also be checked against the UbuntuNext setup guides before assuming faulty hardware is responsible.
Track processors and memory
A CPU meter near 100% on one core means that core is fully occupied; 100% shown across every core means all processors are busy. Htop can display each core separately, while btop’s graph reveals whether load is constant or bursty. Because processes can be rescheduled constantly, a busy-looking display should be matched to the process list below it rather than interpreted alone. On a multi-core machine, one saturated core may still limit one application while the overall CPU total looks moderate.
Memory figures need similar context. Linux uses unused RAM for cache, so a low used total is not automatically a problem. The useful values are available memory, cache, and swap activity. If available memory stays low, swap changes continuously, and the desktop stutters, the machine is likely under memory pressure; a brief cache increase without swap activity is usually harmless.
Watch both tools across the same workload, such as opening a large project, compiling code, or playing a video. Htop offers sortable numeric columns, whereas btop makes trends visible through its graphs and meters. Keep the workload and observation period consistent, because results measured during startup are not comparable with results taken after applications have settled.
Find and manage demanding processes
The process table identifies what is consuming resources: PID, owner, command, thread count, and state are more useful than a memorable application name. In htop, F6 changes the sort column and F3 searches for a command. In btop, use the highlighted process and its details panel, with ? opening the available key bindings for the installed version.
Filtering narrows a crowded table. Htop’s F4 filter accepts text, and F5 displays a process tree when child processes matter; btop also provides filtering and detailed per-process views. A process in uninterruptible sleep, shown as D, is commonly waiting for disk I/O. Repeated D states alongside slow storage and low CPU activity deserve attention.
Termination should be deliberate. Select the process, use htop’s F9 menu or btop’s kill command, and send TERM first so the program can close files and save state. Use KILL only when the process ignores TERM; it cannot clean up. Confirm the PID and command, avoid system services and storage daemons, and do not kill a process merely because it is at the top of the list.
Diagnose disks, network and thermals
Storage trouble often appears as high disk utilisation, long request latency, or sustained I/O rather than high CPU. Enable I/O information in htop’s process view and compare it with btop’s disk panel. A sustained near-full disk meter paired with slow application responses usually means the device is serving more requests than it can complete. An Australian-market notebook bought through JB Hi-Fi may use a particular NVMe model, Wi-Fi chipset, or firmware revision, so driver and sleep behaviour should be verified under Ubuntu rather than inferred from the Windows experience.
Network graphs show traffic passing through the selected interface, not actual internet throughput. On a home NBN connection in Sydney or Melbourne, a burst during the evening may reflect household use or congestion around the local exchange; Wi-Fi interference, DNS delays, and retries can also create a slow connection while the graph still shows little transferred data. Test with a wired link or another device when possible.
Regional fixed-wireless, mobile broadband, and satellite links add another layer. A 4G or 5G plan can have a generous speed but a high data cap, while satellite may respond slowly despite advertised bandwidth. These distinctions matter when judging a stalled update: low throughput, high latency, and packet loss point in different directions, and btop’s graph alone cannot separate them.
Heat can reduce performance without creating an obvious queue. During an Australian summer, a compact desktop or notebook in Adelaide, Brisbane, or inland Melbourne may throttle a processor if vents are blocked or an elevated CPU load is sustained. Temperature sensors appear only when the hardware and kernel expose them; lm-sensors can help. Ubuntu Touch and other Android-derived systems use different power controls, a distinction covered in Android and Ubuntu coverage.
Run a repeatable performance check
A useful check follows the same sequence every time. Let the desktop settle, note the idle CPU, memory, swap, disk, and network levels, then trigger the suspected activity and record changes for the same duration. Keep btop or htop running on a second workspace, and capture a screenshot or short set of notes instead of relying on memory after the problem disappears.
Read patterns together. Sustained full-core CPU plus a high process percentage suggests compute load; low CPU with frequent D states and busy storage suggests I/O wait; shrinking available memory and active swapping suggests RAM pressure; traffic on the network graph without corresponding progress may implicate connectivity. One process can also be waiting for another service, so inspect dependencies before taking action.
Btop is the better glanceable choice for a live desktop, especially when explaining a problem to someone else. Htop remains valuable for exact keyboard-driven control, process filtering, trees, and signals. Neither tool changes performance by itself, and neither replaces checking application logs, systemd service status, or temperatures when the displayed metrics do not explain the behaviour.
For the machine under test, the immediate action is to open Terminal, run sudo apt update && sudo apt install htop btop, and capture one minute of btop readings while reproducing the slowdown.