Skip to main content

All Questions

Tagged with or
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 ...
Nicola Sergio's user avatar
4 votes
2 answers
242 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 ...
E. K.'s user avatar
  • 153
0 votes
0 answers
219 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] ...
Fritz's user avatar
  • 748
1 vote
1 answer
207 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 ...
E. K.'s user avatar
  • 153
4 votes
0 answers
117 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 ...
Michael's user avatar
  • 190
3 votes
0 answers
56 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 ...
Mathias Sven's user avatar
0 votes
0 answers
21 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-...
MikiBelavista's user avatar
1 vote
0 answers
77 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. ...
wangt13's user avatar
  • 651
0 votes
0 answers
56 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, ...
abyss.7's user avatar
  • 189
0 votes
0 answers
44 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 ...
alex miranda's user avatar
0 votes
2 answers
540 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 ...
eagle007's user avatar
1 vote
0 answers
150 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 ...
FliegendeWurst's user avatar
0 votes
1 answer
114 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 ...
John Carter's user avatar
0 votes
1 answer
167 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, ...
Amir reza Riahi's user avatar
7 votes
1 answer
934 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 ...
αғsнιη's user avatar
  • 41.9k

15 30 50 per page
1
2 3 4 5
15