Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9815116rwd; Wed, 21 Jun 2023 12:13:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/Urk4YtrfO5ObMKt33YccKwhshBthXsCMFODq2BW+jt5UwD7ZwHNbrIKZzcHjh/4cBImn X-Received: by 2002:a17:902:8e89:b0:1ac:7245:ba5a with SMTP id bg9-20020a1709028e8900b001ac7245ba5amr5570265plb.61.1687374828602; Wed, 21 Jun 2023 12:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687374828; cv=none; d=google.com; s=arc-20160816; b=VfxfDjgwGdY8I422sGGkEno+aWW5P65/MGS0aicHCTS8nxjHq3cwsZnBS12sMeftre VE5LPLTLjEvlFqurp6G6zRtDl+YAa7r2SHmCI7aLPifs0vhCnnJtuUvysKXOJVbEjt/J I7BLkxw1Ybstc86+8kNY7bQb5hxGm6eDAL1NGMg7MOfQBwcLgWT6rvFlSHycEq6jOVti Vogh6Ij19UMItesy5DVxmPzcPnNjfzmQFGxoSxdouJjz2kpvGpU61Pcl0AxYAlgsIjRH FZj7DS1RmehKEehKhBNaGqI7jwVbek6wEZBi7gd2tpPylpUiWpN1ErUkGP8pWJT1IW5S uzJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ktaN2gfy2UoFzSis8IakrvfByDQPNIqA2OzFHTKqH6g=; b=GGX8lPFEmHoPTuEJWnqEs+MbdBscDSIRPA0Ckg0G7I5SswRuEH8taSpzvr3NVLC9il XSF+5YGG5p5kWD04recei+cxoytBGYVRPnpGIU5I4Q5e9BOZzfa5ebXo7v/48v7ZFZPW PXfFEMi7PCd7cgauhrIU4UYbmj78pCOBX3B7N9L8l2ruIm0/mTjhraI70Xj5/Oq+EHgp xNrd3rMGmPGf2bwEn47VEFFBaM+/R0ZrnDxTUqlSFTNxAYDh6sLh8qTLW4ind2BOwG+w wzz8gCHicgT+fy12px4JdKSGwAzfYRzccKQAnHYAtB+lNDgjNGDNDEBpx9LCqHeMAS78 529A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=6g8bjgJ0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a170903244a00b001b035ce0649si664718pls.372.2023.06.21.12.13.36; Wed, 21 Jun 2023 12:13:48 -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=@google.com header.s=20221208 header.b=6g8bjgJ0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231598AbjFUStF (ORCPT + 99 others); Wed, 21 Jun 2023 14:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjFUStB (ORCPT ); Wed, 21 Jun 2023 14:49:01 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8FD21B4 for ; Wed, 21 Jun 2023 11:48:59 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-3fde9bfb3c8so30541cf.0 for ; Wed, 21 Jun 2023 11:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687373339; x=1689965339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ktaN2gfy2UoFzSis8IakrvfByDQPNIqA2OzFHTKqH6g=; b=6g8bjgJ05d+rXqPxYemA4IWXC+J1Ela6mFMkncMRIuq1/qtJbHccQZq5eNnK8I5qe0 hHNtT089lxLYIpUCWKimJ7OvTnk3AqftjEne3x/QKdPrTQj7whhf9V7QXpmEIjhdikxt 3RUxgdzBP7JyIEHwuW1EfLOcXwuB5TITZDI0M9cW8LfCeT6p8VPkPbdIAj+Bz1xOsg4h wX9LbCEVcoDUhWSHLG5Y939Eqa61h2yFQYFGh0vJ5vX9YJMSwF0ASQbl++WFw3qZiFK/ UWDxKAbJQKcXA5CFkGIQw1AxgIxNjJ0wsXMZhvPgK37ovf8LI3YrUUA00uM18dZNvF5J 3yWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687373339; x=1689965339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ktaN2gfy2UoFzSis8IakrvfByDQPNIqA2OzFHTKqH6g=; b=SXCgfhXydZO4wDW7R2ERZQc/UowTtR23YdkGsPls/OTYQe7yaG4Yyx3VW70jDXXcov vr+h0GH8nW25Ti5eHJnA+HtDL+JXwri/N57rAGsf9Y6O8jploge++QZF/0mPxZZi+Rkk 3MECbd86xpiQbfnaxQhVuTYgJj1Ab3o8s7mnFjNBgeIA1fsG2FitWhywrpqUSM1ATYbQ zpgoeUh2/yPXGHpDdJ+TNH11Kys9g/Yx4nqYZJVf3qF6ydDEMb606opbg45iwaQusY7D KWikphCWt6EweDT77kpmZ3qtB/WfZUJlHS97N29aGwp3l5PYtFXQYVzeBrsne8LkbNkU RfxQ== X-Gm-Message-State: AC+VfDx9q0P+DpYT6Zu6+YmmjoaBlEzakzno9YOZA7TlkVt7EJJ6DYXi rQa6/qg1crHpESHgGIeK/yOOenLAxwjldS60wxPtDA== X-Received: by 2002:ac8:5954:0:b0:3ef:3083:a437 with SMTP id 20-20020ac85954000000b003ef3083a437mr284103qtz.18.1687373338729; Wed, 21 Jun 2023 11:48:58 -0700 (PDT) MIME-Version: 1.0 References: <20230621180454.973862-1-yuanchu@google.com> In-Reply-To: <20230621180454.973862-1-yuanchu@google.com> From: Yu Zhao Date: Wed, 21 Jun 2023 12:48:22 -0600 Message-ID: Subject: Re: [RFC PATCH v2 0/6] mm: working set reporting To: Yuanchu Xie Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , "Michael S . Tsirkin" , David Hildenbrand , Jason Wang , Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Kefeng Wang , Kairui Song , Yosry Ahmed , "T . J . Alumbaugh" , Wei Xu , SeongJae Park , Sudarshan Rajagopalan , kai.huang@intel.com, hch@lst.de, jon@nutanix.com, Aneesh Kumar K V , Matthew Wilcox , Vasily Averin , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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, Jun 21, 2023 at 12:16=E2=80=AFPM Yuanchu Xie w= rote: > > RFC v1: https://lore.kernel.org/linux-mm/20230509185419.1088297-1-yuanchu= @google.com/ > For background and interfaces, see the RFC v1 posting. v1 only mentioned one use case (ballooning), but we both know there are at least two solid use cases (the other being job scheduling/binpacking, e.g., for kubernetes [1]). Please do a survey, as thoroughly as possible, of use cases. * What's the significance of WSR to the landscape, in terms of server and client use cases? * How would userspace tools, e.g., a PMU-based memory profiler, leverage the infra provided by WSR? * Would those who register slab shrinkers, e.g., DMA buffs [2], want to report their working sets? * Does this effort intersect with memory placement with NUMA and CXL.mem? [1] https://kubernetes.io/docs/concepts/configuration/manage-resources-cont= ainers/ [2] https://lore.kernel.org/linux-mm/20230123191728.2928839-1-tjmercier@goo= gle.com/