Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207210
b: refs/heads/master
c: 6cf86ac
h: refs/heads/master
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Aug 10, 2010
1 parent e41414d commit dd3bf63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4358997ae38a1901498d128d6508119d9f318b36
refs/heads/master: 6cf86ac6f36b638459a9a6c2576d5e655d41d451
10 changes: 2 additions & 8 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,6 @@ unsigned long badness(struct task_struct *p, unsigned long uptime)
if (has_capability_noaudit(p, CAP_SYS_RAWIO))
points /= 4;

/*
* If p's nodes don't overlap ours, it may still help to kill p
* because p may have allocated or otherwise mapped memory on
* this node before. However it will be less likely.
*/
if (!has_intersects_mems_allowed(p))
points /= 8;

/*
* Adjust the score by oom_adj.
*/
Expand Down Expand Up @@ -277,6 +269,8 @@ static struct task_struct *select_bad_process(unsigned long *ppoints,
continue;
if (mem && !task_in_mem_cgroup(p, mem))
continue;
if (!has_intersects_mems_allowed(p))
continue;

/*
* This task already has access to memory reserves and is
Expand Down

0 comments on commit dd3bf63

Please sign in to comment.