Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp192463rdb; Mon, 22 Jan 2024 00:32:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9WTga+VeBIjTijvNTgvcVsvH0ryUQgOc0rat/JOgWhMZmqJaZ6d5m5rAoClsZe6NnoBDI X-Received: by 2002:a37:e319:0:b0:783:8dd5:751c with SMTP id y25-20020a37e319000000b007838dd5751cmr4823811qki.106.1705912368600; Mon, 22 Jan 2024 00:32:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705912368; cv=pass; d=google.com; s=arc-20160816; b=KVc5ViDi8k0MNT6Np3aQvYCBinvyj6k6GaxYs5FnIKqQrH4IWrazH0/B6d6g7LcCOu AAIvVK3F9S0LL+iqPz/S3IpXwD7yaWrd/Dv+YqdMdL/nzqK7p2WrdZglbwb4NpHV1ife UyaOhV/b2X6viB/aUu8kVMcaVsHsWVFWaFkU3zkQVRnzbcWLHNUuLs+BSNuaAlvaDhMV nWgbL6LTJJ5sNdk3vBRC5js+pvIpdRqI5RSUDlRVnUP4hrbEcybep6KW3OhhrmyMvNop xJOrwtH6afPehhSUCLvKu0igb8/ZpYYS2gqg8ILt71Q3qG478ftVxIk1gmkZA78LehoI Pkow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:from:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=YkUm04dt6T4G8WUwDR3Cua/i2GjJYezHF/A3AA392Ko=; fh=DKfGNKFfxn78pwxBegcPaOVuxl6JhBN2zpFiqq3e5vA=; b=jSJ8c8eR/OPMPJ4DQmTnBb4OrzLkB3bI62i8CbFnOnrFPRihe9mjCXn5vhrvsce2Z/ eHPVMMZzmIsRTMiGO21aZ/433TEz6CaHhJgRuHcjfW87BR+EYiTbMNm6Ky0WVqJUzRsu 03DlJ5HNHDDVlG6Ynb3Pd+uLU4bcoDFtdWqvm24RziiA26Y45gSn5RMZegYhXBv2fWTZ L55YVK3Zv6dCrDSQrBgkdEwXIUX3rJvoZNF+pkjQpBHHrVoJ4mCW7hGDw0FmhBRdCboD s5j87s4Nd+gk1Adqi2/ysl7XLg3xGlRus9w1c5MqGOx621JyhXc4lUVlxTYTGJXsop++ peIA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-32527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y17-20020a37e311000000b007836d3975b3si4985704qki.273.2024.01.22.00.32.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 00:32:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-32527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B8A31C21BEF for ; Mon, 22 Jan 2024 08:32:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAFC73613A; Mon, 22 Jan 2024 08:32:34 +0000 (UTC) Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) (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 68CBE2110B; Mon, 22 Jan 2024 08:32:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705912354; cv=none; b=ksdP0qfb+rrtrEIAq5RHccOfk68Rj2lr9YS8bJ1pH78ndN3j+SCQmKvYbxFT62CLcpEEo9msf+0bDonc6ZQKsaeMLId5kOekx4ecdpgdf1bbxw3LAZ3O2+gn/QalSzRq8J8y8omDC88Qxsv8LFAWKzIrbtXa94zzCjkQtqxhQXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705912354; c=relaxed/simple; bh=hI3RltjIMGXevPYm0LRBHuDZvSVHVegDJEQwPNgLkhk=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type; b=TfekZDLkKEXKuWyXMoK/GOg97uPWKvPLddywvUppNCRf9RH/LAp77rOledWPERahFnyBOMEtEYErKszsFCzOPFaR7FpQipqY5knMlqd4ahy1noOsVf24gaq97u9y3yocxarM5lk5qnbeeyx7roJpaRCXlaysywwl6TanI3L537U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; arc=none smtp.client-ip=115.124.30.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0W.5I.B1_1705912333; Received: from 30.221.145.129(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0W.5I.B1_1705912333) by smtp.aliyun-inc.com; Mon, 22 Jan 2024 16:32:26 +0800 Message-ID: Date: Mon, 22 Jan 2024 16:32:26 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Jingbo Xu Subject: [MAYBE REGRESSION] kbuild time of kernel compiling To: linux-kbuild@vger.kernel.org, masahiroy@kernel.org, nathan@kernel.org, ndesaulniers@google.com, nicolas@fjasle.eu Cc: "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I noticed a regression of kbuild time in v6.7, especially when running `make` command when all images have already been compiled. In v6.6 it takes ~3s, while in v6.7 it takes ~18s. I'm not sure if it's a known issue, or an extra action configurable with a "CONFIG_XX" option. Following is the kbuild time in v6.6 versus v7.7, with arch/x86/configs/x86_64_defconfig used here: v6.6 ``` make clean make olddefconfig # first full compiling $time make bzImage -j128 -s real 1m9.896s user 36m56.153s sys 4m21.748s # second time with image already compiled $time make bzImage -j128 -s real 0m2.776s user 0m13.823s sys 0m3.936s ``` v6.7 ``` make clean make olddefconfig # first full compiling $time make bzImage -j128 -s real 1m22.865s user 37m25.977s sys 4m22.094s # second time with image already compiled $time make bzImage -j128 -s real 0m18.209s user 0m29.243s sys 0m4.330s ``` I tried to bisect, while commit d4e175f2c460 ("Merge tag 'vfs-6.7.super' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs") is identified as the first bad commit, which is obviously wrong. As I'm not familiar with the structure of the merge commit, the further investigation has not been made yet. Besides, it seems that it will take most of the time before "CALL scripts/checksyscalls.sh" is printed (with "INSTALL libsubcmd_headers" has already printed). $time make bzImage -j128 DESCEND objtool INSTALL libsubcmd_headers CALL scripts/checksyscalls.sh BUILD arch/x86/boot/bzImage Kernel: arch/x86/boot/bzImage is ready (#437) -- Thanks, Jingbo