From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7118849365338226688 X-Received: by 2002:a17:90b:3a82:b0:1f0:543a:1c73 with SMTP id om2-20020a17090b3a8200b001f0543a1c73mr10011434pjb.139.1657809864997; Thu, 14 Jul 2022 07:44:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a63:45:0:b0:40c:9def:1bb with SMTP id 66-20020a630045000000b0040c9def01bbls3300925pga.8.gmail; Thu, 14 Jul 2022 07:44:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ty6gcfASUjTFmqfl2JX/iStWk6L0nSMNEzZS+gF7PwZ0ErE2/4dlvez4ha+Ob1bZfJa5bo X-Received: by 2002:a62:158a:0:b0:52a:c074:3e08 with SMTP id 132-20020a62158a000000b0052ac0743e08mr8868945pfv.16.1657809863961; Thu, 14 Jul 2022 07:44:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657809863; cv=pass; d=google.com; s=arc-20160816; b=B3a9l5JNsrWimlrT8nVBNCLHF58afv1dBZLiiyJTQ4ax6+p/rc+SaNwY4ig2sIF9aK 1JDlksoQ640EF0xZc3ikWGA1q69yPsUX3q9QW16fihw33F9T13VQoHj4YsmwzBfbdJeG lQ4gXa4RqgGWt3lPOP4uCMtuU2DNRkCFasj6i0o4s+0nSwMUhZQDAzbpFzvu9t5Zo2TL sv9sjR/1ZTWaoTJTGlIAAHdUJtoyAVXQ4TTwqmTse58d1Zed6V0pG/c1NvuZCUCpDO8F dy4RH5O4oWEegDkkiPzETLpiHSG1ZjN5RMimnUHJJc9QrwZEYpqjU6qKC8n4qVuX5oEO VY4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=27/4z6p/KTNVIiwXborTWxGTbpK8wWNTzX2JugFDjjA=; b=AbZ73gbBEmcPOhHbbQJONFlASPoGCiKAQV+zYMw8d/MDR3hj5afKB8Xkj/c3gYlIzI FqrH4Z1X51jZb6wVvAypDYZgUwN1Q8y8wWmEv61d5awmdGXDm/bo5IveQjbXEyIHdsMi d8KjZ8ouxKg6IYdSZSPkT7MYnD//ty//A1Lb4KM2+ZTTkBJPMVJK5SW8p9GNmUMNRJbV QfddiyCp2PH7Fh96AiZt0CNjXe6KNGXoLD5C9HmkiCJBg/dmLJyH+cbk6fh1v/841s5i pnnZG5nXhJRlMDR10ug1O21qVpZJWZeWLOypHp/V7i+fDbb2WvQpEiPA/eDheb7hUdko mz9g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=TxCF9Qu+; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 40.107.14.73 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140073.outbound.protection.outlook.com. [40.107.14.73]) by gmr-mx.google.com with ESMTPS id mn14-20020a17090b188e00b001eaee288f91si188310pjb.1.2022.07.14.07.44.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jul 2022 07:44:23 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 40.107.14.73 as permitted sender) client-ip=40.107.14.73; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=TxCF9Qu+; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 40.107.14.73 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J0bYtcJ00MW6QRzUL+u3k5NMjylZL3hYSAuAwP6bftpSgxH5uc7skBbG8iZ6rMIySJrcwxAojNIPiidmDtv7HkAf1tOuLneWVaYKLQnkkCK4f6EZS0G/QPDvM/uSHaUS0dNV48Bnh+ER4Ya3janCTu0KTFkQZZhbJGZDrRk1g2O2zAdaWOdqiXCnkDKe9BTGcgPHy/9TbXBvEhFEsYgZucUzWbYMYyfXSXytxBFXx4EPnkBBfFdO691s37WbnProS+PoxNgfAIQ3R+gaNbSb4mUs7K4jJUjGI0rNLxp8GwkCW5Nf0oAp0I32WtvPbb75qSHhimE07A8vnBtVIiNSFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=27/4z6p/KTNVIiwXborTWxGTbpK8wWNTzX2JugFDjjA=; b=iPodiaUPD1QpiYbuQ7BbILVH/Rb1RcPJP6m3TlRY6kwtm3fJY18fY9dKbta/rOSw+fS5SHKHIEcBOKiVyoqKP2gQElxwHhL3IqAnv8VlY5dAlV+cpguA194V8JnkJtKxFLz+zr6G04xsDixJdeiBL/AJZ5NOEa0c1O/WSYatn/AOidqpAQbaw74usJsxie6EeMEX7gFmm1jjJalrk394y84Tz/9SD81pfS6+RBSEvS+M+H13PiYk00GhHBSyy5LvsXlVUr0qTsWCSyHf0sIUuYp3jyjZyD/IObe1cy5+mdcl7Vd8j3tFTkqTgreoO4aaYc5ZzG9PYaLQVZPwafS8PQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.72) smtp.rcpttodomain=ilbers.de smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=27/4z6p/KTNVIiwXborTWxGTbpK8wWNTzX2JugFDjjA=; b=TxCF9Qu+XGeM+F6E/8XrO1YrPdjL2ornf0PvTtS7RbJUr3rolCoo6cozDoxLodwAP0WA2xaomogIoMIYh6f4VyRcfx6MGv9/MvOP0CYmqQo+GQV+O4TToWBRjZURNQylTu/vsSBvh+3+p3j0rV4cqk3mffxkDVVP+mZ26c0a/sGLDuh1RPbOQmSkll2Jc3mu7c3tHwwucqSvpD/2v76n4OKi95AoWCnFjJh6JSuDp3FLCHEsaxWgjI7+/FZXoMS09W/OR39YokqRRU63UMBw6SejnHypVFpk75YDhMxR+5rAYT0l2MAUaI1OYuot8AmWmp0R/tR+4lWLiDEmM2nS+g== Received: from SV0P279CA0016.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:11::21) by DB9PR10MB4393.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:220::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20; Thu, 14 Jul 2022 14:44:19 +0000 Received: from HE1EUR01FT101.eop-EUR01.prod.protection.outlook.com (2603:10a6:f10:11:cafe::2c) by SV0P279CA0016.outlook.office365.com (2603:10a6:f10:11::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 14:44:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.72) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.72 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.72; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.72) by HE1EUR01FT101.mail.protection.outlook.com (10.152.1.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 14:44:18 +0000 Received: from DEMCHDC89XA.ad011.siemens.net (139.25.226.103) by DEMCHDC9SMA.ad011.siemens.net (194.138.21.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Thu, 14 Jul 2022 16:44:18 +0200 Received: from [139.25.68.37] (139.25.68.37) by DEMCHDC89XA.ad011.siemens.net (139.25.226.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Thu, 14 Jul 2022 16:44:18 +0200 Message-ID: Date: Thu, 14 Jul 2022 16:44:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: next: ccache broken for cross-compiling Content-Language: en-US To: "Moessbauer, Felix (T CED SES-DE)" , Uladzimir Bely , isar-users References: <8e8e3b67-ab0d-8661-8611-adf5cfa2b06c@siemens.com> <6773152.jJDZkT8p0M@home> From: Jan Kiszka In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [139.25.68.37] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC89XA.ad011.siemens.net (139.25.226.103) X-TM-AS-Product-Ver: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-AS-Result: No-10--24.643000-8.000000 X-TMASE-MatchedRID: 5kZRuoL5N6g5QaOxwNGfvo9bHfxDWoib1xQ2OgXti5X4s5FS/CUl26cc EhvIyMIUzAKTiuEfBeKGPneCOFgqRFfpfcKqwNX3YS8nI23JTalH19AMoN1Dd/7FEhWgo0y8l9q 75JzWJROA6UrbM3j3qcQ5vcyCjz1Io6E3fd0D6mVCPYF0gRjARZydRw1XtoE2Iv+ryacAncT1cs XkzgSq1EL9PFtmqVvH+HmBPyReSgwZvHiSMXZZTo17JStdlcMukDwupgO6FqeKR0fcRBoRNRpxm KWTfsQIEI7B2Q/c1V4equhyYtGyCKDacWwJ0D8L03vxW0J+MkCmrz6r91+/15qvoi7RQmPSBGvI NcfHqhe565vjVb2YJ89xvC1/5d4ZjkkD6PoRkc9PnPkQmqDQsW94Ipa1otxoDcFFYSBeqVYujMj 6uE1hubbMVaqtU3gFXjesFOd0pM7i8zVgXoAltkWL4rBlm20vt7DW3B48kkFJV3La6JhRYvoLR4 +zsDTtAqYBE3k9Mpw= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--24.643000-8.000000 X-TMASE-Version: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-SNTS-SMTP: 7B3E32E667EDEC52EDB5CB2C2ED698CEBA0679BFE33FA6AD957ED5A82F191D2D2000:8 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2405f878-677b-41d3-56ed-08da65a75533 X-MS-TrafficTypeDiagnostic: DB9PR10MB4393:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1BohWNxY9ToIGyXIFpabrPFpl7t2jOqf067lRJo4Kkh0t3VAlXU6qj4JZpE4ELm6rGMEi2SJVe2hW+V4oBsSZ/VJO47cmFsVUKvzcyd/GAlySQzDU0uqrkFuBFhNUu23823qAPr/oXq/joHlYEbeL1eQU+dSM/tPmlr+IFtTnoKIvGGfWGqj3GNzFGk49PBLVq0rfn+W2SbIHO/ORoPHzknMO2HL2JWDxXD80lsIb4nEEN2hb2JfPWvwbu0c9YgUx3Ju/7Xj4XY33uzLMvWNBuFc/cm89zfq0Nxpoh+SrjueIpXMhDNCZa8tmKkJwz6lG2/P5kRvgDOW5yw5BHy9P4ypr4f6d7Q5eD5XcChlzuu78lHJdtnbk9OIeQHseIO/DXDbbID0fOe8nhBHAxzFzscNzyPrqrgYq0X9JV7cSAgd4UcWFiY5fWbCerT/lKoY6IAIEJxch6nzCtfQ9kMM0H0O40Wpli2zHhx+c39PSFARBvdwlTXPYvrFZSey751BW+SKbPXb+ma+6O1xp1734ZTC5ZIvJ/fjfOPuOpCTZngnV8OMu9BqODiNMKZ6SWNJSBR/d7vS1/ZvymnWiMZV/oGYCYuYdgZgmh1jJX/YvvS66CR1tYmWdGVyG14UdYmRXj6S1wqMwEA4SMCv553wWMIVqwSOZIcGXyvWvs5fPHV9QxK0hGpsmhIiJXhbUVgWISd+s2Rc0ARCIpWvMfVm3LYar6rIwUSQ//seVUkwEnMKLtXIoYezUSVmOhC9izRwa5kugi/KvsqOlLflbgwPGj03RJAs34sk9NYvF+nfNQAvVM0FxfQYYZ+5kIJ9ssU9W38yDZJTUsZCcZNHS9z7f67VUqpZDjE0zHZz+pFzPW9EEwIJBD7XyCDhUq/SiNu+LpgtaJgfxC6XeHHj2tm/VOO3hPamPILraHphfpgdCgw= X-Forefront-Antispam-Report: CIP:194.138.21.72;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(396003)(136003)(346002)(376002)(39860400002)(46966006)(40470700004)(36840700001)(36860700001)(81166007)(2906002)(86362001)(16576012)(316002)(82310400005)(5660300002)(31696002)(41300700001)(40460700003)(44832011)(478600001)(82960400001)(53546011)(31686004)(956004)(6706004)(40140700001)(82740400003)(110136005)(336012)(8936002)(16526019)(36756003)(83380400001)(40480700001)(2616005)(47076005)(70586007)(70206006)(8676002)(356005)(186003)(26005)(3940600001)(36900700001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2022 14:44:18.8937 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2405f878-677b-41d3-56ed-08da65a75533 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.72];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT101.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB4393 X-TUID: 3yB4GEn4OizR On 14.07.22 15:51, Moessbauer, Felix (T CED SES-DE) wrote: >> -----Original Message----- >> From: isar-users@googlegroups.com On >> Behalf Of Uladzimir Bely >> Sent: Thursday, July 14, 2022 3:41 PM >> To: isar-users >> Cc: Kiszka, Jan (T CED) >> Subject: Re: next: ccache broken for cross-compiling >> >> In the email from Sunday, 10 July 2022 23:51:14 +03 user Jan Kiszka wrote: >>> Hi all, >>> >>> I've noticed that ccache is not doing its job with current next when >>> cross-building, e.g. mc:qemuarm64-bullseye:linux-mainline. It does >>> work as expected for native builds >>> (mc:qemuamd64-bullseye:linux-mainline), >>> and it works fine with v0.9. Seems like an sbuild regression. >>> >>> Jan >> >> I did some checks on my side and it seems that it is not related to cross- build, >> but mostlry related to something specific to sbuild and kernel. >> >> Just some statistics (taken from 'ccache -s' output) >> >> 1. 'hello' cross-build for 'arm64' on 'next' branch (with sbuild) >> >> First run: >> Hits: 415 / 7479 (5.55 %) >> >> Second run: >> Hits: 7353 / 14958 (49.16 %) >> >> Everything OK, most of requests are hits ((7353 - 415) / 7479 = 92.7%) >> >> 2. 'linux-mainline' cross build for 'arm64' on 'next' branch (with sbuild) >> >> First run: >> Hits: 262 / 6208 (4.22 %) >> >> Second run: >> Hits: 644 / 12416 (5.19 %) >> >> Cache usage is relatively low ((644 - 262) / 6208 = 5.3%) compared to 'hello' >> >> 3. 'linux-mainline' native build for 'arm64' on 'next' branch (with sbuild) >> >> First run: >> Hits: 262 / 6208 (4.22 %) >> >> Second run: >> Hits: 644 / 12416 (5.19 %) >> >> The result is the same as for cross-build ((644 - 262) / 6208 = 5.3%), so the low >> cache usage problem is not related to cross or native build type. >> >> 4. 'linux-mainline' native build for 'arm64' on 'master' branch (without >> sbuild) >> >> First run: >> Hits: 262 / 6208 (4.22 %) >> >> Second run: >> Hits: 6469 / 12416 (52.10 %) >> >> Here, ccache usage is high ((6469 - 262) / 6208 = 99.98%) >> >> Most probably, Henning's assumption regarding inclusion of debug information >> (with different absolute paths in case of sbuild) making binaries in cache >> 'incompatible' is true. > > At least when I had the issue, the debug information was the root cause for low cache hits. > But instead of guessing, it is better to simply enable the CCache debug mode and look into the generated debug files. > There it is easy to spot the problems. The probability that this effect is rather related to CONFIG_DEBUG_INFO than cross-compile is high. We use the defconfigs for the archs, and x86 happen to have that off while arm64 has it on. Worth to check that trace first. > > Yesterday, I sent a patch on the ML to enable the debug mode in ISAR. > > BTW: the kernel's debug information not necessarily has to be disabled. > You can also fiddle in the KCFLAG -fdebug-prefix-map= ...and then this may become relevant, indeed. Jan -- Siemens AG, Technology Competence Center Embedded Linux