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

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

$
0
0

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
Your RAM usage is about 80-85% that is leaving only 15-20% of RAM available. In those circumstances SWAP usage will start to rise. My recommendation is to do the following or a mix of these
1) Either increase RAM from 16GB to 32 GB or more.
2) Check apart from the Python program, which is getting killed due to memory usage, what all processes are there consuming memory. If you do not need a Desktop Environment and Window Manager boot the system only in console mode and execute the python program. If a Desktop environment is required and cannot be switched off then consider shifting to XFCe or IceWM or LXDE or something lighter. Shutdown all the unnecessary services like Telnet, Time, SSH, Mail, Web Server, NGNIX, etc which are not in use. I am assuming that Python program is main program that you are running on this system and because of which you are on an older Debian system.

Also look at what @panpan had mentioned.

Hope this helps.

Statistics: Posted by DebianFox — 2024-06-14 05:38 — Replies 3 — Views 49



Viewing all articles
Browse latest Browse all 3567

Trending Articles