From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78539C433EF for ; Tue, 22 Mar 2022 03:28:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F0F4B6B0072; Mon, 21 Mar 2022 23:28:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EBBAA6B0073; Mon, 21 Mar 2022 23:28:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D5DAF6B0074; Mon, 21 Mar 2022 23:28:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0206.hostedemail.com [216.40.44.206]) by kanga.kvack.org (Postfix) with ESMTP id C3BD16B0072 for ; Mon, 21 Mar 2022 23:28:32 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 66B749F5C7 for ; Tue, 22 Mar 2022 03:28:32 +0000 (UTC) X-FDA: 79270589664.24.2B72324 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf08.hostedemail.com (Postfix) with ESMTP id 6E061160002 for ; Tue, 22 Mar 2022 03:28:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=PmzPsSEKYvhyhANMX4sguPg6Lgk0mR2MoyENFqhEmKw=; b=mk/1gfNMyD8Tbu45EN0gijuV2K qk8T4dUfPkMENKDrupG+/GfXWOowOd0HTyBG4Uzy2UAf2hhyZZaEk1m1S3S3m8ff1OWwZTD2mMEiZ 3rZNLgp9BBSeikPTKE9xDu1GuQZamXSdnXVpF2THB275OapMj5NU66adFsU4V+zk0YvqKaoDP+7Gn YSFRbLycxi0MKWykLCx9MqFildpP1A3+T+94FPEIgyCvBFw+CPA9olkXh+fiYocgV3f6gBwfd4lDL DCIdRWFQGe0+ZGMr8GaY8hhWEKRo1HcgdOGkVNHktNOuCTFpI6LzLooO0AiCv3Idm5orpcv0e6DoF dp9G6NcA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWVBs-00BDz7-I6; Tue, 22 Mar 2022 03:28:12 +0000 Date: Tue, 22 Mar 2022 03:28:12 +0000 From: Matthew Wilcox To: Yinan Zhang Cc: akpm@linux-foundation.org, vbabka@suse.cz, william.kucharski@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, yejiajian2018@email.szu.edu.cn, hanshenghong2019@email.szu.edu.cn, caoyixuan2019@email.szu.edu.cn, zhaochongxi2019@email.szu.edu.cn, yuhongf@szu.edu.cn Subject: Re: [PATCH 1/2] mm/page_owner.c: introduce vmalloc allocator for page_owner Message-ID: References: <20220322032225.1402992-1-zhangyinan2019@email.szu.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20220322032225.1402992-1-zhangyinan2019@email.szu.edu.cn> X-Stat-Signature: g9oyptpf8d3dezxg6ashm6f85u1xzqym Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="mk/1gfNM"; spf=none (imf08.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 6E061160002 X-HE-Tag: 1647919711-418965 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Mar 22, 2022 at 11:22:24AM +0800, Yinan Zhang wrote: > An=A0application's=A0memory=A0consumption=A0is=A0high=A0and=A0keeps=A0i= ncreasing, > then it is=A0suspected=A0of=A0having=A0memory=A0leak. There are several > commonly used memory allocators: slab, cma, vmalloc, etc. The=A0memory > leak=A0identification can=A0be=A0speed=A0up=A0if=A0page=A0information=A0= allocated > by an=A0individual=A0allocator=A0are analyzed=A0individually. This=A0pa= tch > introduce vmalloc allocator for page_owner. Why is /proc/vmallocinfo not enough?