Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1665756rdb; Thu, 25 Jan 2024 02:31:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5X2r//laeUXcj3C+A9U5HqUum/vSTMr+cBQ/cbiOqITlxos5me4Yiu8xnNCR980Pg31oH X-Received: by 2002:a05:620a:7f9:b0:783:3314:e7a5 with SMTP id k25-20020a05620a07f900b007833314e7a5mr838357qkk.117.1706178672115; Thu, 25 Jan 2024 02:31:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706178672; cv=pass; d=google.com; s=arc-20160816; b=n0gtmlwv4rb0uCeqLaS4/NDqTSvk6nUepbGN6x9C9XeXHrQraOt4ALuEXXHh1+Ystn m0UIKpuyaYhRtvKfdqBRl3m654lL4uXWCVcTgYPm44jwg/lnp97ckb6AJtcx2PiMqEt+ Jl05rp2FbHcL9AKjtIbkeJcFXADn+sMNyrvJYp0AJfxhtyiS42yaSziQuWwJf1184AJC gR/ZUSEbwI0BhxlEsQ0JPR6kO8+sJbeEFmy0IIWGjDdJx3jmEr4e34/1tcmSWvx70ftR zR/MVgYdnw1svFTfe25YLUvuPLIvM1lPiLhv3JYoQGbkr5OqCfaeJMii9zrAr801LkdJ OR3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=6WJEcBveai1VnSOG5kJrds/+1KE4Eq4N8roOkIVGNJs=; fh=8tiET+1c8VRTISVeUtR8GVzKmzsbQsPR6j18dxsd+GY=; b=i97qAtENtJCel6JFpW5zKksETf4TU9qC84deJZKXVXqX+rgo1hTuGAKw51119rTxdJ uXMEEJ2+BsVvLpBbDW0nCs6EPoZ4sXvkzTuAXliCNcq9yvZXl9qdgGgoFLXWGHf2XpeA Wxiq4sQEg8Z438nTY8KhWB67dI4/+KKpOJfj2pmTeO++H2zMz8tjzkpqcu1hkWNaUfIp G3WjtlRmGnCw97WE6OSPP1mNrMIZYre4IAyVPicCHdyLQcJJb9TqlvDbdDnPiHyb2iH6 xDAEyStntsCZxQ7SCAzXKQ5f/AEpF0YnuBzTPNr86XvIkOfPoasYPx+iVb/DF3aR3NA8 30Vg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-38394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38394-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g23-20020a05620a109700b00783bd837399si1083392qkk.247.2024.01.25.02.31.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:31:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-38394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38394-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F16DA1C22639 for ; Thu, 25 Jan 2024 10:30:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90D8F1CAA8; Thu, 25 Jan 2024 10:28:46 +0000 (UTC) Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (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 91FB81C6B5; Thu, 25 Jan 2024 10:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.237.130.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706178525; cv=none; b=g7RkdFaBb0R0aVx15NsLjBK4kEzT2ZC5y5L7q8isTI+bgLb7ggYJDO3IZJ/zOwa/Ziq6l80J+kxWU6ebji9gdS3FUqJJIWUKiMFyN6/5bePvdATrSOu5RPfM+SrggsN+qjtmSrZ4kx/Qrlx4xlr652O6a/yp5hWIJYBlfacgqT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706178525; c=relaxed/simple; bh=CenqYOd1xt/Ush7B45mfMjIcgvqgSyN512XFCJsBrvY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lseSpfYiqIZHnq1+8HNNZTZ6Sfk90vm8+UicRjSUJzUptXpIVQMBVVoH4AZ+mu8xfUVZNwTgLwPTCITLaOgehxsuTQDUNm74plbgfB4dLI9fw32BBevqiaiUeQFayDfXrB6Lge61ehdNzX44H3vPA/FXvWgLi4jL+KsQb5EYBMs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info; spf=pass smtp.mailfrom=leemhuis.info; arc=none smtp.client-ip=80.237.130.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rSwyF-000713-JQ; Thu, 25 Jan 2024 11:28:31 +0100 Message-ID: <5cfc34c7-8298-4639-bb81-8b95392279ba@leemhuis.info> Date: Thu, 25 Jan 2024 11:28:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: More detailed text about bisecting Linux kernel regression -- request for comments and help Content-Language: en-US, de-DE To: Jani Nikula , Linux kernel regressions list , Linux Doc Mailing List Cc: LKML , Jonathan Corbet , Bagas Sanjaya , Greg KH References: <87fryllpp5.fsf@intel.com> From: Thorsten Leemhuis Autocrypt: addr=linux@leemhuis.info; keydata= xsFNBFJ4AQ0BEADCz16x4kl/YGBegAsYXJMjFRi3QOr2YMmcNuu1fdsi3XnM+xMRaukWby47 JcsZYLDKRHTQ/Lalw9L1HI3NRwK+9ayjg31wFdekgsuPbu4x5RGDIfyNpd378Upa8SUmvHik apCnzsxPTEE4Z2KUxBIwTvg+snEjgZ03EIQEi5cKmnlaUynNqv3xaGstx5jMCEnR2X54rH8j QPvo2l5/79Po58f6DhxV2RrOrOjQIQcPZ6kUqwLi6EQOi92NS9Uy6jbZcrMqPIRqJZ/tTKIR OLWsEjNrc3PMcve+NmORiEgLFclN8kHbPl1tLo4M5jN9xmsa0OZv3M0katqW8kC1hzR7mhz+ Rv4MgnbkPDDO086HjQBlS6Zzo49fQB2JErs5nZ0mwkqlETu6emhxneAMcc67+ZtTeUj54K2y Iu8kk6ghaUAfgMqkdIzeSfhO8eURMhvwzSpsqhUs7pIj4u0TPN8OFAvxE/3adoUwMaB+/plk sNe9RsHHPV+7LGADZ6OzOWWftk34QLTVTcz02bGyxLNIkhY+vIJpZWX9UrfGdHSiyYThHCIy /dLz95b9EG+1tbCIyNynr9TjIOmtLOk7ssB3kL3XQGgmdQ+rJ3zckJUQapLKP2YfBi+8P1iP rKkYtbWk0u/FmCbxcBA31Kq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MkB92uPVkxs5IMhSxHS4c2PfZ6D5kvrs3URvIc6zyOrgIaHNzR 8AF4PXWPAuZu1oaG/XKwzMqN/Y/AoxWrCFZNHE27E1RrMhDgmyzIzWQTffJsVPDMQqDfLBhV ic3b8Yec+Kn+ExIF5IuLfHkUgIUs83kDGGbV+wM8NtlGmCXmatyavUwNCXMsuI24HPl7gV2h n7RI In-Reply-To: <87fryllpp5.fsf@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1706178523;5c576dff; X-HE-SMSGID: 1rSwyF-000713-JQ On 25.01.24 10:36, Jani Nikula wrote: > On Wed, 24 Jan 2024, Thorsten Leemhuis wrote: >> Hi! Find below a WIP text on bisecting Linux kernel regressions I plan >> to submit for inclusion in the Linux kernel documentation in a month or >> two. I could do so now, but chose to write this mail instead, as the >> text would really benefit from a few people actually testing the given >> instructions. Hence if you notice somebody that faces a regression that >> needs bisecting, consider poiting them them to this text, asking them to >> play through this and provide feedback to me. >> >> Ideally point users to the following rendered version: >> https://www.leemhuis.info/files/misc/How%20to%20bisect%20a%20Linux%20kernel%20regression%20%e2%80%94%20The%20Linux%20Kernel%20documentation.html >> >> It is (a) a lot easier to read (b) has no odd or broken line breaks, >> like the text below has a few (sorry!) (c) is updated when I improve >> something. >> >> Anyone who might be willing to provide feedback can do so in a reply >> here > > Hi Thorsten, first of all, thanks for doing this. I think it'll be good > to have a document on kernel bisection to point people at. Thx for saying that and also thx for taking a look and providing feedback! > The one thing I find problematic is the use of shallow clones by default FWIW, some of what is in that text is a result of similar discussion that happened when Documentation/admin-guide/quickly-build-trimmed-linux.rst was submitted about a year ago, which also uses shallow clones by default. Further a quick reminder, as it's easy to forget: most of us live in areas where downloading a lot of data is not something that bothers us or will take a lot of time. But it is different for some people that will need this document. Out of curiosity I just gave it a rough try with my 100 MBit (aka neither-slow-nor-fast) connection. Shallow clone: 246.67 MiB, 0m48,015s Deepening the shallow clone to v5.18 while adding linux-6.1.y: 171.79 MiB, 1m47,510s Full torvalds clone (just for completeness): 2.77 GiB, 7m36,892s Full stable clone: 4.82 GiB, 12m12,093s (reminder, those are just rough numbers, nothing else that was using the connection much was going on, but this was not a lab setup!) > and, well, the use of git in ways that I myself can't figure out without > resorting to the man pages. I think it's a lot of dark corners of git > that's overwhelming and really unrelated to the bisection itself. > > If I point people at that, and they have problems, I'm just going to > tell them to: > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > cd linux > git remote add stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > git fetch stable This could be simplified, as linux-stable.git includes mainline, it's just sometimes a few hours behind. > And I can tell them to 'git checkout v' and 'git checkout v' > and proceed from there. > > To me, that's the TL;DR. FWIW, I earlier today considered changing this myself. But then I noticed the bundle clone instructions (more on that below) are complex as well. :-/ Hmmm. Maybe switching to "do a full clone of linus' repo (without using bundles) and just telling users to add the stable branches they might need" by default would be a good middle ground for this document. Guess then I'd switch quickly-build-trimmed-linux.rst over myself. > And then you can have a section on "what if I > really can't do full clones" and various options to save bandwidth. > >> Downloading the sources using a full git clone >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> If downloading and storing a lot of data (~4,4 Gigabyte as of early >> 2023) is nothing that bothers you, instead of a shallow clone perform a >> full git clone instead. You then will avoid the specialties mentioned >> above and will have all versions and individual commits at hand at any >> time:: >> >> curl -L \ >> >> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/clone.bundle >> \ >> -o linux-stable.git.bundle >> git clone linux-stable.git.bundle ~/linux/ >> rm linux-stable.git.bundle >> cd ~/linux/ >> git remote set-url origin \ >> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git >> git fetch origin >> git checkout --detach origin/master > > I mean seriously, even the full clone instructions use curl, without > rationale. Why? That was the result of the discussion back then, can't remember all the details and all the places where that happened. Part of it was reducing the server load, but that IIRC is mainly a concern for CI systems and something this document can ignore. Unstable internet connection might have been the main reason -- in combination with the redirection thing kernel.org does, which *IIRC* prevents us from using "git clone --bundle-uri=". Ciao, Thorsten