Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1644694pxb; Fri, 25 Mar 2022 02:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCchAmFHkW0hVaEmtLCszbAxvrmFyonbbB7t7k9A4qgQw1C4vehXYBnSq4EQhajBtxYefE X-Received: by 2002:a17:902:e202:b0:154:35cf:a029 with SMTP id u2-20020a170902e20200b0015435cfa029mr10734904plb.70.1648201859089; Fri, 25 Mar 2022 02:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648201859; cv=none; d=google.com; s=arc-20160816; b=Mp5GRzquqyAw01GpzKb5AZLiawvJfJAsoa6+eDGcwMc/u7xlXCeZUT3IBtiLvGqg0D 5JsWOqRB4CogC8Ba/BvCyvxGUcn/9hIJ2hqnesjY+cNA6RUTT3JkC0dkCTBTsao2pXul D5AmoKHDpNaRfFpCaIVxe04LnyQ/4XJqbesMX/P/uTX71jPDUHgVkINzBYjDi6r9WuIW 3lTE1enxM1S7yh6MOQnWvtTggPjCUjZ9hvFILeuwk1ApVjcL92bqHbJkF+9yeFQEG+VZ F+UuTr0uqd6qmsKjZoxMyQbTenYHH6SSyRR+al48A2TpAtohsYM7ZiEbvLxaBzm3j2MK nO+w== 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=zFdZWs5OnOMMmacYkRRB3t4RUItHRUGPpw62iNiScpE=; b=jX9fFapkdbmxqbBmu93qY2f7zFSzQdVcSDpBQSWREKqMsINztMf3pJYwNW0x9GfP11 O2IfAhPPFnptURFg7qqVzMIOHMSi9O2hB1eebx7Krsh4nMNwfT9wi3OnupDocsxWtz6W qiBsu+luQ+XhP83F5ByrVRDMdyDfNr8NaTb5Zb+XiyeqRblFQyqS52aeE11y0gQiHTDo 23f0pXstcDtq9RAoLqAgZRCviERhDoLmg2jmmAhO8YP4GjFluzyk1GMBcE5mdm80WShJ HLQqrQZ/47SmM9j0JombHDxMVYR+fjiXG7FzqkbTQh8plTacq75rcOwkMFkLBEThkV8v Dbkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=dqT9ytUV; 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 pi2-20020a17090b1e4200b001c7c2817d99si2376681pjb.53.2022.03.25.02.50.46; Fri, 25 Mar 2022 02:50:59 -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=dqT9ytUV; 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 S239986AbiCWTJm (ORCPT + 99 others); Wed, 23 Mar 2022 15:09:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237520AbiCWTJj (ORCPT ); Wed, 23 Mar 2022 15:09:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAC912188 for ; Wed, 23 Mar 2022 12:08:06 -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 922DE612ED for ; Wed, 23 Mar 2022 19:08:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE63AC340ED; Wed, 23 Mar 2022 19:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648062486; bh=zFdZWs5OnOMMmacYkRRB3t4RUItHRUGPpw62iNiScpE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dqT9ytUV8lU7Oe1jcuq+pjd+gGNfNq2R7xnln1481nx3ky2I2lVnpd6nplo1FbM2U cEhCtJ58dcU4lwVrg0KaQUJO0X614roDGJuCJEPcWNh65iCQgF7NpyWiBZE+76jKQN 1aUSagLRTh5aVlago+hFN6gcEnwxUYZ4cfSbQhr0= Date: Wed, 23 Mar 2022 12:08:05 -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: <20220323120805.45fa9e5a0da60b861bf94671@linux-foundation.org> In-Reply-To: <623a8074.1c69fb81.33a39.0d6cSMTPIN_ADDED_BROKEN@mx.google.com> References: <20211129145658.2491-1-zhangyinan2019@email.szu.edu.cn> <623a8074.1c69fb81.33a39.0d6cSMTPIN_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 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 list[i= ].num; > >> > > > > > You are right. Due to timestamp etc, it's almost impossible to >=20 > cull by txt. And I did observe some blocks differ in head and same in >=20 > stack trace on my linux. The examples I mentioned in patch are >=20 > part of them. >=20 >=20 > Besides, --cull has been added in patch: >=20 > tools/vm/page_owner_sort.c: support for user-defined culling rules >=20 So should I drop this patch?