There is no single normal amount of RAM or swap for Linux: usage depends on the distribution, desktop, running programs, and workload. Some swap use—or almost no free RAM—can be perfectly normal; sustained memory pressure, active swapping, and sluggish performance matter more than a particular percentage.
What normal RAM usage looks like
A Linux system uses memory for the kernel, desktop environment, background services, and applications. As a rough illustration, a minimal system may use well under 1 GB after startup, while a typical desktop installation might use around 1.5–4 GB before you open demanding applications. Those are broad examples, not targets: services, desktop effects, browser tabs, and distribution defaults can move the figures substantially.
Workload changes the picture quickly. A browser with many tabs, a video call, a large photo editor, a virtual machine, or a software build can use several gigabytes. If your computer has 8 GB of RAM, that workload may leave little immediately unused memory; on a 32 GB workstation, the same applications may occupy a much smaller fraction. A high percentage of RAM in use is not automatically a fault.
Swap has no equally useful “normal percentage.” A machine may show zero swap in use for weeks, or have some pages in swap even while the desktop feels responsive. Linux can move less recently used memory pages out of RAM to make room for other work. The amount used alone does not tell you whether the system is struggling.
Why Linux uses apparently spare memory
Unused RAM provides little benefit, so Linux uses available memory for caches. The kernel can cache file contents and filesystem data, which may speed up later reads. Much of this cached memory can be reclaimed when programs need RAM. This is why a low number in a “free” column can be normal, and why looking only at free RAM can make a healthy system look full.
In the output of free -h, pay particular attention to the available estimate. It represents memory the system estimates it can make available to applications without swapping heavily; it includes reclaimable cache. The buff/cache column is not all permanently occupied by applications. Exact accounting can differ among tools and Linux versions, so compare like with like rather than relying on one isolated number.
Memory also includes more than visible applications: kernel data, shared libraries, graphics allocations, and services all contribute. Some memory is shared between processes, so adding each process’s reported total can overstate actual physical use. A system’s total RAM is not expected to divide neatly into “apps” and “unused.”
What swap does
Swap is storage space that Linux can use to hold memory pages that are not currently needed in RAM. It can be a disk partition or a swap file. Moving pages to storage is much slower than accessing RAM, but swap can provide breathing room during a temporary peak and reduce the chance that the kernel has to terminate a process for lack of memory.
Swap is not a substitute for RAM at the same speed. If a workload repeatedly needs pages that have been moved to slow storage, the system must keep moving data back and forth. This can cause long pauses and heavy disk activity, a condition often called thrashing. A swap figure that is nonzero does not prove thrashing: pages may have been moved earlier and not needed again.
Some Linux systems use zram, which compresses pages in RAM and presents the compressed area as swap. It can reduce pressure on physical memory without writing those pages to a disk, though compression uses some CPU time and still has limits. A system may also use zram alongside disk-backed swap, so check the configured devices before assuming that “swap used” means disk activity.
Examples by workload and RAM size
Consider a laptop with 8 GB of RAM. After startup, the desktop and services might use a few gigabytes, and the rest may serve as cache or be available for applications. With a browser, a video meeting, and office software open, memory use could approach the system’s practical limit. A small amount of swap in that situation is not surprising; frequent pauses while switching tabs are a more meaningful warning.
On a 16 GB computer used for ordinary browsing and office work, the system may have ample headroom most of the time, but a large number of browser tabs or an image-editing job can still increase use sharply. On a development workstation, compiling a large project or running containers can consume RAM in bursts. A virtual machine, in particular, may reserve or actively use a substantial amount, depending on its settings and workload.
These examples are not pass/fail thresholds. Two computers with the same RAM can report different usage because they run different services, applications, and caches. A better question is whether memory use is rising unexpectedly, whether useful work remains responsive, and whether the system is under ongoing memory pressure.
How to check RAM and swap
Start with free -h in a terminal. Read the total, available, and swap lines, and note the values while the machine is idle and again during the workload that concerns you. A single snapshot cannot show whether swap is actively being used or whether memory is changing rapidly.
For a live view, use a system monitor such as GNOME System Monitor, KDE System Monitor, or htop. These show processes and changing memory use, though process-level figures are not always additive because memory can be shared. To see configured swap areas, run swapon --show; this can help identify a swap file, partition, or zram device.
For a short time series, run vmstat 1. Its si and so columns show swap-in and swap-out activity. Repeated activity during a heavy workload is more informative than a static swap-used total, but interpret it alongside responsiveness and disk activity. On systems that expose Linux pressure-stall information, cat /proc/pressure/memory can show whether tasks are losing time waiting for memory resources. Tools such as sar -W 1 may also help if the relevant system monitoring package is installed.
When high use is a problem
Investigate if available memory stays very low while your usual workload is running, the machine becomes unresponsive, applications repeatedly pause, or the system kills processes. Look for a workload change or a process that keeps growing. A browser tab, a virtual machine, a container, or a program with a memory leak can account for a sudden increase.
Check trends rather than reacting to one number. Compare the system when idle with its state during the slowdown, and inspect the largest processes in a monitor. If swap is growing while the system is also continually swapping in and out and slowing down, close or reduce memory-heavy work first. Rebooting may temporarily clear a leak, but it does not identify its cause.
When RAM is exhausted, Linux may invoke the out-of-memory mechanism and terminate a process to recover. This is different from merely having a high RAM percentage or some swap in use. If OOM events recur during normal work, reducing the workload, finding the process responsible, or adding RAM may be appropriate.
Choosing swap and changing settings
There is no universal swap-size formula for every Linux computer. The right setup depends on available RAM, workload, storage, and whether you want suspend-to-disk hibernation. Hibernation requirements are configuration-dependent: the system needs enough suitable swap space to save the memory image, and having swap alone does not guarantee hibernation will work. Check your distribution’s documentation and actual setup before changing partitions or swap files.
For a general-purpose computer, leaving the distribution’s default swap configuration in place is usually a sensible starting point. Distributions may configure a swap file, a partition, zram, or a combination. Before changing anything, check swapon --show and confirm whether the machine uses hibernation. Do not disable swap simply because it is being used: doing so can make memory exhaustion more likely.
The kernel’s swappiness setting influences how readily it reclaims anonymous memory relative to file-backed cache; it is not a percentage of RAM to fill with swap, nor a direct measure of swap usage. Defaults and recommended tuning vary with kernel and workload. Changing it without a measured reason may make performance worse, so first establish whether there is a real pressure or latency problem.
Frequently Asked Questions
Is 90% RAM usage normal on Linux?
It can be, especially if much of the difference is reclaimable cache or the computer is doing useful work. Check the available-memory estimate, system responsiveness, and whether pressure persists instead of treating 90% as a universal danger point.
Is it bad if Linux is using swap?
No. Some swap use can remain after a workload has passed and may not affect performance. It is more concerning when the system is actively swapping repeatedly and becomes slow or unresponsive.
Should swap usage be zero when my computer is idle?
Not necessarily. Linux may keep less recently used pages in swap even after RAM pressure eases. Zero is possible, but it is not a requirement for a healthy idle system.
How much swap should I have?
It depends on your workload and whether you need hibernation. Follow your distribution’s guidance and check the requirements for your specific hibernation configuration; there is no one size that suits every machine.
Does adding swap make a computer with too little RAM fast?
Usually not. Swap can help a system survive occasional peaks, but storage is much slower than RAM. If your normal workload causes sustained swapping and delays, reducing memory use or installing more RAM is a better solution when possible.
A practical rule of thumb
Judge Linux memory by headroom, pressure, and performance—not by how much RAM appears occupied or by a swap percentage alone. Use free -h for a quick overview, monitor activity during slowdowns, and treat sustained swap traffic or out-of-memory events as reasons to investigate. If the computer remains responsive and has reasonable available memory for its workload, a high-looking usage figure can simply mean Linux is putting its RAM to work.