From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7182122219497062400 X-Received: by 2002:a05:6102:5490:b0:3b1:4a3b:c78e with SMTP id bk16-20020a056102549000b003b14a3bc78emr4251951vsb.3.1672403437283; Fri, 30 Dec 2022 04:30:37 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1f:38d2:0:b0:3ab:c172:98c8 with SMTP id f201-20020a1f38d2000000b003abc17298c8ls2962226vka.2.-pod-prod-gmail; Fri, 30 Dec 2022 04:30:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXu5UNKaRGKHVey6cxy0XuZLDT7FTSRDv+hPSWNMdbFKAitTvaFS7r2SZzCc9ggdW+8N5oB5 X-Received: by 2002:a1f:90c1:0:b0:3d5:4ab9:5e52 with SMTP id s184-20020a1f90c1000000b003d54ab95e52mr8514252vkd.1.1672403436493; Fri, 30 Dec 2022 04:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672403436; cv=none; d=google.com; s=arc-20160816; b=SO1/ZGS+c3GT+l8NDeS388MVs7rt3doCrS1HvpPFNb1aL9IokbIWaZiZfQE33cmAkt UFQdJZHLf3hDZ9wGMqp7baacwqjsvA3znmlF3IXtUs/yKdJytO3E5ZW1epppuIHHdDSS 32BS0Oj6wm05YD6IvDjMyvRW5TjalPhigMyyT7EDvo101DQsWUu1pGGDJqhATsRJLFrL RXkBnOlYwgNd0Q59gqPVerDBx19Tj+WfexP5/mhAWW8SbcFAd+Mj4waIBdjFWEtq3xtV sVr4vwyiZdN68phiNmhoWOfU8UnDABrdhdo14my5UX+vArWy4Xpx5nAEk109JgRBCMMs pxYw== 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=Q42RQ/HYpjrCTBsRU8NV8pxh6SlrzjE/6nBx+szdWko=; b=r5FT6Q2akx1MpTm0XO9aQL7b0R2TKT2SIuOb0MArwj6wQJ1KNsmLv7vWRab1k+gML3 mVrbtfrJ+idIJw50N2318/FufJOs9+3uXG8aAdJHVuwNsq2A1zJCzm1aE+pjCL91TDnj 8cMS9xlGDJl476UahX7qINSfVpAn8sJM/XNqUw3/ogq6qP1jC6vjBZjn21t8aiPwR6zQ 6h39uP6Xg/MHYeQQPP9qmGGQ2j+QcgCaFd2JCpFaDGuEwB3RkyhXYaDNFBWSoMysdRxM ILPIg+Sg+SBMKm4tzGbIY1UOeIM70TBeuPahkMLVqqlLYzYtshzb8nDr++jAwE0yi7Wx HX/w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RSCmGjMu; 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 b192-20020a1f1bc9000000b003bc9f1cd034si1489465vkb.3.2022.12.30.04.30.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Dec 2022 04:30:36 -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=RSCmGjMu; 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 s9so17055641qtx.6 for ; Fri, 30 Dec 2022 04:30:36 -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=Q42RQ/HYpjrCTBsRU8NV8pxh6SlrzjE/6nBx+szdWko=; b=RSCmGjMuNLEMXHYFDLO/m/qfgdh2s7CW8Y+6LcEIvPREAkU2Av8AOCB65/Tyyei5vS R6bpO1t+ZtxCl8vBahjcm0d4LDhk11ZEVWJArAN5pnDv5H+AuzlwiUOF75L+vSvXPHjI aa/qU0tBAUUckmykBpwSWFdFdcdXJRfIr4QRg6NEiE3xOHGxugG3SHXtyPLfH6pPGjsa cwWAA96N5TgnAQCwOX7CbSYI3KnndHGd/CpHP8IdO0hzKv6IP1GBcutQn6Wv8T/tYNVg YClsxPLaGwwMZm4GF/5bWXHoqQkdpp6XADSzJO1xN0JVOtcmMjxNhbct+5InnuhqI0Gt lglg== 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=Q42RQ/HYpjrCTBsRU8NV8pxh6SlrzjE/6nBx+szdWko=; b=w7rTkPw6p7HUXAXXtlB2YWRWX242OWWvgWEdwJpmxVicEPgYYKmorten4wqMF7phzq KvfoliJASykB5RuqW6A3qjJrhjaALQth7gJBRoyODY5ofvyCA99HgN8mzparoylEtVm+ +f88m3fwC+OGo/Ob5dsGZXRW5f9rdxbfhTzIt3KjXKxnYr6C4JUkcvGgKodnaZuOAgDJ 97e3F598K2PLLI+5f37lKGPdikCUfaRFJDhIjiX4ZxUYMX+k2RALHNgr52hUR9Ha6bjQ DgFHAVqcb5Bqjcb45uy7DI4nWm5P1YhGPYGnIqD34RExgXtYBLiKmp8ugn8KhDQa1Y6+ 5p5g== X-Gm-Message-State: AFqh2kpQ3aupefHo7yR7VL0ahDfG6tJeAzG/osGBFg4wzvRtIrAk75DO fG1a5CSeJEEPrQIvAIhngQjHFnX3BWi0+SWWRQ== X-Received: by 2002:ac8:6ec9:0:b0:3a6:8ddd:5095 with SMTP id f9-20020ac86ec9000000b003a68ddd5095mr1258654qtv.145.1672403436076; Fri, 30 Dec 2022 04:30:36 -0800 (PST) MIME-Version: 1.0 References: <371e4d826cca6aaba11a4222fef547b134ed6ce7.camel@siemens.com> <38d18c245baa4f685642eafa9a52ab9b9ae9001c.camel@siemens.com> <4769513.OV4Wx5bFTl@hp> In-Reply-To: From: "Roberto A. Foglietta" Date: Fri, 30 Dec 2022 13:29:59 +0100 Message-ID: Subject: Re: Better way to handle apt cache needed To: "Moessbauer, Felix" Cc: "ubely@ilbers.de" , "isar-users@googlegroups.com" , "ibr@radix50.net" , "Schild, Henning" Content-Type: text/plain; charset="UTF-8" X-TUID: CzT6RpSUSiIQ On Fri, 30 Dec 2022 at 00:15, Roberto A. Foglietta wrote: > Hi all, > > I did some changes to reduce disk usage and to speed up the building. > The results are quite impressing so, before everything else I am going > to show you the numbers: > > results before and after the changes > > 43954 Mb (max) | 8657 Mb (max) > 26548 Mb (rest) | 4118 Mb (rest) > 3741 Mb (deb) | 3741 Mb (deb) > 820 Mb (wic) | 820 Mb (wic) > 11789 Mb (cache) | 579 Mb (cache) > time: 8m33s | time: 4m34s > > The changes has been committed on the default branch (evo) on my ISAR fork > > https://github.com/robang74/isar > > * 9fd5282 - changes for a faster build using less disk space, p.1 > * 1b6ac1e - bugfix: no sstate archive obtainable, will run full task instead > * 2cc1854 - bugfix: do_copy_boot_files was able to fail but then set -e The patchset is changed in this way: * 9773c8d - changes for a faster build using less disk space, p.4 (HEAD, origin/evo, origin/HEAD, evo) * 3501d20 - changes for a faster build using less disk space, p.3 * ab0eb44 - changes for a faster build using less disk space, p.2 * 09e2bf4 - changes for a faster build using less disk space, p.1 * b9257a1 - bugfix: no sstate archive obtainable, will run full task instead * 2cc1854 - bugfix: do_copy_boot_files was able to fail but then set -e The second bugfix (b9257a1) has been reworked because it sometimes was creating trouble. The first bugfix and p.1 did not change. While p.2 fixes the Felix issue on iot2050 and adopts --reflink=auto when using 'cp'. The p.3 is a straightforward version of the improvement sent here in list by Uladzimir. While the p.4 needs to be discussed because it is a little radical as an approach and did not bring such a change. patch 1 patches 1,2,3 ------------ basic-os -------------- 8657 Mb (max) | 4876 Mb (max) 4118 Mb (rest) | 4028 Mb (rest) 3741 Mb (deb) | 3741 Mb (deb) 820 Mb (wic) | 820 Mb (wic) 579 Mb (cache) | 550 Mb (cache) time: 4m34s | time: 4m24s patches 1-3 patches 1-4 ------------ basic-os -------------- 4876 Mb (max) | 4801 Mb (max) 4028 Mb (rest) | 3952 Mb (rest) 3741 Mb (deb) | 3741 Mb (deb) 820 Mb (wic) | 820 Mb (wic) 550 Mb (cache) | 550 Mb (cache) time: 4m24s | time: 4m16s Best regards, R-