Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3320123pxp; Tue, 22 Mar 2022 17:23:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybdTMZaQYcPXNHC1H/AaAVxnOR+mzUdT32BEFk0SaKF3RHchO9DBjm8T7+eDs0tXkYcwMW X-Received: by 2002:a17:907:7204:b0:6df:6b63:cf49 with SMTP id dr4-20020a170907720400b006df6b63cf49mr28186873ejc.498.1647995018753; Tue, 22 Mar 2022 17:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647995018; cv=none; d=google.com; s=arc-20160816; b=zbnE6umVmM6EEbm0vhiH/fHyf2uVIuHrCq8KhQjVU2/rRf+Rsf5XH/a2DZIeiGn4+M dOovLmHEtEzE8S8TV80ExJtM7puBsAVxpKorVawwRe7sNtEAuFdhBeMd+Zn/dOs9rWBp 0VompPx3BDTxlCm0d2pQnyKfVsBYViKOc1fbjn6CFw/Q2khcDOvvJsr2d9V8iZMCgR4W +hIbOxfr6vPgYk9TAYRtrBKzI4WA/j6PiFtzAo450l2kRsUX+zbE7NM+odfP5WNt61ld /+FTy4g/m5HWM8xcChqAt+E34fbV+iS34RCItey8Ye+iIl/UCGkrBpjGGsPzmQwW+CbD W0yw== 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=4k3jqPzrg+o9/Cg8VZgRzz9AXx2jRVImPP8GCSbmpDA=; b=kGjP5sLICPj6QIpWF5e5sFLpZBewZUODC2aEFy6Y5iUdrfoPuRcI61rkfs7LMS+BlH 6v0MpXeliarWXPqECex8kNy5BaR+ePMscHj5KxE039bsmd4BXDh+sfeWS7PZBKcp2RLa mnnzC+m1fb02fa3ICNxzPcJBtDZ1lwavac11wEFoUCfjPo+6bHtfkDkkE9+2qhUigA2t ywxxx9KdWvMxkok4Yw18RMZOESp/l2kMMu/Z42K+mwEUs7+rHBQgBkZxBWiO5YLg50JS zyRJ/mN/nr+LUMTDAoTb/wyhlpKSzG9bnHZj5clu45JUNkYn8pnoJMBuJg5vtMzH6cXh A6MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Ir6LCK+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a50fc07000000b0041935da594bsi5650915edr.164.2022.03.22.17.23.13; Tue, 22 Mar 2022 17:23:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Ir6LCK+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240095AbiCVSC1 (ORCPT + 99 others); Tue, 22 Mar 2022 14:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240093AbiCVSCT (ORCPT ); Tue, 22 Mar 2022 14:02:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA9E674D3 for ; Tue, 22 Mar 2022 11:00:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4C1B3B81D36 for ; Tue, 22 Mar 2022 18:00:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB27AC340F0; Tue, 22 Mar 2022 18:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1647972040; bh=8WWwmLlNe1EYEj4DzrflF2uVllZ805Y7mQ/as9vhofY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ir6LCK+GyiOi/zjhFD5pbZy7dhL5u5cGtV+O8Jff/V4zCM3894EBbQ79PpCVYMjma /IUWINLVxM8uVNJm4hZ1UNC3Q4i6xeQ/oj3z5yuVKYX6vaQUSj9wpJMlrgcf8M3nRV AdLovh+I4YDjES9G0ZEwDT+1qiCot8YHPDfg/m/0= Date: Tue, 22 Mar 2022 11:00:39 -0700 From: Andrew Morton To: Yinan Zhang Cc: Sean Anderson , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools/vm/page_owner_sort.c: add switch between culling by stacktrace and txt Message-Id: <20220322110039.f90dabd5f41fb0300cb6be29@linux-foundation.org> In-Reply-To: <623932d7.1c69fb81.31089.1923SMTPIN_ADDED_BROKEN@mx.google.com> References: <20211129145658.2491-1-zhangyinan2019@email.szu.edu.cn> <20220321133825.6f003c62381edbab361a8d96@linux-foundation.org> <623932d7.1c69fb81.31089.1923SMTPIN_ADDED_BROKEN@mx.google.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, 22 Mar 2022 10:22:05 +0800 Yinan Zhang wrote: > on 2022/3/22 4:38, Andrew Morton wrote: > > > These comments were not responded to: > > > > On Mon, 29 Nov 2021 21:23:41 -0500 Sean Anderson wrote: > >> This is working as designed. IMO there's no point in separating > >> allocations like this which differ only in PID and timestamp, since you > >> will get no grouping at all. > >> > >>> The info of second block missed. So, add -c to turn on culling > >>> by stacktrace. By default, it will cull by txt. > >> Please keep the default to actually do something in the cull step. > >> > >> ... > >> > >>> @@ -162,6 +171,9 @@ int main(int argc, char **argv) > >>> case 't': > >>> cmp = compare_num; > >>> break; > >>> + case 'c': > >>> + cull_st = 1; > >>> + break; > >> Can we set a "cull_cmp" variable like cmp? > >> > >> Looking forward, I think something like > >> > >> page_owner_sort --cull=stacktrace --sort=times foo bar > >> > >> would be nice. > >> > > Which is unfortunate. > > > > I'll send the patch in to Linus anyway, as many other patches > > syntactically depend on it. Please work with Sean to address these > > issues and lets get this resolved over the next few weeks. > > > > Also, please cclinux-mm@kvack.org on changes to page_owner. > > (top-posting repaired) > I replied to the email a few months ago. Did you receive it? I didn't, and it isn't in the list archives at https://lore.kernel.org/all/20211129145658.2491-1-zhangyinan2019@email.szu.edu.cn/T/#u