Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1402111

Re: Question About Functions "__free_pages_check" and "check_new_page" in page_alloc.c

From Vlastimil Babka <vbabka@suse.cz>
Newsgroups linux.kernel
Subject Re: Question About Functions "__free_pages_check" and "check_new_page" in page_alloc.c
Date 2016-05-17 07:20 +0200
Message-ID <rzFAe-iS-1@gated-at.bofh.it> (permalink)
References <rzstk-df-11@gated-at.bofh.it> <rzstk-df-9@gated-at.bofh.it> <rzFAe-iS-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05/17/2016 03:06 AM, Wang Xiaoqiang wrote:
>>yes it would. Why that would matter. The checks should be in an order
>>which could give us a more specific reason with later checks. bad_page()
> 
> I see, you mean the later "bad_reason" is the superset of the previous one.

Not exactly. It's not possible to sort all the reasons like that. But as
Michal said, bad_page() will print all the relevant info so you can
reconstruct all reasons from it. The bad_reason text is mostly a hint
what to check first.

>>will then print more detailed information.
>>--
>>Michal Hocko
>>SUSE Labs
> 
> thank you, Michal.
> 
> 
>  
> 

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Question About Functions "__free_pages_check" and  "check_new_page" in page_alloc.c Michal Hocko <mhocko@kernel.org> - 2016-05-16 17:20 +0200
  Re: Question About Functions "__free_pages_check" and  "check_new_page" in page_alloc.c Vlastimil Babka <vbabka@suse.cz> - 2016-05-17 07:20 +0200

csiph-web