Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D5ED155A30 for ; Fri, 19 Sep 2025 18:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758305171; cv=none; b=Grs1VuV/UKBBxsnRAEpYnpTdWauPTk/LTIQAuEgAAcoo0AVQNCn9y1onkQDXKvwqX9xCWf9AduW1pUDQ+wgcZG+Kjyt/4tbzBoMmr50m6AmoYzZRykaEaliETkhwPZ1z/SDAf7pZUfMYdEldYeMgSwpcsvJPRfvNUOivoft38L4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758305171; c=relaxed/simple; bh=sPhaRQv6SvNAiW0Lo+BrOgqIIexH+SmdGs1a7I3YY2E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K5nC1Kq5QtkjDpz+GJagkme6sMua3HKIBJzE7pWm0ofAePRz7V9XSwPXyhw7tWbH/3jlk2vjREAeAvOO+jcBvhjbFAqkdfhPs8ryObb9eQ2/EfXikirFaaDO5DtVnRSMFhgYkdsqJw/9XwIF5sX9x0WF+eeOVRL6L5Xgmf46wUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o324pDe7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o324pDe7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75931C4CEF0; Fri, 19 Sep 2025 18:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758305170; bh=sPhaRQv6SvNAiW0Lo+BrOgqIIexH+SmdGs1a7I3YY2E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o324pDe7zlbKnDrtst8mdDAW7irm8n0Dbrc62Xty/HLV99mIWxPNT8fSXFwAAzVSr hn45/DQFTU6gdharmbVi4J0XXjNGy1OZn48GQlUGTEQaANGDLgC8Q/KQkvUFAVYrI8 nGGipcTgxy6cn9LHRxTM3jM+RDXI6vU/Qzr4e6Dl8gyoYheigTctjYu9s1dF38zCcK nSEv/IWaxMQTbqUmBuQ/YsjoNnrtrGx2rx1r8zhge/tYU4BI2eYGui0FPRhYgD8ego 4bxbKJa7xdLRBZTG+WFMzTbeMFQ6QNgwLqUryGYBzIkkgIvCqerwiKP8JDicMVwUrY 436tdej91AH6Q== Date: Fri, 19 Sep 2025 11:06:09 -0700 From: Luis Chamberlain To: Daniel Gomez Cc: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev, David Bueso Subject: Re: [PATCH] build-linux: add workflow for repeated kernel builds Message-ID: References: <20250919035158.422509-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Sep 19, 2025 at 10:29:45AM +0200, Daniel Gomez wrote: > On 19/09/2025 05.51, Luis Chamberlain wrote: > > Add a new workflow that allows building the Linux kernel multiple times > > to measure build time variations and performance. This is useful for > > benchmarking build systems and compiler performance testing. > > > > This goes in with monitoring support so we can do AB testing against > > different filesystems. > > > > Generated-by: Claude AI > > Suggested-by: David Bueso > > Signed-off-by: Luis Chamberlain > > --- > > > > Demo of visualization of results: > > > > https://htmlpreview.github.io/?https://github.com/mcgrof/plot-build/blob/main/index.html > > This is really interesting and cool work. > > However, I'm generally a strong advocate for reusing projects as much as > possible. So this feels like a missed opportunity not to build on existing > projects designed for this purpose (e.g. hyperfine [1]). > > Link: https://github.com/sharkdp/hyperfine [1] > > It would be helpful to understand the reasoning behind choosing one > approach (reusing something like hyperfine) over another (adding custom ansible > tasks/playbooks...)? > > For reference, I put together a quick and hacky example for benchmarking kernel > builds using hyperfine and a simple Makefile, available here: > > https://github.com/dkruces/linux-benchmarks/ > > Report example: > https://github.com/dkruces/linux-benchmarks/blob/automation-make/results/mac1611/REPORT.md Awesome! > To clarify, I'm not oppose in any form to the work here. It's really great. > Please, merge & push! :) I agree that re-use is crucial. The only complexities in re-use is license but MIT is compatible with copyleft-next so we should be able to re-use it. > One think I'd like to see as part of the report is: > * The kernel version > * The kernel configuration. Hopefully, the fragment work allows to have > better control on this. And better when we have SAT support in the kernel > * Toolchain: GCC, LLVM/Clang > * Host info: baremetal/vm, number of cores, memory available, etc. > > I've also noticed some inconsistencies between runs, which could be due to > memory behavior, folio migration, fragmentation, and similar factors. To ensure > full confidence when comparing build times, we should rely on reproducible > builds [2]. > > Link: https://docs.kernel.org/kbuild/reproducible-builds.html#reproducible-builds [2] > > FYI, I have reproducible build support patches ready. I'll post them today. Swweet! I'll merge and what I think we can do is add a choice option to let us pick the method. We can later just kill the silliest method later. For now I just need data for evaluation of memory fragmentation runs. Luis