From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7182796543154454528 X-Received: by 2002:a05:6871:4489:b0:158:d01a:6ec0 with SMTP id ne9-20020a056871448900b00158d01a6ec0mr1581748oab.21.1674274372080; Fri, 20 Jan 2023 20:12:52 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:52c4:0:b0:4a3:3f3b:df28 with SMTP id d187-20020a4a52c4000000b004a33f3bdf28ls344219oob.2.-pod-prod-gmail; Fri, 20 Jan 2023 20:12:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXvqrthb0Ikun8Nqdh81JjTGftolyf8/9E1K0vcdQzCz8t8NR2ykWsf79aLGhuFhXkWQ3KlK X-Received: by 2002:a05:6820:1690:b0:4d3:f4b2:81ee with SMTP id bc16-20020a056820169000b004d3f4b281eemr9730677oob.8.1674274371593; Fri, 20 Jan 2023 20:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674274371; cv=none; d=google.com; s=arc-20160816; b=jaHhq3MUmZg6IJo0eyz7PwvePMWxHsNMAw7H2h6a9ZcfZraxCSHuAL0c4lgX6xBZzo UUffn9IAB9DeAu4BbTGqcttrMIerQpdLrimKePPAqyNKelAw7TNYuGsHrNiNOFLOJiAs CzzgL+9QkGDMuvyWP9IXM3/qZv+wDBWmdzX2flWfSS+fans3uvV1u97Nx5NwOOU2QHLj lmZK8ugUujpjeab3B/dgs6broJWvBugvUaTNSfOuL9VgUiD59jZ4Rw3aMotziSeOWAqi GIsWCxXvQs4RKxHadDo5hgkPHnjJ7fqnSgUoy/1ATGKEkSE5+mGiBdqBbYo9+/DAi8Ku S1LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=h15jYU3h/CdlBoCNY/2al71D/TU9bIutabALfQ10JIo=; b=wJXOlUwWkDA/sHy4x/hf2hnVyjKo0urORxFCrwVu3XXV6BdHj61A7deyU0tPWpFraq jLapnl1PkMBy7Zs7A5MU2pt3Gaj4uUoYI8fHJZyF1S67bPfY5A6zVNgSY+1kajRYAUiC oZYUJmKXpKWqcSZYBd7LjJ9Ir5mKgfihC8pQttmT/2h0PubiHlS6yDurSbIzeOqicC4e NuI93woROidYAqOi+q6yHTMCIjVWGyj9FOQ2orL2t0jQFIwceoVFDH8+PArQefe7t3p4 U2GmGEKCDWBUYpg5Qy8pMh8dsPFRkaMJiK1ljvWnE7Cf4SMiKh4tH+TFV6xG4ophGCW7 sr8g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q79Af4QB; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82c as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com. [2607:f8b0:4864:20::82c]) by gmr-mx.google.com with ESMTPS id l2-20020a4abe02000000b004a399d01471si742128oop.1.2023.01.20.20.12.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Jan 2023 20:12:51 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82c as permitted sender) client-ip=2607:f8b0:4864:20::82c; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q79Af4QB; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82c as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qt1-x82c.google.com with SMTP id s4so5806916qtx.6 for ; Fri, 20 Jan 2023 20:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=h15jYU3h/CdlBoCNY/2al71D/TU9bIutabALfQ10JIo=; b=Q79Af4QBhHNi0KfWATA6y44w+zOgISlRVH8orRHEGSmfwtwrtbzduIUUZ8SiNTD8l8 3bIi1RC7IouOKTB9TFEW4ELbShRnkuEoK+rfxh0OugMDpEC3mEi9xTSDj6CCHWvPfnXp 4yBDzQT38ONKkDMh91GYKoWovypW4K0OBu0UFbQh9Tk6yxlReZzXwSM09+9gS1A2/7i4 lajNQmKVGGcxBCsc5wGAxrEDPtkfimPq4EF17rwd3DkZ5dkhql4CM0m0svd67ZSGhz6A GCi44xNPCXP1dwgh2KOeUEAYgzLhP9CO3ueTF+8hcvTnhP+PlBYrS/yY+z9fbS/XfAyz BRfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h15jYU3h/CdlBoCNY/2al71D/TU9bIutabALfQ10JIo=; b=0A+uj04kEKVu/8Ogx68BO6zgHV0RnWiBChlwcsBUHN+vng6jSuwmvU/ktejacdODKq sCisHxY8ja4UqzyWALNQN/yw7dI8ExoG2FgXrNDGPP/4Q8H0XFUC3/McRDiC1xjv1A0f T0RkmHZU7/jZviiqKiEy/J+J0MkA+L3K1dT4Tz8jq0A1CFIN06VhBlLkncWBV5FEp8E7 Vmj3PehdzXxZQgtSPesZ7zXgfjlm6dxq7xf+vc5aEDmXV8q5iZuQGPkwAhCwlSs48MRh sHwt4PO5+2uf4xL3KEQFqdz+UO4V7T3TCUIifLW2kEeu5xCDfPeIBsXN+tGsAmfHc2Bw M0Bg== X-Gm-Message-State: AFqh2krgQ8inBzHoh63AUOLn7aENXK4qNUwfDcCY1yPChBx5jp6bWSQ8 mtu+pD7oEC2SrrcSAI5e+vsftEue0Nbq7pEdmQ== X-Received: by 2002:ac8:4699:0:b0:3b6:2f03:a427 with SMTP id g25-20020ac84699000000b003b62f03a427mr609913qto.590.1674274370979; Fri, 20 Jan 2023 20:12:50 -0800 (PST) MIME-Version: 1.0 References: <20230120073106.5453-1-ubely@ilbers.de> <8de12074d8eac2fd540fda3a576d0ae344b27628.camel@siemens.com> In-Reply-To: <8de12074d8eac2fd540fda3a576d0ae344b27628.camel@siemens.com> From: "Roberto A. Foglietta" Date: Sat, 21 Jan 2023 05:12:13 +0100 Message-ID: Subject: Re: [PATCH v3 0/5] Improving apt cache To: "Moessbauer, Felix" Cc: "ubely@ilbers.de" , "isar-users@googlegroups.com" Content-Type: multipart/alternative; boundary="0000000000002390f805f2be615a" X-TUID: eZc2uA+CHTjt --0000000000002390f805f2be615a Content-Type: text/plain; charset="UTF-8" On Fri, 20 Jan 2023 at 14:04, Moessbauer, Felix < felix.moessbauer@siemens.com> wrote: > On Fri, 2023-01-20 at 08:31 +0100, Uladzimir Bely wrote: > > Currently, apt cache (e.g. `var/cache/apt/archives`) import and > > export > > functions are not optimal. Multiple files are copied from global > > DL_DIR to package WORKDIR, increasing disk IO and space needed. > > > > Also, various chroots (bootstrap, buildchroot, sbuild chroot) include > > their apt caches to sstate cache files. > > > > This patchset switches to hardlinks instead of copies and removes apt > > cache from bootstrapped images ans sstate caches. > > I tested this series (v3) in two layers: amd64 (internal) and arm64 > (meta-iot2050) and can confirm that it works. Also we get a significant > performance improvement and massively reduced disk consumption. > > The candidate describes the following situation in plain straight words: Q: input: ln -sf, output: cp -Ln A: much ado for nothing (cit.) Q: How does the candidate execute the tests on the system? A: I don't but my gut feelings Q: What alternative does the candidate propose? A: an elegant solution because quality is relative but elegance is absolute (cit.) Q: summarise it in a nerd language A: mkdir tmp && ( cd tmp; mkdir a b echo pippo > a/file.txt ln -sf $PWD/a/file.txt b cat a/file.txt b/file.txt # pippo # pippo echo pluto >b/file.txt cat a/file.txt b/file.txt # pluto # pluto rm -f b/file.txt echo ciao >b/file.txt cat a/file.txt b/file.txt # pluto # ciao cp -Ln b/file.txt a/file cat a/file.txt b/file.txt # pluto # ciao cd ..; rm -rf tmp ) # to repeat in loop Enjoy, R- --0000000000002390f805f2be615a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, 20 Jan 2023 at 14:04, Moessba= uer, Felix <felix.moessb= auer@siemens.com> wrote:
On Fri, 2023-01-20 at 08:31 +0100, Uladzimir Bely wrote: > Currently, apt cache (e.g. `var/cache/apt/archives`) import and
> export
> functions are not optimal. Multiple files are copied from global
> DL_DIR to package WORKDIR, increasing disk IO and space needed.
>
> Also, various chroots (bootstrap, buildchroot, sbuild chroot) include<= br> > their apt caches to sstate cache files.
>
> This patchset switches to hardlinks instead of copies and removes apt<= br> > cache from bootstrapped images ans sstate caches.

I tested this series (v3) in two layers: amd64 (internal) and arm64
(meta-iot2050) and can confirm that it works. Also we get a significant
performance improvement and massively reduced disk consumption.


The candidate describes the following situatio= n in plain straight=C2=A0words:

Q: input: ln -sf, = output: cp -Ln
A: much ado for nothing (cit.)

Q: How does the candidate execute the tests on the system?
= A: I don't but my gut feelings

Q: What alt= ernative does the candidate propose?
A: an elegant solution becau= se quality is relative but elegance is absolute (cit.)

=
Q: summarise it in a nerd language
A:

mkdir tmp && ( cd tmp; mkdir a b
echo pippo > a/file.txtln -sf $PWD/a/file.txt b
cat a/file.txt b/file.txt
# pippo
# pip= po
echo pluto >b/file.txt
cat a/file.txt b/file.txt
# pluto# pluto
rm -f b/file.txt
echo ciao >b/file.txt
cat a/file.txt = b/file.txt
# pluto
# ciao
cp -Ln b/file.txt a/file
cat a= /file.txt b/file.txt
# pluto
# ciao
cd ..; rm -rf tmp ) # t= o repeat in loop

Enjoy, R-



=C2=A0
--0000000000002390f805f2be615a--