Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2454000pxp; Mon, 21 Mar 2022 21:03:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTsRPT9skRaVPQ5F4XQ9Yx0FD4+cyxaF+UQm2Ziqsst1bCbs0uPPKJOOZr6KOvbjFzdddR X-Received: by 2002:a63:4405:0:b0:382:173c:1b97 with SMTP id r5-20020a634405000000b00382173c1b97mr17869568pga.532.1647921804425; Mon, 21 Mar 2022 21:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647921804; cv=none; d=google.com; s=arc-20160816; b=XvqWo2GDgqKkypGtYaEkxUh1L5atjK1YoOo0CwNpGleOaYLMcSBb3YZX64jI82rMuU dcsckNQ0reOf04k5ieXrznSGZE7hu6zuD6HxSsgVcZrJ4jvsfo7itQ98enhKOnLwSKVS /cYn5SwA4PH1opP0Dgjyrh/o6Bd0Qo78cCcJQstv5TFDYw2DRzMEYOK0opD99qMSEWCv xbjhUJHvG33OCr0iQsHT8/xCRTb0I50oqXbsvUcgGxnEQnR7JFR0aeibPqcT+h6AKKcw /Y5PcB8MwIdXxcsadHkz2cqR32uiVr6zMvOouAWnI0I0tZoF4FuT3snwkjFgFrReeuGN PDfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PmzPsSEKYvhyhANMX4sguPg6Lgk0mR2MoyENFqhEmKw=; b=GlaKZl1I56FEpRq29WQwdU+wKZuYhcmJKP5+clnlaL6AEc3mNDKDcGxgYia/8xVKf0 qGGcy0GQBdhb2qRWfqFUFl+vvKeo6/iqM/QqCvoi6CpU6dvGVz7NIBrcK4AIMpWw71fn c4kzZMvPQjDLahgLcAAgsVbyizpKa7EzYjDEg+JXWVPSVrK3xMDaboV2IdWSI5NzxGam /xFxRmWBRIZA348UDpxUulnnUEx53NFYYYVSpT7d+LJpEvXABX9Di9WSGuaARRy+Ntqr 4WrC7pZAf6Zv3NEGpgGbgL4xMY/hmuRIOlQnlAooLGQWVnMB01lGlYWKAGJriF0cQeu3 Hlag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="mk/1gfNM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id mq2-20020a17090b380200b001c6da33cb62si1302683pjb.182.2022.03.21.21.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 21:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="mk/1gfNM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 802A518CD3A; Mon, 21 Mar 2022 20:28:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236082AbiCVD36 (ORCPT + 99 others); Mon, 21 Mar 2022 23:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236049AbiCVD3w (ORCPT ); Mon, 21 Mar 2022 23:29:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E4E91557CC for ; Mon, 21 Mar 2022 20:28:26 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit In-Reply-To: <20220322032225.1402992-1-zhangyinan2019@email.szu.edu.cn> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 11:22:24AM +0800, Yinan Zhang wrote: > An?application's?memory?consumption?is?high?and?keeps?increasing, > then it is?suspected?of?having?memory?leak. There are several > commonly used memory allocators: slab, cma, vmalloc, etc. The?memory > leak?identification can?be?speed?up?if?page?information?allocated > by an?individual?allocator?are analyzed?individually. This?patch > introduce vmalloc allocator for page_owner. Why is /proc/vmallocinfo not enough?