Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1325252pxf; Fri, 12 Mar 2021 07:11:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHwxQk+9S5zOW9EEdd+2/GNTwhJ0SRWt3kp6Wdv8T0xS/5rQtY7/5D0nf0qnqMpy2dllto X-Received: by 2002:a17:906:ca02:: with SMTP id jt2mr9044810ejb.312.1615561896436; Fri, 12 Mar 2021 07:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615561896; cv=none; d=google.com; s=arc-20160816; b=KN0T8p8XduDgbt6k9oUnVMk5MnuJxp9mh9FX4mjAmfDwgl9lryl71WDyDjrBrWpObs QRn/6yf6PCmfhSsHMPQfeTKfq6EA1MDaEV6SL2iaZTotaavWUNoytHjAm+LaAa7YIEGY cyUIMTbuggYJhaVH6posw53sWCd6OfB9YKtFZ0E0xCeoX3OFUvol9lFMuYDBaVY6GGiQ gWp20CnUwRKhLby0j/0dWnOVszuxBRhg6e7DRKkBAc3TwSBw283R7Ef0E3XtAA9EOV8D q49rxK5NnnFkRj8zhaUb5j9wPioI1+UdBRylbijDl1Xd8LMzJ2PzfM+AoK8EfShjKcoa //PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=t5V9Zy7r8vf1KXaAixJra0MiXFvTT9BRr7REIE4AUag=; b=lPA/rIYdcvfe+mDQmkX5sca470Lf6s8kdDIhZFOm3lUnR7u483ctshTuY3QcuoCg1T LLPAlmS7e7yR1lIqkwBWReOGe/LukPSVqZpuG5sm/tRvHY653es60iXwc1l0GG5b3Cpm +spMqtrztoG0MFFTHcPnxCtGcmglP6sYPtvtX8+xIxgLWg8kSYCEFLEBYlkdhJsTM9q6 8b5T+qQAkogDv+kyxBTEHWUfYuSGKtPBXiQg963aomW8/g7s8mYFquNbe2yKa5O3DG5s CDUodJz+zAYSeSVzWUjEJz/9tM+Q5bujj/C6MFqpitGWG1Fk5LtFc1M+oJh+vMoLrK0a zHWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si3939997edv.175.2021.03.12.07.11.03; Fri, 12 Mar 2021 07:11:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231636AbhCLPJ5 (ORCPT + 99 others); Fri, 12 Mar 2021 10:09:57 -0500 Received: from mga17.intel.com ([192.55.52.151]:22264 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231679AbhCLPJe (ORCPT ); Fri, 12 Mar 2021 10:09:34 -0500 IronPort-SDR: Ugc0D/jpEyCdLH0SNzjbwKmE/zGBJoCVNyYNxwZN8gpMJyf6INQyWFZFVsbyIJIVNhux7WCmUJ R1E6ZavPjffw== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="168758279" X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="168758279" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 07:09:34 -0800 IronPort-SDR: lTby2jTgpVlL6h7WA/5C/RF/rZaMGkanAH6q6nnlYdgYqT6pVCydQioMJ6RuyBT8NQAvWq1+jd 8SltHgf3aj8g== X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="448644680" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 07:09:34 -0800 Date: Fri, 12 Mar 2021 07:09:33 -0800 From: Andi Kleen To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , Mark Rutland , Alexander Shishkin , LKML , Stephane Eranian , Ian Rogers Subject: Re: [PATCH 0/3] perf tools: Minor improvements in event synthesis Message-ID: <20210312150933.GN203350@tassilo.jf.intel.com> References: <20201221070029.1451176-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201221070029.1451176-1-namhyung@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 21, 2020 at 04:00:26PM +0900, Namhyung Kim wrote: > Hello, > > This is to optimize the event synthesis during perf record. > > The first patch is to reduce memory usage when many threads are used. > The second is to avoid unncessary syscalls for kernel threads. And > the last one is to reduce the number of threads to iterate when new > threads are being created at the same time. > > Unfortunately there's no dramatic improvement here but I can see ~5% > gain in the 'perf bench internals synthesize' on a big machine. > (The numbers are not stable though) Looks all good to me. The VmPeak assumption might be slightly fragile, but I guess there's nothing better currently. Reviewed-by: Andi Kleen -Andi