Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2677357rwb; Sat, 19 Nov 2022 22:46:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf4C27a3ry/PmLP4AQx5O4AFjylOST7Pu757Wa+IlMqRBzdhXWdkMlr+qEXjp5f3j8/1FgAB X-Received: by 2002:a17:902:e0ca:b0:187:1a3f:d552 with SMTP id e10-20020a170902e0ca00b001871a3fd552mr6771646pla.5.1668926762516; Sat, 19 Nov 2022 22:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668926762; cv=none; d=google.com; s=arc-20160816; b=y/+lgdapkJqG7m9kObTkJqcUySm/6AkF7BS41IaEtIdsCFUlHq6uygoS1JSGbEo+5H QQHC+QWj9fPeVpOgHgo77HhWvVMQKSxXCD3QIYUdSWyT8cwehiXrFKwFlg5NsaQmX1OE /B5xYmeHhWzLcypO4/MxIitdr5pA5eukQiCb6fxrPwaAq7mlti04oegyrYEo90LXyyOW KG9mDJB52Qh6owHvaud9fzO6bZMRkmVk3fDSyqD8SQiN8oPDHI7Dr3qY/VQaRiIkr/sI L3BVEEED4+hux1FJ445UanIm0p/y7Hnf8q5USa5wEbb7jsPadkx2DL+a+mubxUPHCv6f n2Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:subject:from:to :content-language:user-agent:mime-version:date:message-id :dkim-signature:dkim-signature; bh=eMtlRKKyVRLZm3Px2BSHaOBj5j5jRSWNxRmMRRRaG2Y=; b=W9HIg1aKxxvQ0SGtrfcr02X5BSBJGKxigGFE5x0sfKpDop3TYmfnAukExdL5cU0L9u 5oyffXSSydNFKRAVzmAR4rtREYP8tVgQRK/3F4NIjC+aYni8+GxOz7naa/FpcaVsRR2I 9Oz0qV7UhQVg0UufH34Y8C4qivOtlnL1aSbk4F5iWLI1u2dm4VZNrwxm0iNVWVdpxLyW 4EqM/sQNTyljWlrs4Dz471ICTvK4KH45BCREAmFttSJO/KlUzAI2I5vrI0e0fcZfUdQB WTisqQMuS6pNaBfmgu8me2nekrzKGWZey6xFEbilqoOki2MCinam7iWfmmbbLbvhWB/L mY/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=b8DJ+hGO; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=UkWFAQwX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19-20020a170902c1d300b0017f61b0bc5bsi7477429plc.557.2022.11.19.22.45.27; Sat, 19 Nov 2022 22:46:02 -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=fail header.i=@alu.unizg.hr header.s=mail header.b=b8DJ+hGO; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=UkWFAQwX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229480AbiKTF6r (ORCPT + 93 others); Sun, 20 Nov 2022 00:58:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiKTF6p (ORCPT ); Sun, 20 Nov 2022 00:58:45 -0500 Received: from domac.alu.hr (domac.alu.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC8D6A4170 for ; Sat, 19 Nov 2022 21:58:42 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 7B2D2604E6; Sun, 20 Nov 2022 06:58:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1668923920; bh=Gr/N/0FY1W9pWekVcWezPaYNxeNDefZb+QUa0u9rVYo=; h=Date:To:From:Subject:Cc:From; b=b8DJ+hGOuuQ+vY+/btgwhkzTPoU9OBw4KSKpN6dlJHUr27ef1E2zB8oNktrFpTEfa C7GcjI17/3BGVMbXySrYotRxnp0UJdrN5ZqoUVWKqqysYhouSdzPEhN2Ga9x++vX8s WJL93OwEywWs9CLpAFPRLONbXORG3/Gl3a/pXOoMU71MWVvhL+FaDZ0cTrS6m+1m4N qp3m6zvPuoAP958KJ7+sN2cnAjRP4S3V09l8SHgmhKssP1qItZ4Dwjr6uRQboW0ICJ z40TBhw3BdsI/jkyUldk4ZsX6SvnBZo+Wu7Z68PEyQx32vUS5MnisWXv0mLFoOPiS5 ifpiljbSigtbg== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MVQHL6lzOWT0; Sun, 20 Nov 2022 06:58:36 +0100 (CET) Received: from [192.168.0.12] (unknown [188.252.198.198]) by domac.alu.hr (Postfix) with ESMTPSA id 3E523604E4; Sun, 20 Nov 2022 06:58:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1668923916; bh=Gr/N/0FY1W9pWekVcWezPaYNxeNDefZb+QUa0u9rVYo=; h=Date:To:From:Subject:Cc:From; b=UkWFAQwXyUmYPuMCGoSA8qgj5DqeWOsawuUl7mVcQWN/dovG7vEEKpzYMoyyXt0wt qWnRTOX+6KgwFeOohHbqmLuI1P5eFRFNRwAVT8Hj6faE5m/w8hq8dbMWF7pUss9dkp yZm/mBYXHA4BNixYLkmjiQvvROG+8ISKfoxU12QmZ7QkRXCX3tTEoScCTd/97nnCuC AIHU9Mh9HMZao7vmbaGlLUuPPazrl28o6PnRShFpLMjGh98MMv+vcmniqRK1EgdB4l mtmRLcn9eJENofaZieEbHJWIP6yRZ2cC5JIS4ezwKkD6qKmEPNvWqEWY8tbmTBS301 lwy3nEdRCvgqA== Message-ID: Date: Sun, 20 Nov 2022 06:58:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US To: Bagas Sanjaya From: Mirsad Goran Todorovac Subject: Question re: building with cp -l (hard linked sources) Cc: LKML Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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). Thank you, Mirsad -- Mirsad Goran Todorovac Sistem inženjer Grafički fakultet | Akademija likovnih umjetnosti Sveučilište u Zagrebu -- System engineer Faculty of Graphic Arts | Academy of Fine Arts University of Zagreb, Republic of Croatia The European Union