Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2509

General Questions • Continuous SWAP Increase and OOM Killer Triggered Despite Available RAM on Debian Machine

$
0
0
Hello Debian Community,
I am facing an issue with my Debian machine where the SWAP usage increases continuously, leading to the Out Of Memory (OOM) killer being triggered, even though the RAM is not fully utilized. I need assistance to diagnose and resolve this problem.

System Details:
  • OS Version: Debian 10 (Buster)
  • Kernel Version: Linux DEB-NUC11iGEN 5.10.0-0.deb10.16-amd64 #1 SMP Debian 5.10.127-2~bpo10+1 (2022-07-28) x86_64 GNU/Linux
  • Hardware Specs: NUC Intel 11th Gen
Issue Description:
I have a project running on this machine, and the SWAP usage keeps increasing over time. Eventually, this triggers the OOM killer, which kills a process, and then SWAP usage decreases. Here is a snippet from the syslog when the OOM killer is triggered:

Code:

2023-10-13T19:03:35.014536+09:00 <err> kernel: [410403.310854] Out of memory: Killed process 17101 (python3) total-vm:13641484kB, anon-rss:10787324kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:24652kB oom_score_adj:0
I have attached the swap usage graph and RAM usage graph for the time when the issue occurred for your reference.

Symptoms:
  • SWAP Usage: SWAP usage increases steadily over time (Total available swap: 4 GB).
  • RAM Usage: RAM usage is around 80-85% and does not reach full capacity (Total available RAM: 16 GB).
  • System Performance: The system slows down as SWAP usage increases, eventually leading to the OOM killer being triggered.
Swappiness Configuration:
  • Swappiness value: 10
OOM Configuration:
  • vm.overcommit_memory: 1
  • vm.oom_killer_allocating_task: 0
  • vm.overcommit_ratio: 50
Questions:
  • Why is my system using swap space even though there is free RAM available?
  • Is there any per-process limit on RAM? If so, where should I check it and how can I adjust it?
  • What can I do to diagnose the cause of this issue further?
  • Are there any configurations or tweaks I can apply to reduce swap usage and make better use of the available RAM?
  • Any insights or suggestions to resolve this issue would be greatly appreciated.
If any additional information is needed to diagnose this issue, please let me know and I will provide it.
Thank you in advance!

Best regards,
Rutuja Gurav
Screenshot from 2024-06-13 13-37-27.jpg

stats-swap_usage.png

Statistics: Posted by Rutuja — 2024-06-13 08:14 — Replies 3 — Views 49



Viewing all articles
Browse latest Browse all 2509

Trending Articles