memory:out_of_memory_killer
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
memory:out_of_memory_killer [2016/07/12 15:11] – created peter | memory:out_of_memory_killer [2019/11/30 14:13] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Memory - Out of Memory Killer ====== | ||
- | |||
- | To arrange that processes started by ' | ||
- | |||
- | The OOM-killer is buried deep inside the kernel and has a very obscure algorithm, | ||
- | |||
- | How do I use **oom_score_adj**? | ||
- | |||
- | /proc/[pid] contains oom_score_adj | ||
- | |||
- | Adjust the score using the / | ||
- | |||
- | man proc describes the old oom_adj. | ||
- | |||
- | This is possible in Ubuntu using Upstart and the oom score configuration option. | ||
- | |||
- | ===== Out of Memory (oom) score ===== | ||
- | |||
- | Linux has an "Out of Memory" | ||
- | |||
- | Normally the OOM killer regards all processes equally, this stanza advises the kernel to treat this job differently. | ||
- | |||
- | The " | ||
- | |||
- | Example: | ||
- | |||
- | # This application is a " | ||
- | oom score 1000 | ||
- | |||
- | expect daemon | ||
- | respawn | ||
- | exec / | ||
- | |||
memory/out_of_memory_killer.1468336275.txt.gz · Last modified: 2020/07/15 09:30 (external edit)