public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users <isar-users@googlegroups.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: next: ccache broken for cross-compiling
Date: Thu, 14 Jul 2022 16:41:05 +0300	[thread overview]
Message-ID: <6773152.jJDZkT8p0M@home> (raw)
In-Reply-To: <8e8e3b67-ab0d-8661-8611-adf5cfa2b06c@siemens.com>

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. 

-- 
Uladzimir Bely




  parent reply	other threads:[~2022-07-14 13:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-10 20:51 Jan Kiszka
2022-07-12 14:20 ` Henning Schild
2022-07-13  5:22   ` Jan Kiszka
2022-07-14 13:41 ` Uladzimir Bely [this message]
2022-07-14 13:51   ` Moessbauer, Felix
2022-07-14 14:44     ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6773152.jJDZkT8p0M@home \
    --to=ubely@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox