Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1913503rdb; Sun, 11 Feb 2024 03:17:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGB46QHw+GLdCFMu/gCsNKS4Do1TVJ4jclhkt/dPMuVDgvXCOthTSjwT/imH/i4XC0mvXtw X-Received: by 2002:a17:906:fa15:b0:a3c:4e49:b0f9 with SMTP id lo21-20020a170906fa1500b00a3c4e49b0f9mr1826752ejb.48.1707650275270; Sun, 11 Feb 2024 03:17:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707650275; cv=pass; d=google.com; s=arc-20160816; b=Ma3+bAKu5h0xkJRagsbdH7IJqSkYm/TYdPNwc4TZnI+mevHQ9iLOwxSCpdWnfgWRh1 j31/9Pne4j53w5nu6cP5LDIHgbLZ58LUP+fR0slvDJ15JxCEtbGK6tLDnf2aZZ5jXtGu sBvaNieU3OZ3lpvN7FUXQ/cLC6WeXjFAK15Vo2rcmLLq+LirJgE6Th5mRlsuiLgtIUwm psHurgySKJ9WJN2VMhvJcwavrT5dXqpExXcQn0XDK/LFCf0zR0O+MZHOXaDbDKu/oZj9 Sn/jy++jXnewa9uQXO3KbB7wTe83ydnXMGr3LX2i/HijSpv1kvgl5HodqMiN6P7EcaRh XQyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=PpUnOhzLf46NfRgb+FT+kBCQk3uDknkNtjiKYAICgaw=; fh=QlFJSpVlxOicmdsqqlqlRSicTfziro+/9rUDdtokXmU=; b=PftUi321JxT16tn8q20nRlX7W2JzrexqI3iQmT7ZmCICGU5qZ81xeGTknvunK41c1o NLOg/LiTmG1ePh2zyECe4Tzc0hZDNqzcRaz99E7Pu5WzlYKmBJtKNGzaz8NGwXx9ioU+ LOmLC0IUIMp/3kJnlyMenyae3PusRwt0GIDt0DKsuqulI+ctkpM7tEwW+67K41JTelSh GE6WXyhLR9vWB1p2dQy/XrmLyv7KaSWaFWzE8LY2bNYpqv3rDX4T865tKYaDFJ9eS4+B HNH6vRKZxy1muHmRjrQj6Afumt/U5gQoZJC7eSYP5M7zrEvLPvewyr8qa9Zd4GakMwnt Y1EA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-60712-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60712-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUzP+hIgAanedFOeywGCGNnPQ+mQcMDbkxJJqsT/9APtw1vUTsE94otbFWtecm6x978204V2gR6CT/6gvQPJJyTsFOToaFeCVZx0nwJ2Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ne10-20020a1709077b8a00b00a3bff1d4457si2433238ejc.88.2024.02.11.03.17.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 03:17:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60712-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-60712-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60712-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 05E5D1F22797 for ; Sun, 11 Feb 2024 11:17:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B6355A4E0; Sun, 11 Feb 2024 11:17:47 +0000 (UTC) Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EB0F2AF08; Sun, 11 Feb 2024 11:17:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=163.172.96.212 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707650267; cv=none; b=nuhVO9AlNjCvu8CLoZjLpWdxENNYHvRtKmti2lFbH9RTvWC6vfYn59VtIxaZ9gwUSa+jns5YTAhafaQdmwvwPerju6102MLk/ZbIyAW4L9766i1Zz8AdU+BDF5kLwQBhRqyeTNjZ8m7BvUx2Xjiktepn26yjvLbJNfd1vrMPJko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707650267; c=relaxed/simple; bh=Xz4zRgjnX5q9xaB3mTWEuD8RUIvC0uEA2UD64kmLUwU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xo/7mZ95HDoCPzckObj6HrSURtYk9qbc/sPjkJOXjNenEwuUQFSc5Zq5HuzW92XbBgo6TBdvlgyqkqDrIajzL1jEVrC4sSGYkZ5zRcDKf6zWp6TjyF6bspAhlJpBTYcEz4VT8Bi18L/wZg6kUoAFLnOpYC77GoeI5Nl4xYIhXAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; arc=none smtp.client-ip=163.172.96.212 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 41BBHeOX022583; Sun, 11 Feb 2024 12:17:40 +0100 Date: Sun, 11 Feb 2024 12:17:40 +0100 From: Willy Tarreau To: Geert Uytterhoeven Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH/RFC] lib: add CPU MHz benchmark test Message-ID: <20240211111740.GA22575@1wt.eu> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Hi Geert! On Thu, Feb 01, 2024 at 09:49:33AM +0100, Geert Uytterhoeven wrote: > > > Parallel runs (run on multiple CPU cores) are supported, just kick the > > > "run" file multiple times. > > > > Hmmm does it mean it will run on the CPU that writes this "run" ? > > Because this could allow one to start tests using e.g.: > > > > taskset -c $CPU tee /sys/.../run <<< y > > That does indeed work. OK! > > But we could also wonder if it wouldn't be easier to either send "y" > > to /sys/.../cpu0/run or may just send the CPU number to "run" instead > > of "y". > > That would complicate the code a lot. OK I trust you, I was merely asking just in case. > > In my experience with this tool, you most always want to easily > > control the CPU number because SoCs these days are not symmetrical at > > all. > > That's why it prints the CPU number ;-) > > On multi-core systems, you can also do e.g. > > for i in $(seq $(nproc)); do echo yes > > /sys/module/test_mhz/parameters/run & done > > and collect the results for all CPU cores. OK! > BTW, this is the same for test_dhry. I didn't know, that's an even better reason for not changing any of this! > > Another point is that it would be nice if there was a way to present > > the result in a form that a script can retrieve from the directory, > > maybe the last measurement or something like this. I know that scripts > > are commonly used to check for a machine's correct behavior, and I try > > to encourage users to verify that it's working well, so anything we can > > do that makes it easier to use would be welcome. > > I'll give that a try... Thanks. > > Hmmm I don't know if this is intended, the SPDX tag says MIT but the > > MODULE_LICENSE at the top says MIT/GPL. I can't say I care that much but > > I preferred to report it in case it's an accident ;-) > > That must be an oversight. I'll change the SPDX-License-Identifier to > "GPL-2.0 OR MIT". OK no problem! Thanks, Willy