mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] print order information when OOM killing
Dump the current allocation order when OOM killing. Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cb2c023375
commit
79b9ce311e
4 changed files with 5 additions and 5 deletions
|
|
@ -253,12 +253,12 @@ static struct mm_struct *oom_kill_process(struct task_struct *p)
|
|||
* OR try to be smart about which process to kill. Note that we
|
||||
* don't have to be perfect here, we just have to be good.
|
||||
*/
|
||||
void out_of_memory(unsigned int __nocast gfp_mask)
|
||||
void out_of_memory(unsigned int __nocast gfp_mask, int order)
|
||||
{
|
||||
struct mm_struct *mm = NULL;
|
||||
task_t * p;
|
||||
|
||||
printk("oom-killer: gfp_mask=0x%x\n", gfp_mask);
|
||||
printk("oom-killer: gfp_mask=0x%x, order=%d\n", gfp_mask, order);
|
||||
/* print memory stats */
|
||||
show_mem();
|
||||
|
||||
|
|
|
|||
|
|
@ -936,7 +936,7 @@ rebalance:
|
|||
goto got_pg;
|
||||
}
|
||||
|
||||
out_of_memory(gfp_mask);
|
||||
out_of_memory(gfp_mask, order);
|
||||
goto restart;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue