Questions tagged [out-of-memory]
The out-of-memory tag has no usage guidance.
200
questions
1
vote
1
answer
67
views
Linux build with custom config using all RAM (8GB)?
I am trying to compile the mainline Linux kernel with a custom config. This one!
Running on a 64 bit system.
At the last step, when linking the Kernel, it fails because it goes OOM (error 137).
[...]
...
2
votes
1
answer
58
views
Receive a memory pressure event with cgroups v2 when no memory limit is set
With cgroups v1, it is possible to listen for events about memory pressure. According to the docs, one needs to
Create a new eventfd
Open memory.pressure_level for reading
Open cgroup.event_control ...
2
votes
1
answer
96
views
Linux uses 6.6Gi RAM for nothing
I'm trying to figure out why my Linux machine is so slow and I found this:
$ free --human
total used free shared buff/cache available
Mem: 7,3Gi 6,...
0
votes
0
answers
23
views
How to make all child processes of a service follow the same OOM score adjustment
I've installed BOINC on a Debian 11 machine which has plenty of idle CPU but little free memory. Sometimes the OOM killer steps in, and it invariably kills something other than the busy BOINC ...
0
votes
0
answers
47
views
Periodically print analysis for a long-running C++ program to detect memory leaks?
I have a C++ compiled program (an ELF binary) intended to run forever, similar to an HTTP server. I would like to use Valgrind to analyze the program for any memory leaks. However, Valgrind typically ...
0
votes
1
answer
140
views
Podman build fails with memory allocation error, and Docker cleanup failure
The podman build is failing with a Docker cleanup operation and memory allocation errors.
My simplified Containerfile is:
FROM docker.io/php:8.1-apache
RUN apt-get update
CMD ["...
0
votes
0
answers
105
views
Linux Kernel Memory Leak with Mediatek mt76x0u USB WiFi Chipset Related to skbuff_head_cache
I am running Linux 6.1 on a 32-bit ARM Microchip SAMA5D27 processor. The board has 256 MB of RAM. I am attaching a USB dongle to the board with the Mediatek mt76x0u chipset.
On bootup I use SystemD to ...
0
votes
1
answer
45
views
Can we use nand device for swap on embedded system?
Om my embedded system I want to use swapping . On my system we have Nand device only which I can use as swap . But I am not able to so since mkswap /dev/mtd8 returned error:
mkswap /dev/mtd8
Setting ...
0
votes
0
answers
46
views
"Out of Memory" after adding an array in Kernel
I'm trying to trace get_page_from_freelist().
I defined a pointer of integer and initialized it with kmalloc() in mm/init_mm.c, and added some system calls to control it. But after this, I rebooted my ...
0
votes
0
answers
258
views
Freeing memory before running command
Issue
When I launch PowerShell under Ubuntu in UserLAnd for Android, it oftentimes will result in the following error:
Failed to create CoreCLR, HRESULT: 0x8007000E
If I retry a few times, it ...
1
vote
1
answer
682
views
How to configure ClamAV on Debian 11? (Need sample clamd.conf and correct location)
Since upgrading from Debian 9 to Debian10/11 Clamscan now runs the system out of memory immediately - instead of previously completing all scans successfully.
But the /etc/clamav/clamd.conf file does ...
1
vote
1
answer
55
views
Preserve kernel and GUI from freezing
I would like to prioritize stability over performance. So I would like my processes to hang instead of my whole OS when I hit hardware limits
I would like to always let some resources for the kernel ...
9
votes
3
answers
995
views
Why do processes on Linux crash if they use a lot of memory, yet still less than the amount of swap space available?
I am using Linux 5.15 with Ubuntu 22.04.
I have a process that uses a lot of memory. It requires more memory than I have RAM in my machine. The first time that I ran it, it was killed by the OOM ...
1
vote
1
answer
266
views
OOMScoreAdjust in .service files is ignored?
We're struggling with mysql being killed by OOMKiller since upgrading from Debian 9 to Debian 11.
I see that several .service files have OOMScoreAdjust=### defined, but they don't seem to be honored, ...
0
votes
1
answer
96
views
system freezes due to low memory, process killer not really working
Is there a way to prevent freezing of the system due to low memory? In KDE i keep running memory widget that lies through its teeth as any good politician does. And I cannot keep checking mem. Also, ...
1
vote
0
answers
35
views
RAM required for kernel update
I have a small debian VM. For normal application usage, I only need about 1.5GB ram max (typical approx 500MB).
However, I when I do an apt upgrade, sometimes I will trigger the OOM when there is a ...
0
votes
0
answers
131
views
Memory discrepency during OOM
I'm trying to track down the root cause one of our hypervisor machines ran out of all physical memory today.
Machine specs
Motherboard: SuperMicro H12SSW-NTR
CPU: AMD EPYC 7702P (64c/128t)
Memory: ...
0
votes
0
answers
38
views
Are cache & buffers subject to the overcommit_ratio?
While generally I would consider ending up in swap a failure, I do want my systems to degrade gracefully. On the boxes doing heavy IO, I want to preserve a reasonable amount of memory for buffers and ...
-1
votes
2
answers
221
views
Firefox crashing Linux Mint 20 (ulyan) memory thrashing
Firefox 105.0.1 eats all my memory (mate-system-monitor reports 100%), regularly crashing Linux Mint 20 (ulyan), typically several times a week.
My system completely locks up, mouse and keyboard ...
2
votes
1
answer
803
views
Linux server high memory usage without applications
I have an Ubuntu 20.04.4 server with 32GB RAM.
The server is running a bunch of LXD containers and two VMs (libvirt+qemu+kvm).
After startup, with all services running, the RAM utilization is about ~...
0
votes
2
answers
2k
views
OOM Killer triggered when available memory is high
I have been getting random kswapd0, and OOM killers even though available RAM -100MB. Already gone through many other similar issues, but I could not get why OOM killer triggered in my case. Hoping ...
0
votes
1
answer
2k
views
JAVA OPTS Xms Xmx MetaspaceSize MaxMetaspaceSize relationship with server resources
I have just started working with jboss application servers and recently we had a problem when trying to deploy an application in a new test server (RHEL 7), it happened that, when starting the jboss ...
2
votes
2
answers
3k
views
Why oom_reaper when having vm.panic_on_oom = 1
From what I understand from its author :
The OOM killer currently allows to kill only a single task in a good
hope that the task will terminate in a reasonable time and frees up
its memory. (…)
It ...
0
votes
0
answers
295
views
Memory runs out and PC freezes
I have been having issues playing video games on my PC, as I keep running out of RAM (8GB).
When I run out of RAM, my displays and everything else freezes, except playing audio keeps looping. I have ...
0
votes
1
answer
157
views
System ran out of memory during MX Linux installation
Hardware specs :
Product Name HP ProBook 430 G4
Processor 1 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (x86)
Memory Size 4096 MB
System BIOS P85 Ver. 01.03 12/05/2016
Serial Number ...
1
vote
0
answers
45
views
Upgraded to 16gb memory, but still frequently running out and freezing [duplicate]
2 years using linux, reasonably comfortable and confident at it now, but this is something that keeps plaguing me and I have lost so many work hours because of freezes/lockups.
My understanding of ...
3
votes
1
answer
606
views
Clamav - can you only load the linux-specific definitions from /var/lib/clamav/*.cld?
We're investigating applications that seem to use large amounts of memory, one of those being clamav. We noticed that there are lots of av definitions for windows, osx, xls, doc, rtf etc. in /var/lib/...
2
votes
0
answers
106
views
Hint kernel that a particular process is safe to OOM kill? [duplicate]
Sometimes I run scripts that have a risk of making the server run out of memory. Is there a way to make kernel eager to kill them when this happens, so that the system regains stability as soon as ...
0
votes
1
answer
95
views
How to fix improperly uninstalled software on Raspberry Pi (Buster)
First and foremost, I'm trying to purge an improperly uninstalled version of Intellij-Idea on Raspberry Pi and reinstall.
I installed IntelliJ-Idea on the Raspberry Pi using the below page as a guide:
...
1
vote
1
answer
442
views
oom_kill counter in CentOS 7
In Ubuntu 20.04 I can find oom_kill counter at file /proc/vmstat. Where I can find this metric in CentOS 7?
1
vote
0
answers
384
views
How to determine whether a process would run out-of-memory?
A testsuite has a couple of tests, that will consume a quite a lot of memory (11GB) or so.
This is typically not a problem when running those tests on my developer machine, but within the context of ...
1
vote
3
answers
703
views
Creating swap when out of memory
Out of memory is a common issue and the official OOM is not efficient. Several other programs have been introduced to do the killing job faster.
I wonder why there is no approach to creating swap ...
1
vote
0
answers
61
views
cgroups - controlling memory
I am trying to understand how cgroups and namespaces work. I have been able to get to a point where I can execute example programs in example cgroups and see how the memory resource can be controlled.
...
3
votes
2
answers
706
views
How to diagnose high `Shmem`? (was: Why `echo 3 > drop_caches` cannot zero the cache?)
I have a problem with my Linux machine where system now seems to run easily out of RAM (and trigger OOM Killer) when it normally can handle similar load just fine. Inspecting free -tm shows that buff/...
-5
votes
1
answer
588
views
Out of Memory Killer OOM and Swap [duplicate]
Greetings to the service of dear masters and masters
I have a question :
Thanks for pointing me to a process called Out of Memory Killer in Linux, or OOM for short, how it works and what the processes ...
1
vote
1
answer
597
views
xz: OOM when compressing 1TB .tar
I'm trying to compress a large archive with multi-threading enabled, however, my system keeps freezing up and runs out of memory.
OS: Manjaro 21.1.0 Pahvo
Kernel: x86_64 Linux 5.13.1-3-MANJARO
...
0
votes
0
answers
2k
views
Kernel panic during shutdown: "System is deadlocked on memory"
I am running Debian Buster within a VM with 70 MiB of memory allocated to it. Curiously, it can boot and run fine, but panics when I try to shut it down.
Here is the log of the panic, which I captured ...
1
vote
0
answers
143
views
What could account for a very, very large change in pid's in a short amount of time?
On an Ubuntu 20.x server, we are having some OOM Killer issues, where it kills a Java process. We have been unable to find any memory leaks.
But this morning, we got a rare gift, which is two oom-...
1
vote
1
answer
628
views
What does order=0 mean in mem-info data (Orders are powers of two allocations, so does it mean no pages were being allocated?)
foobar.exe invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
What is an order=0 allocation? That's less than one page, so is it like a kmalloc32 or something smaller than page_size? ...
2
votes
0
answers
201
views
Linux kernel with ZFS eating my ram (2x of arc_max)
First up, It seems my kernel is using way too much ram
$ grep Slab /proc/meminfo
Slab: 21794184 kB
See all of /proc/meminfo
and /proc/slabinfo
$ free -h
total used ...
1
vote
0
answers
116
views
Why oom may still happen even when overcommit_memory is set to 2?
2: always check, never overcommit
In mode 2 (available since Linux 2.6), the total
virtual address space that can be allocated
(CommitLimit in /proc/meminfo) is calculated as
...
0
votes
2
answers
184
views
How can I kill a process that kills the computer if it hangs?
I would like to write a script that detects when my Ubuntu machine hangs for more than 10 seconds, for example, and kills the offending process so I don't have to force-power-off my device.
The ...
0
votes
1
answer
2k
views
Identify high memory allocator / leaking process in Linux causing oom (out of memory) kernel killing processes
I have come across plenty of info on oom in general but not much to identify the root cause of the issue. OOm killer kills processes based on its scoring but the process it kills need not be the one ...
5
votes
1
answer
492
views
Can ** (bash's globstar) run out of memory?
Can using bash's globstar (**) operator cause an out of memory error? Consider something like:
for f in /**/*; do printf '%s\n' "$f"; done
When ** is being used to generate an enormous list ...
1
vote
0
answers
384
views
How to best hard-limit my Firefox' memory hogging?
I use Firefox 83 on my Devuan GNU/Linux Beowulf desktop.
Unfortunately, for reasons which are not clear to me, FF has memory issues which cause it to gradually take up more and more of my system's ...
2
votes
1
answer
1k
views
RAM Free decreases over time due to increasing RAM Cache + Buffer
When visualizing some memory related metrics on server level, I get a chart which looks like this:
The area below the blue line is RAM Used. The area below the red line and above the blue line is RAM ...
0
votes
0
answers
289
views
Finding root cause for out of memory killer
Recently, I stumbled upon this error which, I can understand happening because of Out Of Memory , but not sure who is requesting memory.
[ 8539.677000] syslog-ng invoked oom-killer: gfp_mask=0xd0, ...
0
votes
1
answer
685
views
How to free up disk space when the disk is full?
I recently tried to install a large program and inadvertently filled up my Linux partition. I am now seeing a bunch of errors stemming from this issue. I tried to empty the trash, but I get an error ...
5
votes
2
answers
2k
views
Linux OOM randomly when there is still free memory
I got the OOM problem randomly (about once per month), but it seems that there is enough free memory.
I can not understand the reason and how to resolve it ....
vm.min_free_kbytes = 90112
Linux xxx-...
3
votes
1
answer
2k
views
Force use Swap over Memory
I have a Debian server that I'm really cheaping out on, but for some reason the Java processes use all the memory then throw a "OutOfMemoryError" rather than using the swap space.
I've got ...