From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: linux-kernel@vger.kernel.org, peterz@infradead.org,
heiko.carstens@de.ibm.com, akpm@linux-foundation.org,
linux-s390 <linux-s390@vger.kernel.org>
Subject: Re: [PATCH/RFC] mm/debug_pagealloc: enable it by default
Date: Mon, 25 Jan 2016 09:21:53 +0100 [thread overview]
Message-ID: <56A5DB21.2090300@de.ibm.com> (raw)
In-Reply-To: <20160125064151.GA22557@js1304-P5Q-DELUXE>
On 01/25/2016 07:41 AM, Joonsoo Kim wrote:
> Hello,
>
> On Fri, Jan 22, 2016 at 12:44:40PM +0100, Christian Borntraeger wrote:
>> since commit 031bc5743f158 ("mm/debug-pagealloc: make debug-pagealloc
>> boottime configurable") CONFIG_DEBUG_PAGEALLOC is by default a no-op.
>>
>> This resulted in several unnoticed bugs, e.g.
>> https://lkml.kernel.org/g/<569F5E29.3090107@de.ibm.com>
>> or
>> https://lkml.kernel.org/g/<56A20F30.4050705@de.ibm.com>
>>
>> as this behaviour change was not even documented in Kconfig.
>>
>> Let's go back to the original default and reverse the command
>> line parameter to allow disabling the feature.
>
> Default disable is requested by Andrew and I agreed that.
>
> https://lkml.org/lkml/2014/11/27/3
Well, Andrew's assumption was "I suspect the number of "old users" is one"
and this is wrong. I can at least claim, that most of the s390 test were
conducted with CONFIG_DEBUG_PAGEALLOC enabled (at least regularly) - and
about a year ago this was changed to "no longer useful". I have posted 2
real bugs that I triggered pretty quickly after I enabled things on the
command line.
So my claim is, that the theoretical win of detecting more bugs by enabling
this on the command line for distro kernels is far less than the real loss
of testers not triggering bugs in the last year.
Let me do some quick check with the kernels that I find in the rpm/deb repos
rawhide: # CONFIG_DEBUG_PAGEALLOC is not set
opensuse leap: # CONFIG_DEBUG_PAGEALLOC is not set
opensuse tumbleweed: # CONFIG_DEBUG_PAGEALLOC is not set
ubuntu 4.3 (kernel team repo) # CONFIG_DEBUG_PAGEALLOC is not set
So at least the communication was not done properly. :-(
> I think that default disable is good thing because we can use
> the kernel compiled with CONFIG_DEBUG_PAGEALLOC even for production.
> Unless boot param is provided, it's runtime cost is nearly zero.
> This could help to debug in some situations and make this debugging
> feature more useful. But, yes, old users can be surprised
> by this change. How about changing Kconfig to ask user for default mode?
A default mode would be ok for me as it makes things obvious. Will send
a patch.
next prev parent reply other threads:[~2016-01-25 8:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 11:44 [PATCH/RFC] mm/debug_pagealloc: enable it by default Christian Borntraeger
2016-01-25 6:41 ` Joonsoo Kim
2016-01-25 8:21 ` Christian Borntraeger [this message]
2016-01-25 19:22 ` Dave Jones
2016-01-25 19:38 ` Dave Jones
2016-01-25 19:51 ` Christian Borntraeger
2016-01-26 6:18 ` Joonsoo Kim
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=56A5DB21.2090300@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=heiko.carstens@de.ibm.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=peterz@infradead.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).