Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7274351ybl; Mon, 23 Dec 2019 22:47:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzIv18t3c1ZETWatMlKCXpf5S75QVPBhxCFMPNOTE/Wdm+Q2WKE0nXqlkqZvM0Uh5MYBvHg X-Received: by 2002:a9d:7c8a:: with SMTP id q10mr34682152otn.124.1577170078507; Mon, 23 Dec 2019 22:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577170078; cv=none; d=google.com; s=arc-20160816; b=cDaMSDSndGBXoHlg/se5hJKqdoE1gFl+tC8ogEXUEsSZMaslOniLAjpZN2cboCcTaf er0P0oK20ZPw2LuRibskKhQGPtO8Q9zFgTz/Ef/Fznz7U4UkMiiTAFP/5L0WiN5feDAM Kj7/jbIy5qNZZ5XzfQ7ZBfkUso1oQ5I2iIv4V94+Ek1LSFanfKURr7w6bjgO++LoWsQX brQef1o7f7JjrMA7qP4+PUDVWf48ey85eXdAOo25xQP2/D7hQmyjrJ8NWo8n1AHXGr5J TizqgvMrzlMAleXp4aSZTrVSwIhnO4WzRHGPWo8oDWMfxyy/liKQ72rRGbTLPsIu4N8n JIBg== 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=do9D8AlCvPhD0SmX2gVAgc7Wbg5LH00onuMFoimiBbE=; b=dk2vN19X4QY5qyebcM/pXjQLlJhj7sETm5YD5Hv3QWew3UanMToAsejiqV6/mGAy8V ry6B+XAwvBCWcWTZucM2BZuAbsUqyPprfUrqr5gBngMsczpnxAt9xUSJxB9rO2hIB/Ek i+f/FCzgBq/VwCYOgfC5TVbYry2IH7unIOdmS3G1CZZxR9FfyquqbdivUt3OTzXFL7d9 ZtVKZ3FaNWVj5xYzh9Xf/Fvr5ap4C7dkxG69WU7f3YP9MmaaoF/sUUMgVgfnYSVCaviE dzPTX5tiqWSKQgOXBUrw6oRwhSyLgHJ9AY8DjeIsQoCN9f3PiKiGOs1V/PFdRFjKy8nK MeFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=vHhuFcaP; 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 u3si10793487oif.167.2019.12.23.22.47.46; Mon, 23 Dec 2019 22:47:58 -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=vHhuFcaP; 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 S1726222AbfLXGpw (ORCPT + 99 others); Tue, 24 Dec 2019 01:45:52 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40711 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726065AbfLXGpw (ORCPT ); Tue, 24 Dec 2019 01:45:52 -0500 X-UUID: 7c28c24fbab84d0ebee0e25d45e7157a-20191224 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=do9D8AlCvPhD0SmX2gVAgc7Wbg5LH00onuMFoimiBbE=; b=vHhuFcaPFF6+/N5fRgSYHgRaHkaFB5XGHzjYuj0vYwi4r8wv0RDyeMiF4+kvfold+daEHrVlWDiYS2DKL3A4WZ+Q9LVeBxvZkpxoWGzk1RiI1d+eb2z1+4IeAmrOh5y/OUUlUK9sGkm0mZA/FINIfLW0rN6DY8ySDK69tJpYJWg=; X-UUID: 7c28c24fbab84d0ebee0e25d45e7157a-20191224 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1592447600; Tue, 24 Dec 2019 14:45:47 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 24 Dec 2019 14:45:26 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 24 Dec 2019 14:44:48 +0800 Message-ID: <1577169946.4959.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: Tue, 24 Dec 2019 14:45:46 +0800 In-Reply-To: <2B938D94-FFBB-4A3D-AD07-D7D04A4D4161@lca.pw> References: <20191223113326.13828-1-miles.chen@mediatek.com> <2B938D94-FFBB-4A3D-AD07-D7D04A4D4161@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 T24gTW9uLCAyMDE5LTEyLTIzIGF0IDA3OjMyIC0wNTAwLCBRaWFuIENhaSB3cm90ZToNCj4gDQo+ ID4gT24gRGVjIDIzLCAyMDE5LCBhdCA2OjMzIEFNLCBNaWxlcy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