Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2466817pxp; Mon, 21 Mar 2022 21:31:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkJabkLYD/P7K9uvz9JWu8WgnKycvQDTJhfden1zL9NrDSd3p+xEgbYF5OrOnh+xOerhf+ X-Received: by 2002:a17:90b:350c:b0:1c7:5cee:3946 with SMTP id ls12-20020a17090b350c00b001c75cee3946mr1313734pjb.42.1647923487823; Mon, 21 Mar 2022 21:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647923487; cv=none; d=google.com; s=arc-20160816; b=AX1B33/LUmL5SxlhRZWzWQHph1nT1Hs4DV/bbXWqidyn4QH/zBFuFoVhKUvEZEmUPX 7ZAnXxK8mZBmg8PmxCJc7zCgXDhygGTQDDI7C8YNpDWVLp2iv9i4LxibnFo/hz6/u8WJ hzWvrMzCSAr9+IohljvHcJQ5qxK7U8FE9LvI6hOnIv78/fyA2l0nNXnAoKLStz052FBJ VXrhZPouEnxiLzJP/7WrBGocwjfS1hMGvir+Xoi2gDfTIeHj6S/VT61TESUL4YyAc4kA DsJUfvb/4X4oxVmlXkJv3YhdTVlEZhWktEyryActxMP6BPgDCwXfbAEd6UATi6nyrYvZ RezA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=tlfk3ONNPBbJUJbNtqy9j6rAiRGYBugmq+fxnnZcr+Q=; b=iXZYpkCVbovlVxKVMd0qqR8zS/LwnuhcSATP8UhihYPKMP0FZ7XFGk8+i4y0h91rct cnGiMfS82OGMFZMuovanvLM+4CtpXiS832KW+SmF4LTuZZKyV4k/PUYHcqGDgOV/z4HY 5RCpawv6M0KTIrjHtG10XiJIVbXEBtxtOWmCyL+oPxzkAd8YMBYfzevU2Ds74wFZANFM 6u+fcG5w3AMPtdil5YBmPCR+NACzHdw19zcUxy7mHWYjOmLBU7u1drCwbYME7zT69KZS fQY9uHZkRsekDFzsUy417Q7gtlR61M/9bL9mzsW32+X4WUKTjhqsHsh6ipQWbZ3RS0CP 93bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IFQWsGyI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o9-20020a170903210900b00153ce7c9244si11363819ple.97.2022.03.21.21.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 21:31:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IFQWsGyI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 81A941BEAA; Mon, 21 Mar 2022 20:55:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236227AbiCVD5H (ORCPT + 99 others); Mon, 21 Mar 2022 23:57:07 -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 S236157AbiCVD5B (ORCPT ); Mon, 21 Mar 2022 23:57:01 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99714F43 for ; Mon, 21 Mar 2022 20:55:32 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id t7so13559064qta.10 for ; Mon, 21 Mar 2022 20:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tlfk3ONNPBbJUJbNtqy9j6rAiRGYBugmq+fxnnZcr+Q=; b=IFQWsGyIJJF6MdPAt31vuIJLMHHHHxLkreyan030730msKBzy3/LxS/lharYDduXpa jQ7vIhH5n7zs/jJAhL/PBY/1yjOfgBRj1b9XsxnfG1yW3ZxP7MyPsmTz2zcI+iJ5i53I FuoFvwRWmuz2NAAfoznPh5zlq4PmFjCCNC5/Q8HHO7pbUUvk6+77/dzQGOcWQypB8nKH r2SKZvIxeJGAcP0iNfumQV4rbL+JYGB4a8l0RtiqLjqK2obGKjkkB6SLLkvBqEZT1lqA IT/fPiDbuAu7/74GZFTc/nP+zFoZMI6skXFuMxy003IR+qA1fFd+idC5JczQzHdUCS2n UDBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tlfk3ONNPBbJUJbNtqy9j6rAiRGYBugmq+fxnnZcr+Q=; b=1c0cyxZv3jtprblEM0cxDz4Phm3wRsp0x7bY98SF3Eoyb2LKs083RB3s5mOUwinZLl Hah0vXofcu8XStlLXN/usvDDTkq0WScXDok5l2Sg5zAULFv712VRM5jG978rIls6FhLJ Rv/7qkf7zTDBflrih6leE5e00pVCLwhAZ6xx73TzRHlOB/9h3Xctr3FzWLtsTABqHaKV EksBbmyxFI4Rp4Sx0VgfU6JKVAxjHDW4CpZ5ozWS/Lc6omCRVdh6BzBfPlbIqhRq280H qmI/LkfFJl8dmmPJTHQ6ecYFcprwbRmqA4c3q8hsg7qXWbUu9j1e1ekEZVy3M0QeR0f2 kYkw== X-Gm-Message-State: AOAM532myonI4srxDBU/67e4I39ZXR7rGPzwsvBHGEsYwiW6bELfWoTS aAlw/ZBGjLivgWwtETTQXgb5uq7Y0c8= X-Received: by 2002:a05:622a:1346:b0:2e1:d588:df3a with SMTP id w6-20020a05622a134600b002e1d588df3amr19161237qtk.457.1647921331064; Mon, 21 Mar 2022 20:55:31 -0700 (PDT) Received: from [192.168.1.201] (pool-108-18-137-133.washdc.fios.verizon.net. [108.18.137.133]) by smtp.googlemail.com with ESMTPSA id u187-20020a3792c4000000b0067e679cfe5asm5048876qkd.59.2022.03.21.20.55.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Mar 2022 20:55:30 -0700 (PDT) Subject: Re: [PATCH] tools/vm/page_owner_sort.c: add switch between culling by stacktrace and txt To: Yinan Zhang , Andrew Morton Cc: linux-kernel@vger.kernel.org References: <20211129145658.2491-1-zhangyinan2019@email.szu.edu.cn> <20220321133825.6f003c62381edbab361a8d96@linux-foundation.org> <623932d3.1c69fb81.e3278.ab09SMTPIN_ADDED_BROKEN@mx.google.com> From: Sean Anderson Message-ID: <0f3fca6a-cd9d-a5f7-2eda-3e3a9ceae564@gmail.com> Date: Mon, 21 Mar 2022 23:55:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <623932d3.1c69fb81.e3278.ab09SMTPIN_ADDED_BROKEN@mx.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 3/21/22 10:22 PM, Yinan Zhang wrote: > I replied to the email a few months ago. Did you receive it? The patch was applied anyway. Anything in this subsystem gets applied within a day or two regardless of feedback. Personally, I'm not motivated to review anything because of that. --Sean >=20 > on 2022/3/22 4:38, Andrew Morton wrote: >=20 >> These comments were not responded to: >> >> On Mon, 29 Nov 2021 21:23:41 -0500 Sean Anderson=C2= =A0 wrote: >>> This is working as designed. IMO there's no point in separating >>> allocations like this which differ only in PID and timestamp, since y= ou >>> 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) >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 case 't= ': >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 cmp =3D compare_num; >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 break; >>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 case 'c': >>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = cull_st =3D 1; >>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = break; >>> Can we set a "cull_cmp" variable like cmp? >>> >>> Looking forward, I think something like >>> >>> =C2=A0=C2=A0=C2=A0=C2=A0page_owner_sort --cull=3Dstacktrace --sort=3D= 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.=C2=A0 Please work with Sean to address the= se >> issues and lets get this resolved over the next few weeks. >> >> Also, please cclinux-mm@kvack.org=C2=A0 on changes to page_owner. >>