Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10984882ybl; Fri, 27 Dec 2019 05:48:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyXOELEgGmcy3rnaft3cPa83qVe07qTX17fQm0WbZICS6D6lftcthTYSSGWrnm+s4SnEAz0 X-Received: by 2002:a9d:6456:: with SMTP id m22mr31686289otl.81.1577454484266; Fri, 27 Dec 2019 05:48:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577454484; cv=none; d=google.com; s=arc-20160816; b=gRLC31/b09B7glHB5qlfSOjh2HjWohHtoL58eaMcmoEDVdyMKtQ6iF2bgfosZUhP7V DUQHqKxrI7FdVOZ6kDnfMruFWrkUnM8SMyF/LcwB+UPTZ1+F7jtmJ7XoAvV9FL3si8n6 lmeQ1/OU8e5xAQpANLOtTPXaoQjmtaPrYjT5oezlg8G1rCWBa+hChQaC4PMoP1HqW3pM vJ9PZjoe+GqAAFGCzweVz8Bifk/DtsP4thBciXlaeLOxDAE2+SelUlpONCnUzwfCdrvE 5kEEy/InT+BqleEh80ubo16bTRDHa02enTbb2ts72pUSVomDM627YvY0uu8nE2zsg8TH 9Z6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=6etHYhtSl6+gXzRLDDVOeZLed1tEXttA1I2y9xptx5o=; b=q06Ukc+ItWTcLWpGZJCheGSul8MFQj6R5BGl9tH6eZhhm///XNXOAWTXrZCXCtVtan xyr5vBinh2Z/UoFcLCEZ9x9nLTejiU3am9PPGgsRuPklmmAmv5EakY/WC6aIvljSUIAV UUk8RmYGb93gXcV27B/UgmepGIjAniMpbgLalxYTa781RajaGaosFEtIGSnzdK1u84tB hyuNz3KOheH1y30NVTuF21z9r0bYExwaKr5YpJAcfixOpz2pvW+3cJrFoYn2yeQELbse dwSZT78svXJT1jguutXRa8+pPCqTwzyWdbzeQE4tfXOOvbGL1mLo5NNassa0XXiC3jY4 BR+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=pVibluFE; 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 l21si15400745oic.126.2019.12.27.05.47.39; Fri, 27 Dec 2019 05:48:04 -0800 (PST) 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=@lca.pw header.s=google header.b=pVibluFE; 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 S1726495AbfL0NqH (ORCPT + 99 others); Fri, 27 Dec 2019 08:46:07 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:44454 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfL0NqG (ORCPT ); Fri, 27 Dec 2019 08:46:06 -0500 Received: by mail-qk1-f193.google.com with SMTP id w127so21518811qkb.11 for ; Fri, 27 Dec 2019 05:46:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=6etHYhtSl6+gXzRLDDVOeZLed1tEXttA1I2y9xptx5o=; b=pVibluFELp7k4SND3Z5PjkskuFcDEeleMyhu5q8UEudXaNsljge7lU3JQfwHJJ1TX7 F6s8BebrG3hXu1iJcapwKjPQ9/C5GEB+LZkoThO+FUeysWg5mVzBLhV4Amv+/ZgFst1l znnBHcKy1vu01qdHze6Ng4uc/YW22LUXyF9VPGd34q718iUKq/qdM2lbalyjVMQetBNb cOSkZo8XEtcUAQAGI4P6ciyVfjl+IauE7KBXn0ovpan7wcCxY4N2NC3wVt2aI7wNBk8o rmd7NzBk+lsuym0EqZQ6T2uxOnhUG/PTR6rUMmmMIbhDZpc+GQPWIKk/IFEAmfdH5Zbe Tlrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=6etHYhtSl6+gXzRLDDVOeZLed1tEXttA1I2y9xptx5o=; b=hrkvSJLRyqy/sbAltgXm/Xx7BomlOIcTO0iw+i+4bWwBBSuc6glSiM8uxnq1IMmjMZ TuTm9hdfDhTOvrILVn1YXzUq+JSvEN18CnOv8qqqcm4tGcLInE5YhyAkovoRBq8u+0W2 ePxbDnpXjMbZnUx31ES/wWg7/hAV0uqQwahHN88ofg1FUjcO0BwEKR1KmV4yNuzbyMAS GJSPXFl0Yi3n/MMJBFMNVjuMiyCWpeDCwq6bJwI5Yq5V2CRLPw61izINUMbZGhD2bEhr tZ0TfpYLrZYnSMGQ4NvsJDuGP1UkWbVH9dysNXQQv47UAidmYKl3kPC55HgtGhq8PEgS fV6w== X-Gm-Message-State: APjAAAVIC3sPDW1BlEL6Qu1TTkE3e3Y5R/+OgOsSg7+6zS9KOcfoekgc uDBf6WlWLNsh3IKniNONN35PoBe5yYM= X-Received: by 2002:ae9:c317:: with SMTP id n23mr34496883qkg.356.1577454365616; Fri, 27 Dec 2019 05:46:05 -0800 (PST) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id 16sm9787242qkj.77.2019.12.27.05.46.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Dec 2019 05:46:05 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] mm/page_owner: print largest memory consumer when OOM panic occurs Date: Fri, 27 Dec 2019 08:46:03 -0500 Message-Id: <2EA70B54-A7E1-4C5A-A447-844A3FEA7E93@lca.pw> References: <1577432670.4248.3.camel@mtkswgap22> Cc: Andrew Morton , Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com In-Reply-To: <1577432670.4248.3.camel@mtkswgap22> To: Miles Chen X-Mailer: iPhone Mail (17C54) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Dec 27, 2019, at 2:44 AM, Miles Chen wrote: >=20 > It's not complete situation. >=20 > I've listed different OOM panic situations in previous email [1] > and what we can do about them with current information. >=20 > There are some cases which cannot be covered by current information > easily. > For example: a memory leakage caused by alloc_pages() or vmalloc() with > a large size. > I keep seeing these issues for years and that's why I built this patch.=20= > It's like a missing piece of the puzzle. >=20 > To prove that the approach is practical and useful, I have collected > real test cases > under real devices and posted the test result in the commit message. > These are real cases, not my imagination. Of course this may help debug *your* problems in the past, but if that is th= e only requirement to merge the debugging patch like this, we would end up w= ith endless of those. If your goal is to stop developers from reproducing is= sues unnecessarily again using page_owner to debug, then your patch does not= help much for the majority of other developers=E2=80=99 issues. The page_owner is designed to give information about the top candidates that= might cause issues, so it make somewhat sense if it dumps the top 10 greate= st memory consumer for example, but that also clutter the OOM report so much= , so it is no-go.=