Questions tagged [out-of-memory]
The out-of-memory tag has no summary.
225 questions
14 votes
1 answer
1k views
How does the Linux kernel decide whether to deny memory allocation or invoke the OOM killer when a cgroup exceeds its memory limit?
This question comes from my curiosity about how Kubernetes handles resource requests and limits, especially memory constraints defined for pods. I understand that Kubernetes uses cgroups under the ...
4 votes
2 answers
290 views
How to find out a process's proportional use of system-wide Committed_AS memory on Linux?
On Linux, it's possible to disable overcommitting memory which makes it behave like Windows, in that malloc() will fail once all physical memory is used up. As explained in this insightful and good ...
0 votes
0 answers
318 views
Firefox died with "__vm_enough_memory: not enough memory for the allocation" despite several GB of free RAM and swap
I am working on a laptop with 16 GB of non-upgradable RAM on Linux Mint 22, kernel 6.8.0-63-generic #66-Ubuntu. I created a 32 GB swap partition on my NVMe drive with a high swappiness value [note1] ...
1 vote
1 answer
277 views
Disabling overcommitting memory seems to cause allocs to fail too early, what could be the reason?
I tested out echo 2 > /proc/sys/vm/overcommit_memory, which I know isn't a commonly used or recommended mode, but for various reasons it could be beneficial for some of my workloads. However, when ...
4 votes
0 answers
132 views
How to find out what’s using 10GiB of my RAM when ps is only showing ~1GB?
I’ve had mysterious memory usage on a Thinkpad E495 for the longest time. Starting with Ubuntu 20.04, through several Ubuntu versions with default kernels and xanmod kernels and now under openSUSE ...
3 votes
0 answers
85 views
Implement a recovery virtual console for a hanged system
This might be a duplicate of "reserve memory for a set of processes", but I think my question is a little broader. I have a system that likes to hang a lot. I tend to use a lot of browser ...
0 votes
0 answers
27 views
How to solve Out of memory on AKS?
I am running CircleCI jobs and got an 137 error. I checked k logs pod/dzapi-66d6b9cb-l995w -n simm Error from server (BadRequest): container "dzapi-solution" in pod "dzapi-solution-...
1 vote
0 answers
95 views
Weird behavior: Does libasan consume system memory constantly in Linux?
I am working on an embedded Linux system (kernel-5.10), and the cross GCC only supports -fsanitize=address for address sanitizer. Then I built a testing program with -fsanitize=address and -lasan. ...
0 votes
0 answers
61 views
How to setup memory cgroup with OOM killer enabled?
I did the following: mkdir /sys/fs/cgroup/memory/test echo 32212254720 > /sys/fs/cgroup/memory/test/memory.limit_in_bytes cgexec -g memory:test … But when the cgroup's memory is almost fully used, ...
0 votes
0 answers
51 views
Solaris 10 g++ virtual memory exhausted
I am trying to use the cm3-unix64le-d5.11.1-20210610 from the Modula 3 github. i am running the .cpp file and I get a virtual memory exhausted: Not enough space error. I have 16GB of RAM and I'm ...
0 votes
2 answers
741 views
How to use vm.overcommit_memory=1 without getting system hung?
I am using vm.overcommit_memory=1 on my linux system which has been helpful to allow starting multiple applications which otherwise wouldn't even start with default value of 0, however, sometimes my ...
1 vote
0 answers
183 views
How to make the OOM killer target processes with high nice values?
I would like to know how to configure the OOM killer to first kill processes that have a high nice value. My usecase for this is that I have some background processes where I don't mind them getting ...
0 votes
1 answer
154 views
How to use systemd-run to isolate the rest of the system from a rogue program triggering the oom killer
I'm wanting to use cgroups and systemd-run to insulate the rest of my system from rogue programs that wake the OOM killer. In particular, clangd is hogging all my memory and then some, and then ...
0 votes
1 answer
182 views
Why oom_score of a cat command in terminal is less than my window manager?
For experimenting, I was seeing oom_score of some of processes in my computer. The oom_score of a cat command is 666 but oom_scoreof my window manager (which is i3) is 667. If I understood correctly, ...
7 votes
1 answer
979 views
grep command fails with out-of-memory error
I encountered an OOM issue (this happens every-time I execute it) on running grep -Fxvf file1 file2 file1 size: ~200MB file2 size: ~300MB number of records in each file: ~300K avg records length: ~1K ...