From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A9CBCDB465 for ; Mon, 16 Oct 2023 15:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233907AbjJPPzr (ORCPT ); Mon, 16 Oct 2023 11:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233880AbjJPPzl (ORCPT ); Mon, 16 Oct 2023 11:55:41 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EA0BB4 for ; Mon, 16 Oct 2023 08:55:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F301C433C8; Mon, 16 Oct 2023 15:55:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697471736; bh=sHaRlwbWssWeJYQh6HQwKzauVvxDIFF0zkURvlGW/8o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J/Y7O9anXNZ6iq65xrYIz16QXcmlXdrngD+JzDIXRVvPvUcU4SmZel5cdMQRyR3iL Ww7JDzUhDXDYhRvYGHDFgPvMtqRpC/MOT1K84EBL7rYYQFAntWCDwtUxvoZTDNCe5B mXNPtPtqLpNG6rzM3rBryJphtWEAYoL4aiCGJ1YubMdfo7Ug1rvqguypj8E2c6ymIJ dsKKtcWMiurayU/XHKIdvHnJkCpXLQWk+CiDsCJhhldvPLb9zlOi3QcnJ/FEJvaI5P 26WagFY0jgfUx177BzRQG9lojiAbILaHoTpL1f0Dw0x0snB+dKW8opuix1ucWKU7CD L32sE1hmVhRaQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id EB66040016; Mon, 16 Oct 2023 12:55:33 -0300 (-03) Date: Mon, 16 Oct 2023 12:55:33 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ingo Molnar , Jiri Olsa , Ian Rogers , Adrian Hunter , Peter Zijlstra , LKML , linux-perf-users@vger.kernel.org Subject: Re: [PATCH v3] perf bench sched pipe: Add -G/--cgroups option Message-ID: References: <20231016044225.1125674-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Oct 16, 2023 at 12:51:52PM -0300, Arnaldo Carvalho de Melo escreveu: > Now back at testing with with cgroups. Humm, even without the -G I get: [root@five ~]# perf stat -e context-switches,cgroup-switches perf bench sched pipe -l 10000 # Running 'sched/pipe' benchmark: # Executed 10000 pipe operations between two processes Total time: 0.082 [sec] 8.246400 usecs/op 121265 ops/sec Performance counter stats for 'perf bench sched pipe -l 10000': 20,002 context-switches 20,002 cgroup-switches 0.091228041 seconds time elapsed 0.007122000 seconds user 0.087700000 seconds sys [root@five ~]# - Arnaldo