Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2874991rdb; Wed, 4 Oct 2023 14:28:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkG8bSGTMIxQUs9DpOw8skTgKpBItugwAUpvJiUrgpRrOCiKYncbBgFfBllupyDbFhQOen X-Received: by 2002:a17:902:f546:b0:1bb:e74b:39ff with SMTP id h6-20020a170902f54600b001bbe74b39ffmr4307390plf.0.1696454890735; Wed, 04 Oct 2023 14:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696454890; cv=none; d=google.com; s=arc-20160816; b=vqhMwXwU+VCcBY6hb9jYFuSPjVcj031vUmyt+ISaiAG8TRLdueIioElR67Nv3mLvix +oKjR5ozwizVRpAv8m6smi187xJGm/AulYVsThfLPhlMwRI9AhaKkS1NsZl5pz53JPDk gqBl63wOH38yGOBFy9SGyOi7ITOY4A9flaimqVNEhfx+Jmxn2KQF9mzl4vw+uKDofUkZ bkU+u4WgO/Pg0mrbSg2icq4kXpzrgIgzy+WWIZ/FFzXKrlM2Un2J8ALTSGMM+D76Tttz OJmFHRryex8XLrN0VCzh1+CK+QMCNFMaMosrhUNn7lPr+DAkyvqIwysvnFfUjNrp4/WW qa4Q== 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:sender:dkim-signature; bh=2N0dnBiYnsoWAV6PUavYyqmB/GEUEgsbsYCRyDLs984=; fh=c0TkhNLFyqLUDomMVF5uniVe/uplW6xMW3s1Bec9YE0=; b=RkXVwdKKTBHVpwAQbLgXdWNACL+bdzPUc5wLGajBQW6gjLl8QAZQVT0oFnsI/5E/nJ ImbKoD4dWAgRS+th02aprjgS/Q0OXhiSO4/jir61bHs8ZjXlnwmJyegsxiTb284UMK4E gz0YJM4Rlb+DymXC7iT1zRMjEe99HuEwCYY6F79oyTC0mYXh3+gZN0S77Uk3rLfeW8Eo 1uRUrVkxE4/IoAxUfhb9G3Wsoih9VPZZp/ezDIP20aN8pZpD0Ba62ixJlYbmYUgMzaEP obNXVUyoOThV2TaC6XVgXV7lKWCnsPoH36lgg1RQxQ2OtYPc0RC4sXtKEm71zBwnG2xt Ra9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F9QAgDQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u7-20020a170903124700b001c589ba4a12si38792plh.140.2023.10.04.14.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 14:28:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F9QAgDQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 81B6581BE2F4; Wed, 4 Oct 2023 14:28:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233310AbjJDV1y (ORCPT + 99 others); Wed, 4 Oct 2023 17:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243788AbjJDV1x (ORCPT ); Wed, 4 Oct 2023 17:27:53 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E65DC1; Wed, 4 Oct 2023 14:27:49 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1c723f1c80fso1811765ad.1; Wed, 04 Oct 2023 14:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696454869; x=1697059669; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=2N0dnBiYnsoWAV6PUavYyqmB/GEUEgsbsYCRyDLs984=; b=F9QAgDQ+YBHOQAIkFjb5ke/mI83TkTD1aUcj6CsRvmf5quAJBkDOjumTO22MU86YDJ Sw/O1UfC8Q0QdGsGcWLwvEfu3+ybjgNdY6gW6/GiXDETzQo0QSJnSj9cfEbWVy4lX+kc ge7rRklhawrPxfPZAbEpjOSszrN3TFA6aIaIRmR3TA0+GURLDzIsM2sxs1AnURC9lGjx dcLxpV7xF3/WYRUZvwXEQ+3TRdVJo+mpdL4+MEYVC8FMA2FZ1bsnl49ocquobyv/LBuF dBkADiq+NckacweF7YnpMJKvsyRE8mFkJ3T/CHGWWoqNCEyqAkrWukx1a8qkp31DNsEz vnSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696454869; x=1697059669; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2N0dnBiYnsoWAV6PUavYyqmB/GEUEgsbsYCRyDLs984=; b=A9Vq+cYaq8/i91kGzVnFboveapXCD7DoH7aNfBl5/7O5+ECmkxucD4tAYeYP3b5lDh +GOAfhIoKYgy93BCbC8hSPtc4BQ6IgtxsGEiieQOfX2nvgMQEUzuHe6c+DPAv2LrzF+m L4usw32f3kznHAdjs4MjK45OxufjjT4OtxdGZsr8gFYHtlCLixJZZkeK1HglHJDRwsJC GOtsbpfUtXud9IYjOuDvk9Ea7A4DC9qUbe2tG6c+jl3ES/6tLbORzmsKymA/WK0T5GwZ /fsr2pN8sqJFRZkrBBZcsrZyLXNFjIwqi2ye5YBtZwu4L0rq4UUiD1fRkTbVc5O8bmxE Mryg== X-Gm-Message-State: AOJu0YzljvK+wm25FWW+xhZPsT/bHEHGks+ZTRzWlMydS3NUf2ni0wuQ QWAW8+OTpR1HWPiogIxFdJGE5C/X5Uc= X-Received: by 2002:a17:903:2451:b0:1c8:7364:a3ab with SMTP id l17-20020a170903245100b001c87364a3abmr3758446pls.17.1696454869037; Wed, 04 Oct 2023 14:27:49 -0700 (PDT) Received: from google.com ([2620:15c:2c0:5:2489:7e4:8212:9753]) by smtp.gmail.com with ESMTPSA id l4-20020a17090270c400b001c619fbd5fbsm4023plt.298.2023.10.04.14.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 14:27:48 -0700 (PDT) Sender: Namhyung Kim Date: Wed, 4 Oct 2023 14:27:46 -0700 From: Namhyung Kim To: Ingo Molnar Cc: Peter Zijlstra , Mark Rutland , Alexander Shishkin , Arnaldo Carvalho de Melo , LKML , Stephane Eranian , Kan Liang , Ravi Bangoria , stable@vger.kernel.org Subject: Re: [PATCH] perf/core: Introduce cpuctx->cgrp_ctx_list Message-ID: References: <20231004040844.797044-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 14:28:08 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 04, 2023 at 05:42:49PM +0200, Ingo Molnar wrote: > > * Namhyung Kim wrote: > > > Maybe I can add an option to perf bench sched to place > > senders and receivers in different cgroups. > > That would certainly be useful to measure cgroups overhead. Sent out the change: https://lore.kernel.org/all/20231004204741.985422-1-namhyung@kernel.org/ With that, the numbers became stable. :) Before) $ taskset -c 0 ./perf bench sched pipe -l 10000 -G AAA,BBB # Running 'sched/pipe' benchmark: # Executed 10000 pipe operations between two processes Total time: 0.901 [sec] 90.128700 usecs/op 11095 ops/sec After) $ taskset -c 0 ./perf bench sched pipe -l 10000 -G AAA,BBB # Running 'sched/pipe' benchmark: # Executed 10000 pipe operations between two processes Total time: 0.065 [sec] 6.560100 usecs/op 152436 ops/sec Thanks, Namhyung