Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2548549ybl; Thu, 29 Aug 2019 09:36:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOHiStFoS6zarETO6pQ0OjJYOTtkxLRIcW3/MgYtG1Uj+WP6xz6NCRcptW6hzHYBAIoEXF X-Received: by 2002:a17:902:9b90:: with SMTP id y16mr10743188plp.17.1567096603349; Thu, 29 Aug 2019 09:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567096603; cv=none; d=google.com; s=arc-20160816; b=wPd8colJc9tBsDIDRbu+gBVJ2s3BPL+cO87JKWGR3SXd6wG5QWe005QO/jUoQL5Lv6 tp50CblMJIA90qIV8fGQn5nulaFEAh8KBDq3EPf/iij9JdgN1A0ZGy3NtdhJv3i+INxN fWlPxupoRUoS8XL4D0couyvxsbL+MqPomF4cLQRKCmc28ZMcJodCuCfIzNlqVEFcCloK 6QI01shoNA3Q7AoM60RF2+raoyfdPyflEtTE5hzlVP+kw1JZAavupJ7zRAhTpRhPGNRq ISmVBoFjC67c5Vx0NKObgiN4lI5I1UgkfdWfdHMLarewDoEm0UYKpZQmFHt35q3BXLtI uWJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gWrfmUvmczY9Ye+Pr2g0BSFcyfcAgL193u3fjIy1N4Y=; b=cJBxqJPp9ktbysQEdBeDcqX243RymjtrHJTAAWScmMNpzKgCJeIBgao7aGx09G2ACa zk5h2TvfVTi6TCJQCu9xtv+J4kTnH7YdeQRp1YFNrAg1HVFn0B0gxSik5LWtXfA9rDVh b2cj2JJhre3ZlPE3eDvKBj84VaaHvMGrzWbTWmNqf8lFCWXWNAJKqqBqGnq8m3r2/iYs YuUMWydNoDTMTsKyvCWYiOkpS059fy2S5pfJB8q68eWhH+LfRH4yfrrfBT3i/QyAfzWB /7HIxN7OAoTANTfDxyOKgwR87FscMVCPHyPNXCaatHh4nyXaczKYdJiy/aFgiAFJ50+Z 5pcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=googlenew header.b="mCW/mV+2"; 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=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si2415980pgp.181.2019.08.29.09.36.27; Thu, 29 Aug 2019 09:36:43 -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; dkim=pass header.i=@arista.com header.s=googlenew header.b="mCW/mV+2"; 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=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727773AbfH2Qfd (ORCPT + 99 others); Thu, 29 Aug 2019 12:35:33 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:39027 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727474AbfH2Qfc (ORCPT ); Thu, 29 Aug 2019 12:35:32 -0400 Received: by mail-io1-f67.google.com with SMTP id d25so5654994iob.6 for ; Thu, 29 Aug 2019 09:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gWrfmUvmczY9Ye+Pr2g0BSFcyfcAgL193u3fjIy1N4Y=; b=mCW/mV+2Zet4DnsT0J9ry/QEDNvvfWVPRxF+fU90EoDLur8DOlh0dzN52gBa3d/dsY S5OybsNUGwjUhHRpdv/Rk1mN9zWng8ehkcHS2iZLITSjc24tUX906mFaR8L86AH+jncZ ia3ueIIt0kz4cMjOnYFL3DnEp7BnEwqR0yvGQjyQBGwTN1NOj0P4U+novHoEUURgEmXd 1gWv3cvtZEnhok9SYTOVFkDHuX4z7g4w8J2Fel0eCd9RHhO6EMvjXWHOBBkD/myvSby/ fHQ7b7YnU5skMwBByLvB8XavyuRWZGWFvQMx3yR3ZU9GOFiOz9tbbhWwTJo++cehM7S2 OBMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gWrfmUvmczY9Ye+Pr2g0BSFcyfcAgL193u3fjIy1N4Y=; b=JwBi5IrWYkrM/IW1BZY2t0uwR1W9mrg7uusZlmwzwxLPhTIqSwdRbShicch6rjr/UO /BIwqIcsEyGKKOm6fgsrKr5Mue+ioukos+8/+iOvmplcWxgA55bRXzSXn22fmjgBLgCJ EqDsjWn8bTTd3NClZZGPrFS7PVGDPF+YTjaPJZ1s9/Mc2eDdwrGjGjmvCa9gKdahuSU3 OzA8xHrP6mRBhjlN1YZ0hobxrTSYmn6u6dA4X+QoKnSqWgsIqEsAuAZUhSDcYTO221O8 Llx5kvoMrEF1VzcyLxw76rGp0oeHuWUAWe08bJjt5COx2j4srBgH0B83AzsvxgmhVVVK D0wA== X-Gm-Message-State: APjAAAWCOt0i78uRxGUUlTjg67uqRfWnUGP5GBUm61qoTHLp5X7gLBjt V2XmYl+LVShUNyWaYcLVPc19qqVyqwfAztdmkuSo6Q== X-Received: by 2002:a5d:8591:: with SMTP id f17mr1731248ioj.5.1567096531180; Thu, 29 Aug 2019 09:35:31 -0700 (PDT) MIME-Version: 1.0 References: <20190826193638.6638-1-echron@arista.com> <20190827071523.GR7538@dhcp22.suse.cz> <20190828065955.GB7386@dhcp22.suse.cz> <20190829071105.GQ28313@dhcp22.suse.cz> <297cf049-d92e-f13a-1386-403553d86401@i-love.sakura.ne.jp> <20190829115608.GD28313@dhcp22.suse.cz> <20190829161759.GK28313@dhcp22.suse.cz> In-Reply-To: <20190829161759.GK28313@dhcp22.suse.cz> From: Edward Chron Date: Thu, 29 Aug 2019 09:35:19 -0700 Message-ID: Subject: Re: [PATCH 00/10] OOM Debug print selection and additional information To: Michal Hocko Cc: Tetsuo Handa , Andrew Morton , Roman Gushchin , Johannes Weiner , David Rientjes , Shakeel Butt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Ivan Delalande Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 9:18 AM Michal Hocko wrote: > > On Thu 29-08-19 08:03:19, Edward Chron wrote: > > On Thu, Aug 29, 2019 at 4:56 AM Michal Hocko wrote: > [...] > > > Or simply provide a hook with the oom_control to be called to report > > > without replacing the whole oom killer behavior. That is not necessary. > > > > For very simple addition, to add a line of output this works. > > Why would a hook be limited to small stuff? It could be larger but the few items we added were just a line or two of output. The vmalloc, slabs and processes can print many entries so we added a control for those. > > > It would still be nice to address the fact the existing OOM Report prints > > all of the user processes or none. It would be nice to add some control > > for that. That's what we did. > > TBH, I am not really convinced partial taks list is desirable nor easy > to configure. What is the criterion? oom_score (with potentially unstable > metric)? Rss? Something else? We used an estimate of the memory footprint of the process: rss, swap pages and page table pages. > -- > Michal Hocko > SUSE Labs