Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4943690pxj; Wed, 12 May 2021 17:17:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1FZj6MeoBAceIYl+qbnZfxp2fn2cEr/y4e1cmzP56X+eZW3EG8tDk9bce7Hdunmd2eMUT X-Received: by 2002:adf:f5c7:: with SMTP id k7mr4277088wrp.293.1620865073375; Wed, 12 May 2021 17:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620865073; cv=none; d=google.com; s=arc-20160816; b=OjqFS7eXttH+UeoEEukm0kqDrDWYzxyh1U6EqbWU7vY4bbb1eQVL8w9/S7QsbdMShF 6M/LB22NCdUuqZ4fh3rKbAaBJRzflOVFI7Y2tgVPfCTp4X2QGxTtrQ2H4hYjHN/OD9UR rZqg9vTV4MyRbFjZ+boHvDXLkckKmlQ2XEuMFpqe+wLBJ+3HrX/FGv+1MA1nzokTlasi cfoRhU2XJYJ/rKjzL9Ve1yCkW1b9SPQlPwUjRuhy9vAHdwkGijgPtFhV3MK/gZNmvxJ4 Rew6R6l2iWeHlSFmTAespemEMxAkr/JSGZQh2Ml7i0KnDomUFXkYaTR50JgDd3f9h0od ud0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Os6mjmGbJeAgvCeo5dDZDze8uAopn5oKLxHGHU01R/A=; b=iI8ziVFzM8aC94qLYLlLY8yULfVzGeA13X2rIvjiZuu4o2qJTJPH01nhYC+uTaP6gt QSr1s7IC0DTUFkcEqfokWg6B+MTlD8NjjajPQvG1LxnaiVK3ze2+pbDAdmaqyLEQD582 JvArnJ/bAc6QJlha8PsP2d/Otamu1JGeV5x91LKit8yGHDiLz1EJpFOgP0WDx2uCDfaR opDoNHtqa0UIL4MGBHyQA01oMM/C0OO6JiRAfH0I4JM6gzwabfFKMyQNYfsWbgci8Aub CMJMZNlHb1OTBOkKqf2gqUWm2bsNBCS4GqqbV4gNlp9OgvihnaqUBSy6yXJdT7l1Rxub hiaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=iOyDKeio; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si1539362wrs.143.2021.05.12.17.17.29; Wed, 12 May 2021 17:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=iOyDKeio; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbhEMAN4 (ORCPT + 99 others); Wed, 12 May 2021 20:13:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:35970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242992AbhEMAIf (ORCPT ); Wed, 12 May 2021 20:08:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1FF94611F0; Thu, 13 May 2021 00:07:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1620864446; bh=24R24Rv/5s/FYQFsygQTGuMbS5mHRX+N/jGv9R0gjZo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iOyDKeioYQQXWFwXp70+Z87M3vG9d1wMmg1X9PjmACMFBJufW+6qemzEhqokue5pu zyW/7zYwq2+s6LSNIETVRdTYgEdBfrtm2PJzp8bRTPb5zue1CFSLAGpGfp143jzEBw t1B9DHcAMTynwnhqktD2ZpDPv6fLdI8XW/x4opZo= Date: Wed, 12 May 2021 17:07:25 -0700 From: Andrew Morton To: Vlastimil Babka Cc: glittao@gmail.com, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Paul E . McKenney" Subject: Re: [PATCH] mm/slub: use stackdepot to save stack trace in objects Message-Id: <20210512170725.de759a49cb116e5d4c303925@linux-foundation.org> In-Reply-To: References: <20210414163434.4376-1-glittao@gmail.com> <20210509214603.d2a5faaa3fe0d71c3517cb36@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 May 2021 16:33:50 +0200 Vlastimil Babka wrote: > On 5/10/21 6:46 AM, Andrew Morton wrote: > > On Wed, 14 Apr 2021 18:34:34 +0200 glittao@gmail.com wrote: > > > >> Many stack traces are similar so there are many similar arrays. > >> Stackdepot saves each unique stack only once. > >> > >> Replace field addrs in struct track with depot_stack_handle_t handle. > >> Use stackdepot to save stack trace. > >> > >> The benefits are smaller memory overhead and possibility to aggregate > >> per-cache statistics in the future using the stackdepot handle > >> instead of matching stacks manually. > > > > Which tree was this prepared against? 5.12's kmem_obj_info() is > > significantly different from the version you were working on. > > It was based on -next at the time of submission, which contained patch in Paul's > tree that expands kmem_obj_info to print also free call stack [1] so that also > needs to be switched to stackdepot to work. OK, sorry, I should have checked. > > Please take a look, redo, retest and resend? Thanks. > > I expected [1] to be in 5.13-rc1, but as Paul explained to me, it's queued for > 5.14. So if we (Oliver) rebase on current -next, can you queue it in the section > of mmotm series that goes after -next? I grabbed this version and queued it after the linux-next patches, thanks.