From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7182122219497062400 X-Received: by 2002:a05:620a:13cc:b0:709:94c:5edf with SMTP id g12-20020a05620a13cc00b00709094c5edfmr1288402qkl.125.1674622155847; Tue, 24 Jan 2023 20:49:15 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:622a:1a89:b0:3b6:3272:8dce with SMTP id s9-20020a05622a1a8900b003b632728dcels13660812qtc.11.-pod-prod-gmail; Tue, 24 Jan 2023 20:49:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXvEvu6OCQEyVwY7xB9cKps6QAEIvtcr+NReQYg1JVIZZNerwaHTG6tiQYgZKSDmusaZDme9 X-Received: by 2002:ac8:670a:0:b0:3b6:2dc7:de7d with SMTP id e10-20020ac8670a000000b003b62dc7de7dmr44045274qtp.22.1674622155207; Tue, 24 Jan 2023 20:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674622155; cv=none; d=google.com; s=arc-20160816; b=zPZazRuae/5hkHPiJLe+QiVYvogcR6odoHqC84UE8fAnlPEP5BiVzvg3FkIogN9GHC YnmrlagkxNrT1ikYXEtC4ffC74BQVpIgkJVqvzNAayHbPiVWga4SwBBu8hOgZ/7HOnC/ dgJg9P5cNJZUgQdleQg4kwFVuWlRkM0lnQUohmjlXHc/TiOjOyRYLCVpAq02TN8mIxr4 /Cx2IAw9W/ponJ8Ib3Mp1iM4P/kFnkkyhhZNceU/BOYfKIa7tYKn1ef582aGCfTxh9Yi zoseWARGVWfpy3FIFNnQIL5Rp/v+bE+ujDm/uVaig5cVGb6Q2CZhUANpeyyk85vzqd6W ptLQ== 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=4pqkQaDt/+4QJ4+ZURR7n1pbLHGQUwoUArSnrOH1VIU=; b=UkPKKYdaYqccRWd5zMMjXYulGRZVAiFTDNqybJXWbTasE8I/JB4Funwy95qtB9PiPJ cjAkm1p07urEMvuGOhFqGqHqB961ErtKFvi3s/5O9DqS3F8NIuluCAfzbAWPgubiTT6J Iy3+65cZUq6bMpK//VIXLaVSfS4wjBVcHSMLXyKoQ+/g7NNXp2+AbAhuZXk4i6GcYQtb A3Akx2gVf6Abg3y2Z88cxROjTee8tUZgUhrzr1t1srWrr/yqBRpzIlnJQf0j7iuxOkfi p/tHZvD9owTXlChBh4O3WbnNbWSGyHTvJK8t3AfLz045pRle3LUY6JkySe6msyylvOkh rqzQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JVCo23f+; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f2a 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-qv1-xf2a.google.com (mail-qv1-xf2a.google.com. [2607:f8b0:4864:20::f2a]) by gmr-mx.google.com with ESMTPS id f8-20020a05622a104800b003b63b24c87dsi450545qte.0.2023.01.24.20.49.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 20:49:15 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f2a as permitted sender) client-ip=2607:f8b0:4864:20::f2a; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JVCo23f+; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f2a as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qv1-xf2a.google.com with SMTP id g10so13300819qvo.6 for ; Tue, 24 Jan 2023 20:49:15 -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=4pqkQaDt/+4QJ4+ZURR7n1pbLHGQUwoUArSnrOH1VIU=; b=JVCo23f+FErLCuIZuxVIaJq+qmE9yFNFMCscgwwHuv0TOmTtOSldpTZjrtfxndpC4T XzuOva+bLPzPnt9TO7q4hUy4ip/C+FFv9QNYmNJPmMMR8gK5+diROWqu35G58nkmwdpK aXlhhNRsOkiMTDnOU+HjkMDSzVHWrnE5iJyMQFrbX0QAueEtTRu01dznk8zpu56Xd6zb pQ9Fuj3nwuYsLi1WXG9oOCSOJD3ehAT/8e93Hcm3krqcCY6wvo1SIqVXCz3jtDruKrRf qjpLFjLvurq2rFVXUvK/KoEe4wa2fjcr8w058G+MHD+2j3ZbJsWF4igXMLhVV0HLdjyx R7LA== 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=4pqkQaDt/+4QJ4+ZURR7n1pbLHGQUwoUArSnrOH1VIU=; b=EUjTHrxK31K+D9x4gytLGJ2zcLlmBvaGwhNPh1+kXqfyZhaC3h4mHp3qADKTFRhbMI ILtIZsSEk4aw/CxWWGKw5pni9rmRqCH0zFFJAwVXBumd0lmVW7LVmT4IJipM7iMd3QAp iniPdqhDyop+50N4PhOcP1Y1amxmjQpGKDHP/S4V4zS1WXbW7QsROkmArZsYL1Z/nUs4 fp9ZUGvULX0FiVjn28k4GeZzokxjgIwMTH156UbmkIZ9u2M6BXoMq+91HWSW7LVzFpIz AZG+fW4b9yNOUtU24h5cL+IMz4Bxdi7zi6Glvdj+tYbfkP4BCdqsVncv89JAPbsPySNG koXA== X-Gm-Message-State: AO0yUKVOUhGPR+sIwhIAwYk4FaobNSJGiLjWy9Ewbf8L+MG8Jh+JOA1i SokCukvpwRPyNXJJLmr7aW/VPmTwpqd7BiG8ug== X-Received: by 2002:a05:6214:5f0d:b0:537:653d:c866 with SMTP id lx13-20020a0562145f0d00b00537653dc866mr191477qvb.32.1674622154859; Tue, 24 Jan 2023 20:49:14 -0800 (PST) MIME-Version: 1.0 References: <371e4d826cca6aaba11a4222fef547b134ed6ce7.camel@siemens.com> <38d18c245baa4f685642eafa9a52ab9b9ae9001c.camel@siemens.com> <4769513.OV4Wx5bFTl@hp> <95542c23ea3bd00e31898fc1080854c58e41a8b2.camel@siemens.com> <13d9675831e4d315390357c3bfd925e66f84d136.camel@siemens.com> In-Reply-To: From: "Roberto A. Foglietta" Date: Wed, 25 Jan 2023 05:48:36 +0100 Message-ID: Subject: Re: Better way to handle apt cache needed To: "Moessbauer, Felix" Cc: "ubely@ilbers.de" , "isar-users@googlegroups.com" , "Bezdeka, Florian" , "ibr@radix50.net" , "Schild, Henning" Content-Type: text/plain; charset="UTF-8" X-TUID: 7pZpe9yDbdhE On Thu, 19 Jan 2023 at 19:08, Roberto A. Foglietta wrote: > > Hi all, > > Thanks to Uladzimir who pointed me out about the weirdness of ln -P in sbuild > and other changes that I made, nvpriv7 is clearly faster than npriv6. Here > below the benchmarks compared with the original based on robang74:next. > > Thanks to Uladzimir who pointed me out about the weirdness of ln -P in sbuild > and other changes that I made, nvpriv7 is clearly faster than npriv6. Here > below the benchmarks compared with the original based on robang74:next. > > devel2 (public) + npriv7 (private) > ------------------------------------ > fresh cache > ------------ basic-os -------------- > 3745 Mb (max) | 3182 Mb (max) > 2849 Mb (rest) | 2289 Mb (rest) > 3596 Mb (deb) | 3596 Mb (deb) > 806 Mb (wic) | 806 Mb (wic) > 551 Mb (cache) | 551 Mb (cache) > time: 2m39s | time: 30s 5.30x This 2m39s is wrong: it refers to a reduced image that I created for test and I committed some hours ago https://github.com/robang74/isar-nvidia-debian/commit/7ea25b486484b2f675bc1a94098dd22fb08594f0 The real number is 3m6s for the current npriv.8 - while 30s has been reduced at 28s. Sorry for the mistake, my fault. > ------------ original --------------------- > time: 7m58s | time: 2m17s 3.48x > 3.00x | 4.57x > | > ------------ complete -------------- > 33197 Mb (max) | 28209 Mb (max) > 23964 Mb (rest) | 18982 Mb (rest) > 3596 Mb (deb) | 3596 Mb (deb) > 9143 Mb (wic) | 9139 Mb (wic) > 4916 Mb (cache) | 4916 Mb (cache) > time: 12m45s | time: 4m11s 3.05x > ------------ original --------------------- > time: 21m17s | time: 8m28s 2.51x > 1.67x | 2.02x > > About the complete image, we need to consider some fixed times like these: > > * time to produce complete wic image: 2m23s > * time to compile nvidia drivers: 2m8s > > Because these times cannot be shrink as part of the building process then we can > subtract that times (for the cache just producing the image because the drivers > are cached) and revise the benchmarks as following: > > fresh cache > ------------ complete -------------- > time: 8m14s | time: 1m48s 4.57x > ------------ original --------------------- > time: 16m46s | time: 6m05s 2.76x > 2.03x | 3.38x > > Even in the worst case, the building performances has been increased by 2x > > Best regards, R- -- Roberto A. Foglietta +49.176.274.75.661 +39.349.33.30.697