From: Michal Hocko <mhocko@kernel.org> To: David Rientjes <rientjes@google.com> Cc: Vlastimil Babka <vbabka@suse.cz>, Andrew Morton <akpm@linux-foundation.org>, Johannes Weiner <hannes@cmpxchg.org>, Andrea Arcangeli <aarcange@redhat.com>, Mel Gorman <mgorman@suse.de>, linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org> Subject: Re: [PATCH] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves Date: Tue, 24 Nov 2015 10:47:09 +0100 [thread overview] Message-ID: <20151124094708.GA29472@dhcp22.suse.cz> (raw) In-Reply-To: <alpine.DEB.2.10.1511231320160.30886@chino.kir.corp.google.com> On Mon 23-11-15 13:26:49, David Rientjes wrote: > On Mon, 23 Nov 2015, Michal Hocko wrote: [...] > > I am not sure I follow you here. The point of the warning is to warn > > when the oom killer is disbaled (out_of_memory returns false) _and_ the > > request is __GFP_NOFAIL because we simply cannot guarantee any forward > > progress and just a use of the allocation flag is not supproted. > > > > I don't think the WARN_ONCE() above is helpful for a few reasons: > > - it suggests that min_free_kbytes is the best way to work around such > issues and gives kernel developers a free pass to just say "raise > min_free_kbytes" rather than reducing their reliance on __GFP_NOFAIL, I disagree. Users are quite sensitive to warnings with backtraces in the log from my experience and they report them. And while the log shows the code path which triggers the issue which can help us to change the code it also gives a useful hint on how to reduce this issue until we are able to either fix a bug or a permanent configuration if we are not able to get rid of it for whatever reason. Besides that there is no other reliable warning that we are getting _really_ short on memory unlike when the allocation failure is allowed. OOM killer report might be missing because there was no actual killing happening. > - raising min_free_kbytes is not immediately actionable without memory > freeing to fix any oom issue, and true but it can be done to reduce chances for the issue to reappear. > - it relies on the earlier warning to dump the state of memory and > doesn't add any significant information to help understand how seperate > occurrences are similar or different. The information is quite valuable even without OOM killer report IMHO. > I think the WARN_ONCE() should just be removed. I do not insist on keeping it but I really think it might be useful while it doesn't seem to cause any confusion IMHO. So unless there is a strong reason to not include it I would prefer keeping it. -- Michal Hocko SUSE Labs
WARNING: multiple messages have this Message-ID (diff)
From: Michal Hocko <mhocko@kernel.org> To: David Rientjes <rientjes@google.com> Cc: Vlastimil Babka <vbabka@suse.cz>, Andrew Morton <akpm@linux-foundation.org>, Johannes Weiner <hannes@cmpxchg.org>, Andrea Arcangeli <aarcange@redhat.com>, Mel Gorman <mgorman@suse.de>, linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org> Subject: Re: [PATCH] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves Date: Tue, 24 Nov 2015 10:47:09 +0100 [thread overview] Message-ID: <20151124094708.GA29472@dhcp22.suse.cz> (raw) In-Reply-To: <alpine.DEB.2.10.1511231320160.30886@chino.kir.corp.google.com> On Mon 23-11-15 13:26:49, David Rientjes wrote: > On Mon, 23 Nov 2015, Michal Hocko wrote: [...] > > I am not sure I follow you here. The point of the warning is to warn > > when the oom killer is disbaled (out_of_memory returns false) _and_ the > > request is __GFP_NOFAIL because we simply cannot guarantee any forward > > progress and just a use of the allocation flag is not supproted. > > > > I don't think the WARN_ONCE() above is helpful for a few reasons: > > - it suggests that min_free_kbytes is the best way to work around such > issues and gives kernel developers a free pass to just say "raise > min_free_kbytes" rather than reducing their reliance on __GFP_NOFAIL, I disagree. Users are quite sensitive to warnings with backtraces in the log from my experience and they report them. And while the log shows the code path which triggers the issue which can help us to change the code it also gives a useful hint on how to reduce this issue until we are able to either fix a bug or a permanent configuration if we are not able to get rid of it for whatever reason. Besides that there is no other reliable warning that we are getting _really_ short on memory unlike when the allocation failure is allowed. OOM killer report might be missing because there was no actual killing happening. > - raising min_free_kbytes is not immediately actionable without memory > freeing to fix any oom issue, and true but it can be done to reduce chances for the issue to reappear. > - it relies on the earlier warning to dump the state of memory and > doesn't add any significant information to help understand how seperate > occurrences are similar or different. The information is quite valuable even without OOM killer report IMHO. > I think the WARN_ONCE() should just be removed. I do not insist on keeping it but I really think it might be useful while it doesn't seem to cause any confusion IMHO. So unless there is a strong reason to not include it I would prefer keeping it. -- Michal Hocko SUSE Labs -- 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>
next prev parent reply other threads:[~2015-11-24 9:47 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-11-11 13:48 [PATCH] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves mhocko 2015-11-11 13:48 ` mhocko 2015-11-11 15:54 ` Johannes Weiner 2015-11-11 15:54 ` Johannes Weiner 2015-11-12 8:51 ` Michal Hocko 2015-11-12 8:51 ` Michal Hocko 2015-11-22 12:55 ` Vlastimil Babka 2015-11-22 12:55 ` Vlastimil Babka 2015-11-23 9:29 ` Michal Hocko 2015-11-23 9:29 ` Michal Hocko 2015-11-23 9:43 ` Vlastimil Babka 2015-11-23 9:43 ` Vlastimil Babka 2015-11-23 10:13 ` Michal Hocko 2015-11-23 10:13 ` Michal Hocko 2015-11-23 21:26 ` David Rientjes 2015-11-23 21:26 ` David Rientjes 2015-11-24 9:47 ` Michal Hocko [this message] 2015-11-24 9:47 ` Michal Hocko 2015-11-24 16:26 ` Johannes Weiner 2015-11-24 16:26 ` Johannes Weiner 2015-11-24 17:02 ` Michal Hocko 2015-11-24 17:02 ` Michal Hocko 2015-11-24 19:57 ` Johannes Weiner 2015-11-24 19:57 ` Johannes Weiner 2015-11-25 9:33 ` Michal Hocko 2015-11-25 9:33 ` Michal Hocko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20151124094708.GA29472@dhcp22.suse.cz \ --to=mhocko@kernel.org \ --cc=aarcange@redhat.com \ --cc=akpm@linux-foundation.org \ --cc=hannes@cmpxchg.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=mgorman@suse.de \ --cc=rientjes@google.com \ --cc=vbabka@suse.cz \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.