Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1342887pxb; Thu, 24 Mar 2022 18:14:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjh5oCk9KR68E7wbXb8kRgpPbYGEso+2f+MVnJmJssftFK1CWJasIA88KSvTQWn/wV1Xio X-Received: by 2002:a17:902:ce8b:b0:154:42e2:924e with SMTP id f11-20020a170902ce8b00b0015442e2924emr8861381plg.138.1648170892974; Thu, 24 Mar 2022 18:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648170892; cv=none; d=google.com; s=arc-20160816; b=PuUyNJFa0zzAuE+4ZuzCEWE5cnNjm2lDn8Tiww/XMcPf8o+Aobw3NnMXRpxj07hc4l 2LfFC05zUrLhHrV1U8Fk2IiY57N6/zb25J96gETruQAkpA8O753F4d+zDfHBmcbLzBqv RhJUcfcUgW+cTbG+03E4isjdDd46+QVJXUaJxA7NVvQ6EOW7MDIiABX2uvweR5MYJMzY 3PnvSPkNBFD3UwlEX2at9JlbkrxPDQvdx/scALUGUy3fDhriWhG3RO0/kO6qwF15DQIR qELu7H9PylnyNXn9CU0q5r+gydt7i0XdC2GPZCVyaUsOvBrdRJHFuQqc3fCgJnpCSVHb TlPQ== 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=M2t4Jekfi4ylUBVDAzWVT7+ZJOcHKreas8DectoUjr0=; b=MnVSdk8azvIfZi8gxyMS2UgsTQcB0rI9/ReET6hu/sI8tEch5N+toLLwMVS63tlEzr cS6mfMNYaNgKeErlGp8nGcMbQQ/4cvs76Dkmwd+TurWvtAPlKXva5g/7vQ6yLXCQhUn0 KvDT5vhg4znSqM0+S+588lqXWvP0k++CgfySKhC0Rk/aN+4UySRRdI14knV27xTzNTdf 2Dw5wGGE5tWOgB8FSVdp1FGQIrMgG2uM+JBs0P5TG7fdkVK5exDYYZtg7NdGQYLrsf4m 4IiCM3AYyvJYIda4rUEeYZaBiKe2UKlmqS39ZX7R5k8i5LVkJFrXJIyAMDYsl2rFXwm5 giUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="omRla7Y/"; 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 v12-20020a63b64c000000b0038243dc6a41si1051401pgt.337.2022.03.24.18.14.39; Thu, 24 Mar 2022 18:14:52 -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="omRla7Y/"; 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 S1355688AbiCXXQu (ORCPT + 99 others); Thu, 24 Mar 2022 19:16:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244340AbiCXXQt (ORCPT ); Thu, 24 Mar 2022 19:16:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DCE34D25E for ; Thu, 24 Mar 2022 16:15:17 -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 dfw.source.kernel.org (Postfix) with ESMTPS id ACEE4616D0 for ; Thu, 24 Mar 2022 23:15:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F356BC340EC; Thu, 24 Mar 2022 23:15:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648163716; bh=gX2zLmWmZ8H5bi3l6ekaAnBAVIrb/aTIimGY60hPKx0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=omRla7Y/yQts8G6/qZlYUShApkMhkvu3ziS4rQm7HTDveh1JhszVBkdN9oBlilCbN G4kkwmWC7lf1bRmjhaq2H0sPzvjQkzTSoLCs3fpu5lTB5N6xRHDhNfD+s5goh8lsru 4f9jaVI5VAH1IlJrWjIm6Th9yBFBEl9FuEf53khg= Date: Thu, 24 Mar 2022 16:15:15 -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: <20220324161515.19e74f062210861d71ac414b@linux-foundation.org> In-Reply-To: <623bc151.1c69fb81.12d57.ef3cSMTPIN_ADDED_BROKEN@mx.google.com> References: <20211129145658.2491-1-zhangyinan2019@email.szu.edu.cn> <623a8074.1c69fb81.33a39.0d6cSMTPIN_ADDED_BROKEN@mx.google.com> <20220323120805.45fa9e5a0da60b861bf94671@linux-foundation.org> <623bc151.1c69fb81.12d57.ef3cSMTPIN_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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 Thu, 24 Mar 2022 08:54:34 +0800 Yinan Zhang wrote: > on 2022/3/24 3:08, Andrew Morton wrote: > > On Wed, 23 Mar 2022 10:05:28 +0800 Yinan Zhang wrote: > > > >>>> *(&list[i].txt+offset)) !=3D 0) { > >>>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 list2[count++] =3D list[i]; > >>>> =A0=A0=A0=A0=A0=A0=A0=A0=A0 } else { > >>>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 list2[count-1].num +=3D lis= t[i].num; > >>>> > >>> > >> You are right. Due to timestamp etc, it's almost impossible to > >> > >> cull by txt. And I did observe some blocks differ in head and same in > >> > >> stack trace on my linux. The examples I mentioned in patch are > >> > >> part of them. > >> > >> > >> Besides, --cull has been added in patch: > >> > >> tools/vm/page_owner_sort.c: support for user-defined culling rules > >> > > So should I drop this patch? >=20 > you decide. I'd rather not. And dropping this patch makes a huge mess of the series. So I either ask for the whole series to be redone and we might miss the merge window or I send it all in as-is. Sigh. I'll send it all in as-is. Please continue to work on this issue and if we decide to drop the -c option, please send along a patch to remove it over the next week or two.