kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Couple of questions on OOM trace.
@ 2013-05-08 17:57 Shraddha Kamat
  2013-05-09 10:07 ` Jonathan Neuschäfer
  0 siblings, 1 reply; 2+ messages in thread
From: Shraddha Kamat @ 2013-05-08 17:57 UTC (permalink / raw)
  To: kernelnewbies


Here is the OOM trace header : 

Out of memory: Kill process 5374 (min_free_kbytes) score 944 or sacrifice child
Killed process 5374 (min_free_kbytes)  total-vm:30495360kB,anon-rss:20155328kB, file-rss:64kB
min_free_kbytes invoked oom-killer: gfp_mask=0x200da, order=0, oom_score_adj=0
min_free_kbytes cpuset=/ mems_allowed=0

------------------


I understand that in this case free pages has gone below min_pages(1). 

Couple of questions based on these 4 lines : 

(1) I googled a lot but I am not able to find the meaning of 'score
994' , anon-rss and file-rss ? 

(2) In my understanding gfp_mask is relevant here to know from which
Zone the memory allocation was tried , but failed - right ?  

(3) What do order and oom_score_adj signify here ?


Regards,
Shraddha 




(1) http://dd.qc.ca/people.redhat.com/kernel/min_free_kbytes.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Couple of questions on OOM trace.
  2013-05-08 17:57 Couple of questions on OOM trace Shraddha Kamat
@ 2013-05-09 10:07 ` Jonathan Neuschäfer
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Neuschäfer @ 2013-05-09 10:07 UTC (permalink / raw)
  To: kernelnewbies

On Wed, May 08, 2013 at 11:27:40PM +0530, Shraddha Kamat wrote:
> 
> Here is the OOM trace header : 
> 
> Out of memory: Kill process 5374 (min_free_kbytes) score 944 or sacrifice child
> Killed process 5374 (min_free_kbytes)  total-vm:30495360kB,anon-rss:20155328kB, file-rss:64kB
> min_free_kbytes invoked oom-killer: gfp_mask=0x200da, order=0, oom_score_adj=0
> min_free_kbytes cpuset=/ mems_allowed=0
> 
> ------------------
> 
> 
> I understand that in this case free pages has gone below min_pages(1). 
> 
> Couple of questions based on these 4 lines : 
> 
> (1) I googled a lot but I am not able to find the meaning of 'score
> 994' , anon-rss and file-rss ? 

Try reading mm/oom_kill.c.

> (2) In my understanding gfp_mask is relevant here to know from which
> Zone the memory allocation was tried , but failed - right ?  
> 
> (3) What do order and oom_score_adj signify here ?

oom_score_adj is a per-process /proc entry to adjust the likelihood that
a particular process is killed by the OOM code.

The word "order" is explained by mm/oom_kill.c, line 600:
 * @order: amount of memory being requested as a power of 2

Or, better yet, mm/mempolicy.c, line 2024:
 * @order: Power of two of allocation size in pages. 0 is a single page.


HTH,
Jonathan Neusch?fer

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-09 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08 17:57 Couple of questions on OOM trace Shraddha Kamat
2013-05-09 10:07 ` Jonathan Neuschäfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).