Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2455
b: refs/heads/master
c: 578c2fd
h: refs/heads/master
i:
  2453: c92953d
  2451: d27591a
  2447: 29da7e5
v: v3
  • Loading branch information
Janet Morgan authored and Linus Torvalds committed Jun 22, 2005
1 parent 2d92436 commit c765277
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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: c2f29ea111e3344ed48257c2a142c3db514e1529
refs/heads/master: 578c2fd6a7f378434655e5c480e23152a3994404
7 changes: 4 additions & 3 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ void out_of_memory(unsigned int __nocast gfp_mask)
struct mm_struct *mm = NULL;
task_t * p;

printk("oom-killer: gfp_mask=0x%x\n", gfp_mask);
/* print memory stats */
show_mem();

read_lock(&tasklist_lock);
retry:
p = select_bad_process();
Expand All @@ -268,12 +272,9 @@ void out_of_memory(unsigned int __nocast gfp_mask)
/* Found nothing?!?! Either we hang forever, or we panic. */
if (!p) {
read_unlock(&tasklist_lock);
show_free_areas();
panic("Out of memory and no killable processes...\n");
}

printk("oom-killer: gfp_mask=0x%x\n", gfp_mask);
show_free_areas();
mm = oom_kill_process(p);
if (!mm)
goto retry;
Expand Down
1 change: 1 addition & 0 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@ __alloc_pages(unsigned int __nocast gfp_mask, unsigned int order,
" order:%d, mode:0x%x\n",
p->comm, order, gfp_mask);
dump_stack();
show_mem();
}
return NULL;
got_pg:
Expand Down

0 comments on commit c765277

Please sign in to comment.