Questions tagged [oom]

16 questions
76
votes
1 answer

prevent system freeze/unresponsiveness due to swapping run away memory usage

If a process demands a lot of memory, the system moves all other process to the swap file. Including it seems, necessary processes like the X11 server or the terminal. So if a process keeps allocating without limit, everything becomes unresponsive,…
BeniBela
  • 1,393
6
votes
1 answer

Escape the death of the OOM killer in Linux

Doing a bit of research I found it it is possible to tune or even make certain processes immune against the OOM killer by poking a value into /proc/pid/oom_adj I do of course need to find pid for my process using pidof or pgrep or something like…
Waxhead
  • 1,300
4
votes
2 answers

How to find out exactly which process was killed by OOM killer?

OOM killer just killed some process. I can know about it when the value of grep oom_kill /proc/vmstat increases. How would I know which process exactly was killed (name, pid, owner and so on) and when exactly (timestamp)?
AntonioK
  • 472
4
votes
2 answers

Linux without swap still starts thrashing

Debian 9.4, Linux 4.9 I sometimes compile something that hardly fits in the RAM, or a rouge process suddenly starts eating memory beyond what's available. When the process goes past the available RAM, Linux starts thrashing the disk even though I…
3
votes
1 answer

gentoo - Disable parallel build for llvm

I have Gentoo installed on computer with relatively small amount of RAM (1 GB). When I install llvm (emerge -a llvm), the computer always goes out of memory. All 4 cc1plus processes are using about 25 % of RAM when the system is unusable. I think…
jiwopene
  • 360
2
votes
2 answers

renice-like tool for non-root users to increase OOM adjust?

Is there anything like renice for OOM adjust? That is, something that would allow a non-root user to increase (but not decrease) the OOM score adjust of processes they own?
2
votes
1 answer

OOM killer despite lots of free memory on PAE kernel

We have an application server which for legacy reasons still runs on 32bit kernel with PAE (Ubuntu 12.04 LTS). The server has 24GB of RAM, as seen in the output of free: $> free -lmt total used free shared buffers …
Stefan Seidel
  • 10,855
1
vote
0 answers

Ubuntu automatically sends SIGTERM to the running processes

I'm using foreman (ruby gem) to start 10 worker processes at once. This makes the system send SIGTERM to the main foreman process. Although, when I try to run 9 worker process, everything works fine. I don't think OOM killer is acting up here as…
1
vote
0 answers

Why does Debian crashes with OOM

I recently upgraded my server from Debian squeeze i386 to wheezy amd64 by reinstalling and reconfigurating. Additionally I wanted to be able to start virtual guests, so I installed XEN, too. I got then the problem that from time to time OOM killer…
1
vote
1 answer

OOM killing my PHP FPM after upgrading LTS Ubuntu version

Yesterday I performed a release upgrade which included the upgrade from PHP 7.4 to 8.2. At first, I thought that the problem could come from the PHP version (because was php8.2-fpm the service that kept dying), so I reverted back to php7.4-fpm, but…
SirLouen
  • 105
1
vote
2 answers

How can I limit the amount of memory used by dd?

I am using dd to transfer a large kernel core file (4GB ~ 12GB) in a crash kernel that has a small amount of memory available (~400MB). The problem is that dd may crash with OOM panic since it just dumps a big chunk of the vmcore into the socket…
1
vote
0 answers

Any way to get application level notice that Linux OOM killer is about to kill?

Is there any way for a Linux application to be notified that the OOM killer is about to kill a process, or has killed it? System is Ubuntu 14.04 ARM v7, 512MB, 3.18.5 kernel.
SeanLabs
  • 175
  • 1
  • 1
  • 8
0
votes
1 answer

Disable swapping out of readonly pages etc. on linux?

Is there any way to prevent Linux from ever swapping out anything but rather go right to the OOM killer if it runs out of physical RAM? Background I have a Linux workstation that every once in a while runs out of RAM. When this happens, it becomes…
BCS
  • 773
0
votes
0 answers

which misconfiguration causes system resets when tmpfs reaches its limits?

On an embedded system, there are 2 tmpfs mounts. 1GB mounted to /tmp and another 1GB mounted to /run, total RAM is 8GB. No swap is used. If one of those reaches its limits, system resets itself. i.e. both of the following verification causes a…
0
votes
1 answer

Powershell Invoke-WebRequest with Method Head allocate too much RAM

Problem found on server with Powershell v 4.0 (server with Powershell 5.1 they do not seem affected by the same problem) This a strange behavior of Invoke-WebRequest command. Take this example: For some reason, I need to know the file size before…
1
2