Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp687000ybl; Wed, 28 Aug 2019 03:58:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6nh5/hdCvYH2vo+I1rlLIMbMoCXBC8AGE7Z+jMhWXvYltBYTSHszumExjlVULcW0Djru1 X-Received: by 2002:a62:107:: with SMTP id 7mr4007013pfb.4.1566989917100; Wed, 28 Aug 2019 03:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566989917; cv=none; d=google.com; s=arc-20160816; b=s0ctpxYlt80Ai+C9V3Pvn7EGEtanobB/OUaUEUdhWA8a4QEVGOgiuGvGm9Cl1WxCIZ tDEL4xX56x+yHCdQeQCRxbYq7rgxW5L8Rpx7mc72CTaevIsCW7VnvZ4RI3/N5OFPataP CaxeCUqhnCZgp095cV1PRlBRg6kkEARUbbJM4luyZP4/SR5YxB87tc1yGuFWeaclNEYr MxUI7w4ousnEp1JlnAiAUe4xTcPrZhHK9ys0FsjadlNFwDHOShPv8V2uNEuKTBR1UFGn X3IiXNKIi4s/of5Bg+T2zFvfMvnGByC1T2YyM+vkXp2QUemaD/nXPPdxC8e/sLSghKyJ sJ2Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ld2yiiD5uBC/Oxfeqxqlr9mamg58zKQ2fxsEECNlCJg=; b=lwhLATlD9ROCVEzZN9ITIrvMtm7KLIR7YVlV5XfVgTSrp7Qhm9JlFMGzXvtwwXPeSa eOkRXk55IgPoFYLxAReMtthlKa6ew160BBugHM51VGlik+ejeZqyOyECHUrr8+SfvD5n nP5UVlRB6aAYAiNpdKX9pfWOhelxalH0bw5XbSwVvAihF8Hqz/wSs2Vv2mRwch6IPi3g H6Gbt8tO9j6w39kBoDevuRNTNuWi4Sy0rwoi+jkCBg4NuTU3N3umi4mpPCtAkqPIV5Cr dfUstu19qSZ/+VG/mcpQG+JK68BZxjcST5o8Kshc0/QXUNG5hhGAxV4xqT/9wAv6ic6F UVPQ== 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 x5si2316174pfq.86.2019.08.28.03.58.21; Wed, 28 Aug 2019 03:58:37 -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 S1726444AbfH1K5E (ORCPT + 99 others); Wed, 28 Aug 2019 06:57:04 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:55316 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726246AbfH1K5E (ORCPT ); Wed, 28 Aug 2019 06:57:04 -0400 Received: from fsav401.sakura.ne.jp (fsav401.sakura.ne.jp [133.242.250.100]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x7SAv1Yi014970; Wed, 28 Aug 2019 19:57:01 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav401.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav401.sakura.ne.jp); Wed, 28 Aug 2019 19:57:01 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav401.sakura.ne.jp) Received: from [192.168.1.8] (softbank126227201116.bbtec.net [126.227.201.116]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x7SAv12i014965 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Wed, 28 Aug 2019 19:57:01 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH 00/10] OOM Debug print selection and additional information To: Michal Hocko 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 References: <20190826193638.6638-1-echron@arista.com> <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> From: Tetsuo Handa Message-ID: <5db2d2bd-645b-8967-849a-0d1de5861742@i-love.sakura.ne.jp> Date: Wed, 28 Aug 2019 19:56:58 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190828103211.GD28313@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >> 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. 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.