From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 7C974440419 for ; Fri, 16 Jun 2017 15:07:59 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id d184so4798168wmd.15 for ; Fri, 16 Jun 2017 12:07:59 -0700 (PDT) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id g10si3778792wmc.16.2017.06.16.12.07.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 12:07:58 -0700 (PDT) Date: Fri, 16 Jun 2017 12:07:55 -0700 From: Andrew Morton Subject: Re: [PATCH] mm/hugetlb: Warn the user when issues arise on boot due to hugepages Message-Id: <20170616120755.c56d205f49d93a6e3dffb14f@linux-foundation.org> In-Reply-To: <20170613013516.7fcmvmoltwhxmtmp@oracle.com> References: <20170603005413.10380-1-Liam.Howlett@Oracle.com> <20170605045725.GA9248@dhcp22.suse.cz> <20170605151541.avidrotxpoiekoy5@oracle.com> <20170606054917.GA1189@dhcp22.suse.cz> <20170606060147.GB1189@dhcp22.suse.cz> <20170612172829.bzjfmm7navnobh4t@oracle.com> <20170612174911.GA23493@dhcp22.suse.cz> <20170612183717.qgcusdfvdfcj7zr7@oracle.com> <20170612185208.GC23493@dhcp22.suse.cz> <20170613013516.7fcmvmoltwhxmtmp@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Liam R. Howlett" Cc: Michal Hocko , linux-mm@kvack.org, mike.kravetz@Oracle.com, n-horiguchi@ah.jp.nec.com, aneesh.kumar@linux.vnet.ibm.com, gerald.schaefer@de.ibm.com, zhongjiang@huawei.com, aarcange@redhat.com, kirill.shutemov@linux.intel.com On Mon, 12 Jun 2017 21:35:17 -0400 "Liam R. Howlett" wrote: > > > > > If there's no message stating any > > > configuration issue, then many admins would probably think something is > > > seriously broken and it's not just a simple typo of K vs M. > > > > > > Even though this doesn't catch all errors, I think it's a worth while > > > change since this is currently a silent failure which results in a > > > system crash. > > > > Seriously, this warning just doesn't help in _most_ miscofigurations. It > > just focuses on one particular which really requires to misconfigure > > really badly. And there are way too many other ways to screw your system > > that way, yet we do not warn about many of those. So just try to step > > back and think whether this is something we actually do care about and > > if yes then try to come up with a more reasonable warning which would > > cover a wider range of misconfigurations. > > Understood. Again, I appreciate all the time you have taken on my > patch and explaining your points. I will look at this again as you > have suggested. So do we want to drop mm-hugetlb-warn-the-user-when-issues-arise-on-boot-due-to-hugepages.patch? I'd be inclined to keep it if Liam found it a bit useful - it does have some overhead, but half the patch is in __init code... -- 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: email@kvack.org