From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7182796543154454528 X-Received: by 2002:a25:ba03:0:b0:80f:4da9:df24 with SMTP id t3-20020a25ba03000000b0080f4da9df24mr26938ybg.64.1675081525645; Mon, 30 Jan 2023 04:25:25 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a81:60c2:0:b0:506:3896:7a33 with SMTP id u185-20020a8160c2000000b0050638967a33ls7898733ywb.10.-pod-prod-gmail; Mon, 30 Jan 2023 04:25:25 -0800 (PST) X-Google-Smtp-Source: AK7set8oxb7XpSGmCwFCoR2PWIOOmG7wTlUWmiJsNQIuJUH9EllRAhGRiDUI/aBmI5YAb4hACzCi X-Received: by 2002:a81:8b41:0:b0:506:5dea:818b with SMTP id e1-20020a818b41000000b005065dea818bmr409520ywk.25.1675081524973; Mon, 30 Jan 2023 04:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675081524; cv=none; d=google.com; s=arc-20160816; b=R7a8cnEMFGPBtoWI1fImq57rS2uDlMvDcw+wf+8dlFxUNieBiLnQR79xv3qdodqqJu 4RYF1pW3hyG60y2KUA/cWJM8ovr31OeHyoVBrxY8EzoAnEaFwfuccomfBx2iE0Flf5Mc U2gDeV8GHzVIzwsN55srr3WUOkMeJ0p61aNjDDJ8z2lcISvIy8noR23ri1dXmUd39sVh UWRRrEEgMv59YuvrALV6RMyEuWS0iGFtCE8WbJlxj0A98VJ6KxC7BKnHzF1LpBpoG3sE rcVyQ3Pi8KWad068zg5j43Nqq1zXnpeMsag4m+1VXCHD2tR0KvgwMKRxcnKHnZPXRmxb f5Nw== 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=Ckq1T/+Md1XLxYUY8sctFxGEQYxnKIaz6iIfrF/TSJk=; b=qiRaHK4TluIaaooBoGnLTXWnQwpToCJAP70gLS9T/yHW5fhLbPv8CP1U5Wk0lXkeot 9Xh5mqCDqw1FQlVTfHR9JY5r4Sy0T4Bk0dyyqhQpcFlxb0p4uGGIiSSfKWUQDUMM583v XxYmNb6Xo/yxTASHMmDZsiM46b93pzLpGRmB16nqqYzr6sz41ATv7FNg7zH7jC0OBASL O6CZXg367MKnN2oON2qgyLC2/CRhG6IXYDWrvR8YUzC/QtrQ94yF4UR+hvw+LstHLpxu VVKdrXAzUNiDQs9KGxHYNJxHYhiCdJhHwNfC4uPgmn59MGuS+cCRTna9vzFdvSJxx5tq uugg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Coeap3W2; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82a 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-x82a.google.com (mail-qt1-x82a.google.com. [2607:f8b0:4864:20::82a]) by gmr-mx.google.com with ESMTPS id bc29-20020a05690c001d00b004fa49c05aa9si2199279ywb.0.2023.01.30.04.25.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 04:25:24 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82a as permitted sender) client-ip=2607:f8b0:4864:20::82a; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Coeap3W2; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82a 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-x82a.google.com with SMTP id h24so1657758qtr.0 for ; Mon, 30 Jan 2023 04:25:24 -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=Ckq1T/+Md1XLxYUY8sctFxGEQYxnKIaz6iIfrF/TSJk=; b=Coeap3W2xjIAhNKu/yAzb6RcGQW1nLXX9O/h1mP7lDEZ4614U/niah70LgG5croz+9 rt5O9xzDL9vfJoB+7YG4gMhUdElt7X+vBXPMjA43qgPJTRQXtCGxns0F2a2+MqdkR7YT bZEpyGeAEgQb1b+8c/2f0cM6kh1kStK2O5m6z0sirp4+G3k/24onyEtALCyMRvgL63Cc qaYESUwNafmv/QWW5VdaU6JH+KT+C66Hm/vOUUDKORepQeMfVnbQEoKkiEmlUAYqOlIw g0RKhgguyqhcRT6QzaXgAEmeE8fsR2GSkdYCm7eOgjTwv9BXSXhC8oMImxUCFChArVwx OXrQ== 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=Ckq1T/+Md1XLxYUY8sctFxGEQYxnKIaz6iIfrF/TSJk=; b=Vif+8cS9S6wM6TfX1nzMQ8pLq+ZYc2OaYwMKXVUSdT/rwU386wBUndbmI/OfC5Mq03 gXO7NVXzTGHBxicVEtpH1RaFZLAuCXafte+30qvhs8psVwdbDB5CoAhR92pCF4VoE0kx jgTTiLxua+UsnWzO7VFP40ZAlmoTLbAaVscgSTZV2qCGu0AN6r5+EjSFS37wypRHMvw/ sVz5xZd83Fg4fkLrynt4H062i9Xz0MNsh2yeJEmu5ChrYnFaKH/8I+BXRH89gTFYsAtb vHiV3bqTlEHASvys5CEeDYfWj3dN0RXoWbk8rIyL37mGYTl/JhkwZG4li0/rMYZst0zI 30tw== X-Gm-Message-State: AO0yUKWvQZh7Q3BUFzwoJejHo6M1ezzfzaFbvQoXdRastQ6uADjAi7GU KTyg45RakR5V0nepEnW8eGdgoHt3chc+fDYV3hO3h5QqeOPx X-Received: by 2002:ac8:5f88:0:b0:3b8:6554:95f0 with SMTP id j8-20020ac85f88000000b003b8655495f0mr330209qta.62.1675081524565; Mon, 30 Jan 2023 04:25:24 -0800 (PST) MIME-Version: 1.0 References: <20230120073106.5453-1-ubely@ilbers.de> <20230130114504.51e78b03@md1za8fc.ad001.siemens.net> In-Reply-To: <20230130114504.51e78b03@md1za8fc.ad001.siemens.net> From: "Roberto A. Foglietta" Date: Mon, 30 Jan 2023 13:24:47 +0100 Message-ID: Subject: Re: [PATCH v3 0/5] Improving apt cache To: Henning Schild Cc: "Moessbauer, Felix (T CED INW-CN)" , "ubely@ilbers.de" , "isar-users@googlegroups.com" , "Kiszka, Jan (T CED)" Content-Type: text/plain; charset="UTF-8" X-TUID: hC/Pg5Q5IIv5 On Mon, 30 Jan 2023 at 11:45, Henning Schild wrote: > > Am Mon, 30 Jan 2023 09:45:45 +0100 > schrieb "Moessbauer, Felix (T CED INW-CN)" > : > > > 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 just saw that this pattern does NOT work in case the cache is on a > > different filesystem. This unfortunately is the case for all CI > > systems with locally mounted caches, as well as for kas-container > > builds with DL_DIR outside the KAS_WORK_DIR. > > I remember discussing that issue with someone because that is always > what happens when you implement hard linking. Not sure it was on the > list because i kept away from this lively discussion. > > It is like when someone adds overlayfs and then finds that it can not > be nested a few weeks later ;). The overlayfs is not the right way to go because a simpler approach should prefered. The problem of going for straight simple solutions (small patches) is that in the long run this brings us to an overcomplicated system. So, from time to time, it is necessary to approach the problem from a radical point of view. This is not because a radical change would be necessary but because we need to re-think the system and then see how options are viable and then take a choice among them balancing our choice between various aspects. Best regards, R-