Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1309015imm; Wed, 26 Sep 2018 15:38:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV632hMP42aEbqmV2qFe/DoxfYljd12DmV386sAZsn3PTMBIHIGSCPnpz/KnJDUQOEw0ciiTz X-Received: by 2002:a17:902:74c7:: with SMTP id f7-v6mr7800545plt.45.1538001488457; Wed, 26 Sep 2018 15:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538001488; cv=none; d=google.com; s=arc-20160816; b=U+5CIWwIFOUAabTAs9Cpko2c8saBvzoX+ShGiMR5DtHPG4en9ICHeWGBz7kelojZGj WwTRWZmvAa5dFeX4dyYgcW9O1x3xryhNCoyf+TrLqDTatxy5k9odbImr6fOUHH1yv4hY AF6KwpL7y8KHnhdpWyTz87kGnVN5iY/yJ4+m3lKocp/D47bg5P+MpLO8IsugB/XIeI76 u0AsPJlCbKYPItST2ntC9YHokr/WnAW6CYad2cko2/pWzFJAoHADiQG/Lm7ovf4T9oRO 2av5dLfzdR7lOXTCwUWTsTRpls+N7KjZYxt+bPcTAIYciWWGuoV9FduFLMS2KggZhMht zoAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=bKyQlnVUmh4ujPMjjzT6ly9SbVjgX+889VD/C35JrkE=; b=I4PUi2muCqwJjlAljwphaihbLMVhiyozUCkcOoOu8BfVkweVQBcuW57OWyYheXJrex 4BHxeAEpZyef8GttknQ0U3ur5TAdefBSq+eae99TqXPw/ozNpWkthZuM8zVA7AIK+4dC U1RKXk+XPhG0e63X3H+rlGohqtV3k2CVXoOL8W9Z7h0MyizfwXb+dkRTuaQkPqC8cMyg VOSqUPRkjPmSpwLEqA71WzemBCyiezBnxxoGsBIWbXuag7foS+pAsrULGxBFqsx4FoIM 0qI7emLRsxPfU7PbV1vnzX1rZYmKD1hxAZYPvhU66d8odeG3/MWTMv7sDXF+idv4JGvg 1OYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1-v6si204614pld.277.2018.09.26.15.37.53; Wed, 26 Sep 2018 15:38:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727027AbeI0Ev2 (ORCPT + 99 others); Thu, 27 Sep 2018 00:51:28 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53040 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbeI0Ev1 (ORCPT ); Thu, 27 Sep 2018 00:51:27 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 54D21100B; Wed, 26 Sep 2018 22:36:17 +0000 (UTC) Date: Wed, 26 Sep 2018 15:36:15 -0700 From: Andrew Morton To: Dave Hansen Cc: Michal Hocko , Alexander Duyck , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, pavel.tatashin@microsoft.com, dave.jiang@intel.com, jglisse@redhat.com, rppt@linux.vnet.ibm.com, dan.j.williams@intel.com, logang@deltatee.com, mingo@kernel.org, kirill.shutemov@linux.intel.com Subject: Re: [PATCH v5 2/4] mm: Provide kernel parameter to allow disabling page init poisoning Message-Id: <20180926153615.90661e27d0713a02651b2282@linux-foundation.org> In-Reply-To: References: <20180925200551.3576.18755.stgit@localhost.localdomain> <20180925201921.3576.84239.stgit@localhost.localdomain> <20180926073831.GC6278@dhcp22.suse.cz> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 26 Sep 2018 08:36:47 -0700 Dave Hansen wrote: > On 09/26/2018 12:38 AM, Michal Hocko wrote: > > Why cannot you simply go with [no]vm_page_poison[=on/off]? > > I was trying to look to the future a bit, if we end up with five or six > more other options we want to allow folks to enable/disable. I don't > want to end up in a situation where we have a bunch of different knobs > to turn all this stuff off at runtime. > > I'd really like to have one stop shopping so that folks who have a > system that's behaving well and don't need any debugging can get some of > their performance back. > > But, the *primary* thing we want here is a nice, quick way to turn as > much debugging off as we can. A nice-to-have is a future-proof, > slub-style option that will centralize things. Yup. DEBUG_VM just covers too much stuff nowadays. A general way to make these thing more fine-grained and without requiring a rebuild would be great. And I expect that quite a few of the debug features could be enabled/disabled after bootup as well, so a /proc knob is probably in our future. Any infrastructure which is added to support a new kernel-command-line option should be designed with that in mind.