Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8565174ybl; Wed, 25 Dec 2019 01:31:42 -0800 (PST) X-Google-Smtp-Source: APXvYqz4RHQsvKVH15styhL4CLEFcN2eRxiquhusjzRKrvtK+CMdhUxcWBYZsrolsosyt62FL64X X-Received: by 2002:a05:6830:15a:: with SMTP id j26mr41829791otp.137.1577266302606; Wed, 25 Dec 2019 01:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577266302; cv=none; d=google.com; s=arc-20160816; b=QtKTKb6tl0prqgP6edX5b2lO1nsSNYAzkJuv98LgSv6FR3p2PwtecndbEuB5mYXBNL kAC/exqR5X59L/+vYtFIYmOr+ALp7m+i1D0w0UMnu/rOV//l3o3y6En4haWkgnlSZSbH m0WKOeH2V6lXDz0pvYD0+G0Qxvd+oP0i/2clcn7JJixwbeFIvoPwvLsKjXYxUNqTevSN RwMTDxr9XRFEvJQOLjdS3QFm0oWi6V+6dEyzCNB7wFCxaM52XP6Ir8luEeV10Phunhuv rtKR4dC9nz7vgugRF45p2yMjKSMGpO5GBg/iPi2vtwUdzo6ad0GsJjIQByOikN0hAp1b 0y8g== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=MQpZnlOW3rHl7XcCvW/fiVIv7mvsoc4U1tYgVz64kwo=; b=RG+8caDcHKGC2cs30n/ZsJvpNBu7NoCECK3MaKX8F7IWiaLo5T7Bv3VqyyiNdNcdys 795rZ3Yf0c2SF7PhZkcg16kc1OAhEOT6KMG6D47YbH99zMzM+FeobtIRVVjCMZ5EvNre 5J0p+GPU5VHzjEDwClZYaUPIjxOFLzwEM4PkuVDIV8xRkWIv1T5FORCPp/BZptcT4QWk Qz3jPdt3JrcAhqe9nZSjKa5i7VZRSI8m9ciSdWsS761FWo0HyTLGNMLzJEN2hF2r1O7D CL9Ak5PFdBmQVW/Ynh9JpuLzSii+SPnJFXkOBlceyVIZ6pAu69ND+Uvb2pNCEkfdoifP 6R4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hyyuIbMz; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si12958992oti.93.2019.12.25.01.31.19; Wed, 25 Dec 2019 01:31:42 -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=@mediatek.com header.s=dk header.b=hyyuIbMz; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726369AbfLYJ3L (ORCPT + 99 others); Wed, 25 Dec 2019 04:29:11 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:6623 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726025AbfLYJ3L (ORCPT ); Wed, 25 Dec 2019 04:29:11 -0500 X-UUID: b3d58ddf514249d9b3da9fc4c7ea5b75-20191225 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=MQpZnlOW3rHl7XcCvW/fiVIv7mvsoc4U1tYgVz64kwo=; b=hyyuIbMzic0VYRogqCCFKuTYs/TvNOwZZqr3i4C9wi7o02au4JYeRZIBX7eE+d+1YxCxemQ6wqkBH+jYcCav7rCqQf8lnogQrTosc5wa3vFbkbf5B95fVHzV0N2WDfTDe2trqnv7fkXez12tdAeRb9+VBen+LOYi5FRhcIK5Di4=; X-UUID: b3d58ddf514249d9b3da9fc4c7ea5b75-20191225 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 430936111; Wed, 25 Dec 2019 17:29:06 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 25 Dec 2019 17:28:44 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 25 Dec 2019 17:28:42 +0800 Message-ID: <1577266145.31907.4.camel@mtkswgap22> Subject: Re: [PATCH] mm/page_owner: print largest memory consumer when OOM panic occurs From: Miles Chen To: Qian Cai CC: Andrew Morton , Michal Hocko , , , , Date: Wed, 25 Dec 2019 17:29:05 +0800 In-Reply-To: <5E08DE19-5B71-4245-8908-548BB4FA861F@lca.pw> References: <1577169946.4959.4.camel@mtkswgap22> <5E08DE19-5B71-4245-8908-548BB4FA861F@lca.pw> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTEyLTI0IGF0IDA4OjQ3IC0wNTAwLCBRaWFuIENhaSB3cm90ZToNCj4gDQo+ ID4gT24gRGVjIDI0LCAyMDE5LCBhdCAxOjQ1IEFNLCBNaWxlcyBDaGVuIDxtaWxlcy5jaGV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