Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4297712rdb; Mon, 11 Dec 2023 15:13:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRcT51n7EhFxWyaPevYd/iqrA5wJ2Xs70B2rcxgAwCDjoVEfeMpxJL1gJG7vbFBpUmHIhq X-Received: by 2002:a05:6871:5289:b0:1fa:df7d:754a with SMTP id hu9-20020a056871528900b001fadf7d754amr7368102oac.5.1702336415806; Mon, 11 Dec 2023 15:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702336415; cv=none; d=google.com; s=arc-20160816; b=tDuleT3zpqOmeLXXFsaCgus4RAlNU4rbsa3C100z7OWB+qeiIK8vbFJuOlAnnOzNlx 0MMk3oHVE829HzwsThhc/wfbwfE2Kz+zMe34NHnXzf72KaECNMWS/tSQoP57F2z6u26x nhVH1jGffPFPWEBFdoUyezh09FuSyFpagEP3241NEJ2PLaNto3Ip2Qu68gq/OE+aF3Ue 63YTaqqdOyMYMv37ZuzGT/d6iMevnJoC0OcEjTltUX+fEKKzxjBO+9FsMeR/df/AEu1w lU3YmON/eXm43RYL9115h9XotvBRJN73eynEcgHcNIYRcws/ToYMS3Hhzufcz5dTKrSV dAmw== 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=X8RZ/Z+csQHQb23sxqv80D6QFzNhKvnHW86p4dIcNJQ=; fh=JPg1mFKXrj4F2O5tjmOAh4zmiR4Awr8GUCZ5iXqPTHM=; b=0qmNEemdcWFmp9SIKSTqQYjDWpsJW4KaHmfV8+qRXxQrYoSB+5saHaI1RW5KZBVpPg AprFZPQvpVIffdS11LMAwtt7U7glyp4XGZb9sodEYsjXHbSra8l5lG1h2GjOz8zAlX8c H6uHhdxGic5k/if2ZodrHQpHiXohRACZG4KrOI5+RjZz54bTsPqKSap1QNfp5uduh56a V/j3viFrrpWfl0T2pMn3wU30h2R0Iaf/qbzbTGDpb43qTR8gRtIxofLn+okQTRMj24P5 p/ULuN/BCySJ9UVIM8yW0pdjdq01w7ybF3H3XS48fvjSlHdx6SoBYmajBHc74DrXzIaW cPaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id gu11-20020a056a004e4b00b006ce823785a2si6674814pfb.134.2023.12.11.15.13.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 15:13:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 489848049086; Mon, 11 Dec 2023 15:13:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345301AbjLKXNO convert rfc822-to-8bit (ORCPT + 99 others); Mon, 11 Dec 2023 18:13:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345300AbjLKXNN (ORCPT ); Mon, 11 Dec 2023 18:13:13 -0500 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C718CCB; Mon, 11 Dec 2023 15:13:19 -0800 (PST) Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5c1a75a4b6cso2602026a12.2; Mon, 11 Dec 2023 15:13:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702336399; x=1702941199; 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=Cqid22gVYH094dKsNq0+eWukD9v01nP4LAhWHajwYxo=; b=o2bRTkKwfrzWT6OkJeKYtq9OprxDeD5/YUxCkdMB3WPo5/vo9th6xElrdwdYaGgK+5 WN0zf/BkQL70h9sig2ySnyutSCtltRSxcff6pf2hAU7xgfp8x5MMwcmkJMx7Z1VYle+X S1V6Ij5ynIbt5qdfF+9tJaB83gzFq8Wi/FeKqI+6LDwl8hhsFqbh20NbPMR55FxiCZBe q1WCbEtWwK8i8MqQmP22OHfMrO7QcKILFPDscRd7MzW9GhU1fGVZ22CrWFMHR/LxoMSd VA7rSN2gkeIuBImGxpkK2avGJOea1lyELHZRiWCQTB3GqebZlL20RhrFaAUfWGWcdIHA eOZA== X-Gm-Message-State: AOJu0YwtmfmmKDzAK5/1JBeoIy1f7onm2P0egAqviLNjR1UTkNZcL9xp 2rcUqxS+c5A5a923DoiUJMPoWdmVdtxsIlNdXjJCUkUwZps= X-Received: by 2002:a17:90a:24b:b0:28a:7a82:53b6 with SMTP id t11-20020a17090a024b00b0028a7a8253b6mr1507629pje.28.1702336398933; Mon, 11 Dec 2023 15:13:18 -0800 (PST) MIME-Version: 1.0 References: <20231207125716.1947860-1-tmricht@linux.ibm.com> <7451a263-82e8-4daa-a7f6-009d5560445e@linux.ibm.com> In-Reply-To: <7451a263-82e8-4daa-a7f6-009d5560445e@linux.ibm.com> From: Namhyung Kim Date: Mon, 11 Dec 2023 15:13:07 -0800 Message-ID: Subject: Re: [PATCH] perf test: Fix fails of perf stat --bpf-counters --for-each-cgroup on s390 To: Thomas Richter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com 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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 11 Dec 2023 15:13:33 -0800 (PST) On Fri, Dec 8, 2023 at 3:30 AM Thomas Richter wrote: > > On 12/8/23 12:07, Thomas Richter wrote: > > On 12/8/23 00:26, Namhyung Kim wrote: > > > >> Thanks for the patch. But I think it should support > >> machines without systemd (or maybe with old versions). > >> > >> Also probably you want to reset the behavior after > >> the test. I think we can just run some built-in test > >> workload like `perf test -w thloop`. > >> > >> Thanks, > >> Namhyung > > > > Thanks for our feedback. > > Well regarding the use of systemd daemon-reexec the manual says > > this command restarts the systemd triggered processes. > > There is nothing to reset. All ports stay active while the command > > is processed. > > > > I tried your 'perf test -w thloop`, but that did not trigger > > anything on system.slice. > > > > I do not understand enough about cgroups and system.slice, but I am > > under the impression, that the system.slice just increment counters > > when executed by processes under systemd control. Maybe I am wrong. Ah, you're right. It needs to run the task somewhere in the system.slice. Then it'd be hard to get a proper cgroup name generally. Hmm.. My concern was it'd bind system daemons on the CPU 0 and 1 after the test. Probably you could run it at the end of the test again without taskset. > > > > The only other workload which always incremented system.slice counters > > was 'ssh localhost ls -l', which involves local login and a running sshd. But it won't work if the system doesn't have sshd. Thanks, Namhyung