Questions tagged [oom]

Linux Out-of-memory Killer

The OOM Killer is the Linux kernel's built in mechanism for protecting a machine from using up all memory.

108 questions
14
votes
1 answer

How is kernel oom score calculated?

Looked on The Google, and couldn't find anything that explained how the score in proc//oom_score is calculated. Why use this score instead of just using the total memory used?
James Kingsbery
  • 309
  • 1
  • 2
  • 8
1
vote
1 answer

OOM even though page cache high, swap not used, etc

Can you help me diagnose this OOM? My remarks are in-between. <4>[598175.284914] cifsd invoked oom-killer: gfp_mask=0x200da, order=0, oom_adj=0, oom_score_adj=0 Whut? GFP mask lower byte 0xa indicates a request for a free page in highmem. This is a…
Marki
  • 2,854
1
vote
2 answers

Why malloc() can return NULL if Linux has 20G of 'cached' memory as shown in `top`?

My application randomly returned OOM errors trying to allocate 16M chunks, while Linux had plenty memory used by disk cache (20G). Swapping disabled. All OS limits seem fine. After clearing Linux cache with drop_caches error disappeared. Any idea…
nonobe
  • 11
0
votes
1 answer

OOM despite the large amount of free SWAP

During some ML training htop shows usage of all RAM (16GB) and only 2G (out of 16GB) of SWAP when OOM happens. dmesg shows: [pon sie 12 11:53:44 2019] Purging GPU memory, 0 bytes freed, 131072 bytes still pinned. [pon sie 12 11:53:44 2019] 73728…
3voC
  • 103
0
votes
1 answer

When the kernel says "Out of memory: Killed proces..." does it mean real memory or virtual memory?

Looking at journal -xe for the reason(s) a process is killed, the message comes up in red "Out of memory: Killed process..." but it doesn't say whether the limiting resource is virtual memory or is real memory. Which does it mean and why doesn't it…