Operations 3 min read

How to List the Top 10 CPU, Memory and Virtual Memory Processes on Linux

This guide shows Linux commands for quickly identifying the ten processes that consume the most CPU, memory, or virtual memory, explains the key ps fields, and provides alternative sorting options for system monitoring.

Liangxu Linux
Liangxu Linux
Liangxu Linux
How to List the Top 10 CPU, Memory and Virtual Memory Processes on Linux

Top CPU‑consuming processes

ps auxw | head -1; ps auxw | sort -rn -k3 | head -10

The first part prints the header line of ps auxw. The second part sorts the output by the third column (CPU % used) in descending order and shows the first ten entries.

Top memory‑consuming processes

ps auxw | head -1; ps auxw | sort -rn -k4 | head -10

Here the fourth column (memory % used) is used for sorting, yielding the ten processes that occupy the most RAM.

Top virtual‑memory‑consuming processes

ps auxw | head -1; ps auxw | sort -rn -k5 | head -10

The fifth column (VSZ – virtual memory size) is sorted to list the processes with the largest virtual memory footprint.

Alternative one‑line sorting commands

ps auxw --sort=rss
ps auxw --sort=%cpu

These commands directly ask ps to sort by resident set size (RSS) or CPU usage without piping to sort.

Important ps field meanings

%MEM : percentage of physical memory used by the process.

MAJFL : major page fault count.

VSZ : virtual memory size of the process (in kilobytes).

RSS : resident set size – the actual physical memory the process is using.

TTY : terminal associated with the process.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

OperationsLinuxMemory Usageprocess monitoringCPU usageps command
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.