Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp60006rdb; Wed, 29 Nov 2023 20:17:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpKG/bZZogt7jlRGoQZLl1Nd9WnX7uFLzt7yNlj6msMrHmEn5QB77XRgB/EcjPNQOgZeba X-Received: by 2002:a05:6a20:daaa:b0:187:c662:9b7e with SMTP id iy42-20020a056a20daaa00b00187c6629b7emr21076256pzb.25.1701317861611; Wed, 29 Nov 2023 20:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701317861; cv=none; d=google.com; s=arc-20160816; b=V+NprBEanBS95i5eqF51jQSGNfckPiH7UC/2LGHLJJ/7p7CPAFM7t7RaLESH6a676U xr2veI4skJdeEQeRy71kx1FrSJ33kQNyeRImT4bYpfn9PHBmhQ+lec7hBpKKPxNkae3+ kVBr6aLfV4Edc7Fmm/9ThH5DwG//GWWuDlhs69DGdOz9O5n0o13sb9zdgFe2yYLU/QYY VDWV4pKSvOc6lbRcaY28eOmZN8p+/ESrxm0+ayrgbq+/DOJUmD9Plmeuxwmm861q9KGK oSldPKq5nwrXUgK2KQcJZuUZxuoL0ugsBOSLPj78cYfIjvSVil5y85JdJ07oqSIss/hP RbtQ== 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; bh=2hhP0LAzB//dJkS3AWDIzrDoBlRd1cegCBCtE6pIF6w=; fh=aWa9tyepd0GWyBFjkZa5ys7uNwpZ1AjfSj0Mu1iuQbE=; b=a2K422ZXVwAQqbm7uTm30CCIj+b7Ee7LGfX2YgWi5ftDTF9ikytnn4U8/gpWkdWroZ zmJ2DGU2ZrNDaf0OjcDV0uVAL37LqSJEXNGIrxsj4wXfWmjBfBU1ZGa8mm2AQHVgrDDu f9Sb2DOqLHo3RL3f2Wk6KRWvTnUUQHZnI796q4E8uPSWGsHBYd7+hUIm9kMucfy8Q22W GNWXc/lPfZuFdPVRbByQot7SMlCqZZ1pmiv3fjss8bVC+3KWOhKfG6Kpb258ewN3nuPP LR24b818x3RLR1cLjbYXEaoZqxOtvq6HIT66DlotaLMM42CUkV9gpB6yuVGd18+nH7Tk YnVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z22-20020a656656000000b005c62adcc87csi70204pgv.882.2023.11.29.20.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 20:17:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B3090802F665; Wed, 29 Nov 2023 20:17:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344411AbjK3ERW convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Nov 2023 23:17:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231678AbjK3ERV (ORCPT ); Wed, 29 Nov 2023 23:17:21 -0500 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E31B4D5C; Wed, 29 Nov 2023 20:17:27 -0800 (PST) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-285abb82925so538847a91.3; Wed, 29 Nov 2023 20:17:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701317847; x=1701922647; 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=u3cq8FTSpv7C38uDQTMDW9F009UvP5iBZjjRKd8DHB8=; b=YGJegXT6GiQxmoBH8sS/XPp1axV0x5bPNssOvDFtyGbAATwwUwRtFHIScHpzXgxlO6 OWWtS5ZT5HW68Y2XxcFeKXniH6/cUSjT2oPUawMlMGBvz2Idlxwa4o3NB7yeD3+lfaCj 5zcmyP204fCfBJ6pVR1beJ0KD6O6UKw96ss5ASsvUEwkHbrzI0+fAYGtlM8vFyiLYI8k Zbujl4g2yCR29E+ZB5Iz467zqZJjje0K1uVi6hJTTONJ34FnjKaX0g5raksUjuR+2fz6 oauB1gHnjpU+bc9KKtkf59UIKKW3nOOvp3BsgUJJoCTGUfsZypH8XctSOMmDs+Q4VRUt wzYw== X-Gm-Message-State: AOJu0Yx+JVrST4xOjHibgcmLReiEJnlAk6+XHnqLimXVQil180bToKw0 r3QKLILqEc+DG8GZfAaRzh4TXMrj5nKpfnmbcBw= X-Received: by 2002:a17:90b:38d2:b0:285:b99a:a92d with SMTP id nn18-20020a17090b38d200b00285b99aa92dmr14982377pjb.32.1701317847219; Wed, 29 Nov 2023 20:17:27 -0800 (PST) MIME-Version: 1.0 References: <20231127220902.1315692-1-irogers@google.com> <20231127220902.1315692-11-irogers@google.com> In-Reply-To: <20231127220902.1315692-11-irogers@google.com> From: Namhyung Kim Date: Wed, 29 Nov 2023 20:17:15 -0800 Message-ID: Subject: Re: [PATCH v5 10/50] perf header: Switch mem topology to io_dir__readdir To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , Vincent Whitchurch , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , liuwenyu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Guilherme Amadio Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 29 Nov 2023 20:17:38 -0800 (PST) On Mon, Nov 27, 2023 at 2:09 PM Ian Rogers wrote: > > Switch memory_node__read and build_mem_topology from opendir/readdir > to io_dir__readdir, with smaller stack allocations. Reduces peak > memory consumption of perf record by 10kb. > > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung