Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp705902ybl; Wed, 28 Aug 2019 04:14:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQkeixSFw1Hi0+DVg0/cDE1G2jv/LsR23nhH+UlmUxjq04DTZB2jZwqDyTxcYtqXo3S24N X-Received: by 2002:a17:902:1121:: with SMTP id d30mr3759593pla.174.1566990850593; Wed, 28 Aug 2019 04:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566990850; cv=none; d=google.com; s=arc-20160816; b=Hzpq1GhN4a2Iyjz2Iv6dJuALfgdBa0kd/YV8dObQU3JMKVaV3Xyf+/BVLyDREDktpA 33CkzlAVLIiVcPiqwcq0VVMPTzL1iPhGsi+dvtsrtLwbbVumcEXo0IcgBNR4MDEz59zZ wSPfyrtLvXfTSc2N+6s69end54eMOtrxVGpAwNHWlZP/vM4YIVcdOgHbnnuPM7QNS+bI vjzUqq3H+C9otbciNXdaBrR1hxuzRvV7Y+cQJByAGNVMo5KpT9O6BT00RMeZh2H77MUh F67tjIBNmSh0+ggGz0ylPg9cHguVOJkeK8aKsy6gXPIcLXupv1WEiJlIeIOiaiqKarjl oT7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IhJRN4Ev5mcgotBdebhrdKa/ZsPx0baLkWnx8hlM2BQ=; b=JJe/McI/rUm2PXnGv5b65a1D9nBD7DvupJWzQcmxkekh5BW3Yy8LLl0PAicJ67Hq02 V0Lhl84nDG6nO51gGJMJq9/x9/fIiz2/q+JJ9rVyBsko9KCUYTUyCePB5cHXP4rB06E0 AaL6oMnrolXTj3Ffbm4ZStkY5yNoeOhNKvoo22lBKDvD3LsmTkJRLC1+nLxV16yFNN+u rjWha3ZuGe6BltI/dJbLC3D+Jag74LrKmIzNwq6WTlSBfDPDkdNM5HWOd3A/Ft5+03PJ cPju+R52r3a/Dh0ElSDUajs3/4Vw5rTQJIcMzBB7VNbbEblUP0k6fSRiGtbxLKjEKDZD wEHw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si2250688pfv.99.2019.08.28.04.13.54; Wed, 28 Aug 2019 04:14:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbfH1LMy (ORCPT + 99 others); Wed, 28 Aug 2019 07:12:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:48972 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725991AbfH1LMv (ORCPT ); Wed, 28 Aug 2019 07:12:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 622BEAF0B; Wed, 28 Aug 2019 11:12:49 +0000 (UTC) Date: Wed, 28 Aug 2019 13:12:48 +0200 From: Michal Hocko To: Tetsuo Handa Cc: Edward Chron , Qian Cai , Andrew Morton , Roman Gushchin , Johannes Weiner , David Rientjes , Shakeel Butt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Ivan Delalande Subject: Re: [PATCH 00/10] OOM Debug print selection and additional information Message-ID: <20190828111248.GE28313@dhcp22.suse.cz> References: <1566909632.5576.14.camel@lca.pw> <79FC3DA1-47F0-4FFC-A92B-9A7EBCE3F15F@lca.pw> <2A1D8FFC-9E9E-4D86-9A0E-28F8263CC508@lca.pw> <20190828070845.GC7386@dhcp22.suse.cz> <2e816b05-7b5b-4bc0-8d38-8415daea920d@i-love.sakura.ne.jp> <20190828103211.GD28313@dhcp22.suse.cz> <5db2d2bd-645b-8967-849a-0d1de5861742@i-love.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5db2d2bd-645b-8967-849a-0d1de5861742@i-love.sakura.ne.jp> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 28-08-19 19:56:58, Tetsuo Handa wrote: > On 2019/08/28 19:32, Michal Hocko wrote: > >> Speak of my cases, those who take care of their systems are not developers. > >> And they afraid changing code that runs in kernel mode. They unlikely give > >> permission to install SystemTap/eBPF scripts. As a result, in many cases, > >> the root cause cannot be identified. > > > > Which is something I would call a process problem more than a kernel > > one. Really if you need to debug a problem you really have to trust > > those who can debug that for you. We are not going to take tons of code > > to the kernel just because somebody is afraid to run a diagnostic. > > > > This is a problem of kernel development process. I disagree. Expecting that any larger project can be filled with the (close to) _full_ and ready to use introspection built in is just insane. We are trying to help with a generally useful information but you simply cannot cover most existing failure paths. > >> Moreover, we are talking about OOM situations, where we can't expect userspace > >> processes to work properly. We need to dump information we want, without > >> counting on userspace processes, before sending SIGKILL. > > > > Yes, this is an inherent assumption I was making and that means that > > whatever dynamic hooks would have to be registered in advance. > > > > No. I'm saying that neither static hooks nor dynamic hooks can work as > expected if they count on userspace processes. Registering in advance is > irrelevant. Whether it can work without userspace processes is relevant. I am not saying otherwise. I do not expect any userspace process to dump any information or read it from elswhere than from the kernel log. > Also, out-of-tree codes tend to become defunctional. We are trying to debug > problems caused by in-tree code. Breaking out-of-tree debugging code just > because in-tree code developers don't want to pay the burden of maintaining > code for debugging problems caused by in-tree code is a very bad idea. This is a simple math of cost/benefit. The maintenance cost is not free and paying it for odd cases most people do not care about is simply not sustainable, we simply do not have that much of a man power. -- Michal Hocko SUSE Labs