Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1654360rdb; Thu, 25 Jan 2024 02:05:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKdERqRfQH6jjpT03qRGdTqltAKISIq+O7AFWRj+4a/6CJoD4nhlaUKL1fceSC9Z1/PNLH X-Received: by 2002:a05:6a20:4f26:b0:199:ddac:ad4f with SMTP id gi38-20020a056a204f2600b00199ddacad4fmr710750pzb.100.1706177118968; Thu, 25 Jan 2024 02:05:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706177118; cv=pass; d=google.com; s=arc-20160816; b=ZXW4dGNEMahc0e7+lJtQlUlpiSaSMIUtgJjGsl9JInLjlcmUJcLGvLUUkUsywYjXNw eNtE+EDx8XpxXVHuSoUjorOC6LD7m3Tlh45UnM8mwBFZkJ3j5OrGKaq9CppZVMbIUjm8 DQiUBnO+Ly+mvBreeqz+SkS3AciG2CeudKE52s+td8nZNBfjS1bFWp53gj2U/MPv9BGE OlV34V7L9ozQoHSXQuzvPqcF1/ZQ92AFhJRA2JqsauSzeaGfochWlfAmYqoGfAFErRm1 yXaV85+kNtACGbMb4jzPJkCayvM1Rz5rkZHB0txeFqbLXiGNv+pffdy7gutHAszQ9pEB DJ3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=uUCfDYtLgYN7Hly+Z+y1hzIyPdjSuqO9P66Wqf9o1Io=; fh=2Y9ENRPw8vQjb+1FZ36/DnS6k+mV8l9YywEBfAK/LoM=; b=EWrWUIaf9KZWPsbTvoFQopz7r1qchr1B3vExHpnuhnewqjZeSEnS0z4kj/0hH0szXz Zp5S296NtabtxGMYFaFiMReBFHXMMND1XCeRna6j2im22TS9YX4dUBHxY25r8evOas6s zcEXsJ4K8BNDv/piF6X8aygCNmqQvGEIkdCG9QL8quBl5VDKhWtrmIJDel88SpF0ZUBa Kbz25CK8uKlIi01pjgd1JIk0NpnoX8SODtUM3XpQLpOJT7jH56QUFrbdRxwQbeozyv3/ TFOoR5uiLUKpbcG1o2OzC0lVcuYA8cfukSQyvAaX42nJ0rkE137KkhtGyOKNZbs0DTKm 3goA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E7YPlVBx; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i13-20020aa78b4d000000b006dab3629a78si15296639pfd.373.2024.01.25.02.05.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:05:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E7YPlVBx; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8A36BB2C9FD for ; Thu, 25 Jan 2024 09:37:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 899541BDE2; Thu, 25 Jan 2024 09:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="E7YPlVBx" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 971FE1BC46; Thu, 25 Jan 2024 09:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706175407; cv=none; b=JWJgnp4F39aJM+cKDpr3On0R9bMw5VN2B/1c/RHY2asW2iTVb8po+kcBY2C8C7PXb3CaKkM/nkvtj2/rVrtw4uUUsZ2/E4nBg2d/A+dSYyE77pUZk8IAR/SODQ2+o06DWCbrkli5SvBZM2oEdk1bhUElYkwpsBMpgE3jD2/k8cQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706175407; c=relaxed/simple; bh=5IdCGjxog+NAv/y7J+sZhb8XlMuQAvpB+GisSh4S9x8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=n1xPQ8fni/n+yKeKUIpZ9ONEVOCdYG7ScsHV0k/z26QWgG2glUBg8sHLyzxkHixjEVXl2QCgiu0zAQNsr2T2WGlTtEX7lcP/3xz+Bz2/igBep11KqaFY5WFTlox7293wEUUztzxQDuYsQVRtTAa9eKnxPyQNdYb+ikJlBONJcRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=E7YPlVBx; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706175405; x=1737711405; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=5IdCGjxog+NAv/y7J+sZhb8XlMuQAvpB+GisSh4S9x8=; b=E7YPlVBx8zXrhMw6ObNedND5t3fgAfpL9zLncRJy+6OyXRrlT0GIGfE3 fMqjrh0EZ/5codKBWOs9qCjtVe+ja3HjRC1C7VuUt/zVSNm6WVBsnBmuh ozFGNid3Qvb1Jj8NhzJnQz0ZR2TleyZ6BIi2R6TYmjDt4U12qhCOtai2V 1r6WiGEDNlSkfA70MsZ7diTsETAAf2+UL/yw4EGwMOcE2Ej6AA6sudyW2 A3b8HDPxTt6S4QPpouS4E2qAG3wFrEqLJPdo9NyRLz/5wv696pyWsFeFS fDU1PDjxnAAPHe9QUPUEAGaKXkKiWT6OlSD77IQt1OKgkDOR300s5M5bw A==; X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="8767135" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="8767135" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 01:36:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="2303503" Received: from cyrillet-mobl.ger.corp.intel.com (HELO localhost) ([10.252.58.252]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 01:36:42 -0800 From: Jani Nikula To: Thorsten Leemhuis , Linux kernel regressions list , Linux Doc Mailing List Cc: LKML , Jonathan Corbet , Bagas Sanjaya , Greg KH Subject: Re: More detailed text about bisecting Linux kernel regression -- request for comments and help In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: Date: Thu, 25 Jan 2024 11:36:38 +0200 Message-ID: <87fryllpp5.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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. The one thing I find problematic is the use of shallow clones by default 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 And I can tell them to 'git checkout v' and 'git checkout v' and proceed from there. To me, that's the TL;DR. 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? BR, Jani. -- Jani Nikula, Intel