From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 141B0489FCB for ; Thu, 10 Sep 2026 12:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789044777; cv=none; b=DgMKTGAabLXORJbguTsPS8YdbL8JpY9cBhOrvXIta56YA6VNMswUDgrNH6BMgklLEzu8YUqERu8ri50hZpkXpVQxu4pqsozrT+OSc7Mp/K9FvGaqPsieFy/KWqkzv1qDRUBnl7F8Net/YzV4N7GjdnOEFA/FTS+eCspMP7OWkro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789044777; c=relaxed/simple; bh=aV14/F8DsF3P9FHVwJuzeIJuUW3zK2f3SCDMKZGJuA4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kGAWKKV13/PqEr+Q3lrrgjvlfuwO2BAWvEOSX+4b6d3/etDBqcYBZEMN+dFkxjtS0TOMpXLK3EVczO7lClG10nELmt0pHZcIJ9aA7TNfQ+V2tUInlHEf3Q0DDjiaE4j86ITg2Pf/U8/IhyG9/9wW5i69yhhhAtnRNulhRxletoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=SmOKr973; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="SmOKr973" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-49cca4ffdcfso58345225e9.0 for ; Thu, 10 Sep 2026 05:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1789044773; x=1789649573; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ei/562soKHFJqkSdXuQm6X1dYNc/yFpT8LphVTPsPBs=; b=SmOKr973K1dGCdZNSvV0lZ/+KT9BbRIbD3GOIAibUNJ0qhDjKzaJljF4LSPNkW8bB2 HuTx1PLTDPwTxnXLhGLdkAB+yvGjx19FpTMhto8pdD8XeVAybuZ6v45GmuegsUQbFv0A r5tsiGJMyJ+CTV4L29p8/OHBuCB/Jv4TyJDThI2FdXmhKsIpiLaS2/EUJrwO93TPodLM CS3eFxLcUy270ZtNSYfcBV/5plhB6VvhVqoXJOjiOa42xr9jJXMrxMP9H279UkBdc0Z/ dKrfOKBdlY7oe1AphxeGiXttM62BubLUX+lzyjnDKsH9lJcugdc7BQzMz+jFCDx1qj7d IryA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789044773; x=1789649573; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ei/562soKHFJqkSdXuQm6X1dYNc/yFpT8LphVTPsPBs=; b=ENP41FtKoU3WLuqo8JkBQNipbskL87N+4TNxg99hBD3+opTjdkfhalmmtrlMStIb3c jcBbjGrswAVYqTG1U0cZh1RpSMxXrMdbf7vrDWXAV5p4hCrxCn7JcSB/QmBxlWSaMJ+i 1KBOPBvy3JbLtrhBZCLsHUYGxyNVBk2BDJF0h4aIajX2XNFbyiEWX9p8CYiYQKmwG6AF mmZLYh2qaGIp9+bNLmL2QkHBkCTEEJL8g2Nbr754EuTtDycHGbvvmUWZwyere3ZW+eUp B4jfn3UZPP5IVh9tCT2iifNaPmo5bvuLfs/Eak0dzVfU9Rm0JbxwvGSS25lerG976YHB 4HFQ== X-Forwarded-Encrypted: i=1; AKwUvBxM6Dy5LZekjX0GXgLD1LclbCGYwju4MiyikUvn4d2+MY096ZadOo00gOec0ltjVlKek7JCc8N6PhU=@vger.kernel.org X-Gm-Message-State: AFuF++n8RdOvP2F51OzW68IA/xpaCo8a1f0hPWXxrG3yTpT04Wf3BPU2 KAcqBKgqWPGzuXNJZ82vzPeDpCcXlmTXlO9QREZcH3bjWCuYCFeVJ6ANPBboMYuk/xY= X-Gm-Gg: AYBFou35jPmYsqQyzBI06bkY31nzhAWdU0m4SQMxnV7igx1qIQU5PWMaZgMNC8Gi57O Lv3uF4y2h22Ho0rtCuHHWcu1Yf20byp8orVJQlc972tZXSZx0YWD77wymJZpxAMqvaN20ap2MqN GmanW/Qz+4cUnZxiJ3lSvK9TLM8kb9cAxBtQpJBVorPqJBJ3KZZAvGet5JVps3R35eCZs9W+ELR LwkowLHwfWq8rCWLxhBAeIe/YL1mcnykj5xhGopEt6KpI7z0fcEjy4KCA1Zr3ieS+j5ValuSMiG dBLqEw219SqT0DIPxBRyNn1XlQAIedBfHylawkxPd1oU/sdel2Ln7fe7hicksm7xQ/j+u8OJogl HtnQffphoW4WG2q9zh7/fVLUmDUmqwStLkx9cxVW9Dsi3Gg+m5+2lCdB8AKHEOv0e/ivW4qVcvg naMmcB6eCU7qGb+gCX9CYdu6pKYhThMBlqkMRDeUAxBTmtQ8s2mbZ6RUXcn+oeNik6V3WsPj7B3 rKTmP0i2wXzfoLkN7IHXW2z0aqkVlWRaec= X-Received: by 2002:a05:600c:620d:b0:49c:fc6e:a3d6 with SMTP id 5b1f17b1804b1-49cfc6ea731mr404244015e9.21.1789044772934; Thu, 10 Sep 2026 05:52:52 -0700 (PDT) Received: from ?IPV6:2a07:de40:8100:0:89a9:fd0e:583d:4a53? ([2001:af0:8000:1409:193:86:92:181]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49d20fce7a7sm286173185e9.4.2026.09.10.05.52.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Sep 2026 05:52:52 -0700 (PDT) Message-ID: <434a7a10-d83e-4402-be91-816bbbc15bb7@suse.com> Date: Thu, 10 Sep 2026 14:52:50 +0200 Precedence: bulk X-Mailing-List: linux-efi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 13/23] modpost: hash module source per-file, not per-byte To: "Lorenzo Stoakes (ARM)" Cc: Linus Torvalds , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Masahiro Yamada , Alexey Gladkov , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Arnd Bergmann , Catalin Marinas , Will Deacon , Mark Rutland , Ard Biesheuvel , Ilias Apalodimas , Josh Poimboeuf , Peter Zijlstra , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?UTF-8?Q?Onur_=C3=96zkan?= , Jonathan Corbet , Randy Dunlap , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, Jens Axboe References: <20260908-build-speedup-v1-0-5dc1ac01672d@kernel.org> <20260908-build-speedup-v1-13-5dc1ac01672d@kernel.org> Content-Language: en-US From: Petr Pavlu In-Reply-To: <20260908-build-speedup-v1-13-5dc1ac01672d@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/8/26 10:55 PM, Lorenzo Stoakes (ARM) wrote: > modpost spends a long time md4 hashing module source at a per-byte > granularity. > > Fix this by doing this hashing per-file instead by accumulating a per-file > buffer in parse_file(). > > All 11,189 .mod.c files and Module.symvers were confirmed to be identical > with this change applied. > > This is especially impactful for allmodconfig incremental builds (where > CONFIG_MODULE_SRCVERSION_ALL is set). > > Whole build, 128-thread Threadripper 9980X, best of N runs: > > before after delta > ------------------------------- > x86 allmodconfig, touch mm/vma.c, gcc 40.6s 38.2s -2.4s (-6%) > x86 allmodconfig, touch mm/vma.c, clang 36.2s 35.0s -1.2s (-3%) > > Assisted-by: LLM > Signed-off-by: Lorenzo Stoakes (ARM) > --- > scripts/mod/sumversion.c | 56 +++++++++++++++++++++++++++++++++++++----------- > 1 file changed, 44 insertions(+), 12 deletions(-) Support for the module srcversion is being removed in "module: remove MODULE_VERSION() and srcversion" [1] and scripts/mod/sumversion.c should be gone completely. [1] https://lore.kernel.org/linux-modules/20260731-module_ver_remove-v2-0-c9163858f382@linuxfoundation.org/ -- Thanks, Petr