linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch] mm: improve __GFP_NORETRY comment based on implementation
@ 2015-07-14 21:28 David Rientjes
  0 siblings, 0 replies; only message in thread
From: David Rientjes @ 2015-07-14 21:28 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Mikulas Patocka, Mike Snitzer, Alasdair G. Kergon,
	Edward Thornber, Vivek Goyal, linux-kernel, linux-mm, dm-devel,
	Linus Torvalds

Explicitly state that __GFP_NORETRY will attempt direct reclaim and memory 
compaction before returning NULL and that the oom killer is not called in 
the current implementation of the page allocator.

Signed-off-by: David Rientjes <rientjes@google.com>
---
 include/linux/gfp.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/linux/gfp.h b/include/linux/gfp.h
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -63,7 +63,10 @@ struct vm_area_struct;
  * but it is definitely preferable to use the flag rather than opencode endless
  * loop around allocator.
  *
- * __GFP_NORETRY: The VM implementation must not retry indefinitely.
+ * __GFP_NORETRY: The VM implementation must not retry indefinitely and will
+ * return NULL when direct reclaim and memory compaction has failed to allow the
+ * allocation to succeed.  The OOM killer is not called with the current
+ * implementation.
  *
  * __GFP_MOVABLE: Flag that this page will be movable by the page migration
  * mechanism or reclaimed

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-14 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 21:28 [patch] mm: improve __GFP_NORETRY comment based on implementation David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox