Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2960782rwb; Sun, 20 Nov 2022 05:04:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf7s4xYSQ7ZKfS8/9sTzlNGDGOclRH0Oj5baYwOVTQAgSQl6ihj2xNbtH5a64kVrLT7F0lvw X-Received: by 2002:a17:903:1206:b0:188:cd12:c2e1 with SMTP id l6-20020a170903120600b00188cd12c2e1mr7377852plh.171.1668949460296; Sun, 20 Nov 2022 05:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668949460; cv=none; d=google.com; s=arc-20160816; b=N06Zv8dHZMLMpM4BiCuFhqMSy4aY1X3aZh3FI+l0ZcNnghSXPjWIRk1DTCciXdrIim IbgeU1bzczKhoACF2chAe1rYraziINOrGcfNutwbksC+m7zWEQsflUwZFLfMt1uBDW12 IRTuYjal3S5XeG2apZ59sCprt8fq1JF7bHSorkHelYcUMUm2bO5ZMQhPNb/GcteTQJjr hQt7eaPwr2YtT8JLEqHhh0NJDNztgqePBS505tgOK6xNoQz+mrUUm8t1F+Q5cM3au0w9 Ukzv+ZgO+dOgnOmBqF+0lRGDPoX6MPlsXXtrhDN8kxvzj8KBrdbSHwWOIlFjqBGBSfQJ 0+HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XCUwHwIiSQ/LKf+6sit/EW/crWt69lnxhSoo3m6IKe0=; b=LUcqBInAIafrvkHvz4SGHmyd+hKgMwRWO11m48A6kLcL2OONCjlS9hJM8UbBtZy0YX Zd45V6ya/ZXdz87BjRmqBEqv5Ufu4RrRTJ58UxuYFxRyc3zD9a1l33jAkvFR4eRMr0wp 1HSN2uCQl6LWvxhYznAYYGeDEH8wdJNEzcmBmFwPGBitQtBGmRrpG+A5MM8sFXZf3nCT MNLkfjwLdVXRwWMGny0OvFxPo2vm6d9q4exZDTIsw3Uu2ZQKhUtO1mlhUXi1KyX+4iKu EUSlx2G/9bmwmGCsvYcgh9ovh5WK39LmV4a6UaVRMfE2SCcSKNGRBu6a9LYONTLS1aqu ZkNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Z9F6BOI6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a056a00199400b005618039550fsi9159246pfl.271.2022.11.20.05.04.08; Sun, 20 Nov 2022 05:04:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Z9F6BOI6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbiKTMn1 (ORCPT + 92 others); Sun, 20 Nov 2022 07:43:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiKTMn0 (ORCPT ); Sun, 20 Nov 2022 07:43:26 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD282CDC6 for ; Sun, 20 Nov 2022 04:43:25 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id 136so8921304pga.1 for ; Sun, 20 Nov 2022 04:43:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XCUwHwIiSQ/LKf+6sit/EW/crWt69lnxhSoo3m6IKe0=; b=Z9F6BOI6NYbVtbZlT0ka5RxdknmgtFjiMwzWL+ZmfRmjx9jITw8BRxBiqmus0hfXjA YySkmEPQnYB+OjmED7SJWycofpG7FqWMYeIi0Wfdb5ZMEEUxbEx8QU7Feyz+5grlg2U3 jApNmFQ5ZwdicKRMdQhxEJA9/cw6kNFDr/OK1El5YeVf+c61hlpXJExGNSpAoMpOvQXb FqCagswl7pRmf1DjgxWT+VPaGyL9e4slOQdTWcLVPjhAgtneDrlIzxEisZfbI4f4jMgV Pgo9LnSA2RcZjL6xwRgqdsgBxRI9y/pdrdCGFg5/eWPIi0W2tEuNQqDYHcJ7PneRLhrq r76g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XCUwHwIiSQ/LKf+6sit/EW/crWt69lnxhSoo3m6IKe0=; b=42myevt0G5aBM7Rg4OeaCeb18lpDSwZtenVdcJP4OH47t4dBOjWAftcYaA5hafcNTw x3fZ5MhDHBN4f/0PbmVmKDXVgCYd+S0yxPC0sSKvUXco8nD/P5F8sixilY1Da+bU8U9j rp2fcDHNUHolXwFIGbdS3L7Ngn8beNaj/dTHbyksUDKRWcIn8t+HrOrU3qP6UTjKWDgZ ETjmU5CvPgCcZhM6RJ2ZVZXFdSbqB6bP2n+4t1qibhVexrfzzEAXX8H08lbZjbY2Utn7 Jotxndokx/YMSBNECq03Cv8jERC7Xy9PXGrkQ4lT4C1KVdGYqlUOkf3qZ1/WJybkNUKz 9eTw== X-Gm-Message-State: ANoB5pmo8/zi37yzUiG0rgWl5bU85qGybAbMNIuoUmvZolgsn+ZSkphS Pi2FGcT/r063IuuNGHCU9qbxL6rbDkQ= X-Received: by 2002:a63:e644:0:b0:45f:702a:aec2 with SMTP id p4-20020a63e644000000b0045f702aaec2mr3991898pgj.450.1668948205054; Sun, 20 Nov 2022 04:43:25 -0800 (PST) Received: from [192.168.43.80] (subs02-180-214-232-22.three.co.id. [180.214.232.22]) by smtp.gmail.com with ESMTPSA id z24-20020aa79498000000b0056cea9530b6sm6544968pfk.202.2022.11.20.04.43.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 04:43:24 -0800 (PST) Message-ID: <1cc02070-8833-911d-56c8-608b5ca7eff0@gmail.com> Date: Sun, 20 Nov 2022 19:42:49 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Question re: building with cp -l (hard linked sources) Content-Language: en-US To: Mirsad Goran Todorovac Cc: LKML References: From: Bagas Sanjaya In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/22 12:58, Mirsad Goran Todorovac wrote: > Hi, Mr. Bagas, > > I am in process of bisecting another bug. Right now I take about 1h30m to build both > the good and bad version of a kernel in bisection. > > It helped a great deal to do the following: > > # time rm -rf linux_stable_build > # time cp -rp -l linux_stable linux_stable_build > # time diff -ur linux_stable linux_stable_build > # cd linux_stable_build > # rm .config > # cp /boot/config-EXAMPLE .config > # time nice make CC="ccache gcc" KBUILD_BUILD_TIMESTAMP="" -j20 bindeb-pkg |& tee ../error-${VER}.log > > I've been doing the good and bad bisect build in the same directory, but is seems to me that > ccache then doesn't realise it compiles the same source twice? > > I am not certai of the reliability of a build in a directory with hard links to the original local git > repo copy? How does it handle git checkouts and git bisect resets? Is it supported? > > I am asking because I haven't found an answer in any available man pages, and the build and git checkout > process is rather obscure. > > It seems to me that build in directory with hard link instead of copying is much faster, and I could > do simultaneous bad and good bisect build, for only one source file has to be fetched and loaded from > the disk into the cache and memory. > > However, I cannot test that while bisecting, for it might interfere with some other fault in the tested > kernel. > > Is it supported to bisection build in the same directory where the source is? And then do a make mrproper? > > I don't know how git and ccache interoperate? > > Any advice? > > The current procedure works, but it is not time efficient (15 steps might take 30 hours). > You may want to see ccache(1), especially "COMPILING IN DIFFERENT DIRECTORIES" section. -- An old man doll... just what I always wanted! - Clara