Why is Linux using so much RAM when no applications are open?

0
1
Asked By MellowCedar47 On

I'm running Kubuntu 25.10 on a computer with 32 GiB of RAM. Even with no browser, music player, or other obvious applications open, `free -h` reports about 22 GiB used, only 8.2 GiB free, and 9.1 GiB available. Swap is also almost full: 475 MiB of a 511 MiB swap area is in use. When I open several browser tabs, the system nearly runs out of memory and starts stuttering. What is using the memory, and how can I diagnose or fix it?

4 Answers

Answered By NimbleQuartz52 On

For comparison, an idle desktop with roughly 32 GiB of RAM often uses only a few GiB for ordinary processes, although cache can make the used number look larger. If a process monitor shows no normal application using the missing memory, investigate kernel memory, graphics drivers, containers, or a possible memory leak. Increasing swap or configuring compressed swap such as zram can help with pressure, but it is not a substitute for finding a runaway process.

Answered By QuietLynx26 On

The `free` output is concerning mainly because the swap area is only about 512 MiB and is already almost full. Increase the swap size, then check whether the system is actively swapping. A larger swap area will not identify the original memory consumer, but it can reduce crashes and severe stuttering when RAM pressure occurs.

Answered By VividHarbor8 On

Use a process monitor such as `top`, `htop`, or `btop`, and sort by memory usage. The task manager may not be showing every process clearly. These tools should reveal which applications or services are consuming the RAM.

Answered By AmberPiano63 On

Remember that the `used` column includes memory used by the kernel and caches, so it is not always the amount that applications cannot reclaim. The more useful number here is `available`, which is only about 9 GiB. Check the top memory-consuming processes with `htop` or `btop`, and compare their total usage with the output from `free -h`.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.