public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
Cc: "ubely@ilbers.de" <ubely@ilbers.de>,
	 "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	 "Bezdeka, Florian" <florian.bezdeka@siemens.com>,
	"ibr@radix50.net" <ibr@radix50.net>,
	 "Schild, Henning" <henning.schild@siemens.com>
Subject: Re: Better way to handle apt cache needed
Date: Mon, 9 Jan 2023 10:58:27 +0100	[thread overview]
Message-ID: <CAJGKYO5N2UdMi-mc3OPWscg6zBiCfhavHvF0DPCjLwtd6baJtw@mail.gmail.com> (raw)
In-Reply-To: <CAJGKYO4PB+mU4preARs6oUY+QprAgJBEDm4EQ1bPQ_j8M4ZWyA@mail.gmail.com>

On Mon, 9 Jan 2023 at 09:12, Roberto A. Foglietta
<roberto.foglietta@gmail.com> wrote:
>
>
>
> On Sat, 31 Dec 2022 at 09:59, Roberto A. Foglietta <roberto.foglietta@gmail.com> wrote:
> >
> > Hi all,
> >
> >  sorry for the image but some numbers should be displayed in a proper
> > form. I continued to work on the building optimization of ISAR and the
> > results are quite interesting. Almost 2x with some great achievements
> > in some specific areas like cache reduction (22x) or in some
> > particular cases like using a little of the repository downloaded
> > which brings to a disk usage reduced by 11x times. About building
> > time, the ratios are a little under-estimated because network
> > downloads for debootstrap and apt update take a fixed time that cannot
> > be reduced. My first tests indicate that also custom debian packages
> > and repackaged .deb are correctly deployed into the system despite the
> > changes. More tests are welcome.
> >
>
> Dear all,
>
> my personal fork was broken in some ways for some time but today, I completed the first round of rebasing and finally it is up again.
> These are the numbers, formatted in HTML for a nice reading and an image attached as well.
>
> From these numbers the first thing we notice is that the size of the deb cache
> does not matter at all because 10x more is not slower at all. This makes per-
> fectly sense because linking 385 or 1260 does not make such a difference.
>
>           full debs           minimal           rebnext
>        ------------ basic-os -------------- ==============
>         3498 Mb (max)   |  3489 Mb (max)     1.00x   1.00x
>         2588 Mb (rest)  |  2587 Mb (rest)    1.00x   1.00x
>         3417 Mb (deb)   |   364 Mb (deb)     9.39x
>          814 Mb (wic)   |   814 Mb (wic)      -
>          273 Mb (cache) |   273 Mb (cache)   1.00x
>        time: 3m09s      | time: 3m10s        2.58x
>
> Compared to the original the performances increase is impressive, in both cases:
>
>           original           cherries + schroot + rebase
>        ------------ basic-os -------------- ==============
>        43954 Mb (max)   |  3498 Mb (max)    12.57x  16.07x
>        26548 Mb (rest)  |  2588 Mb (rest)   10.26x  14.50x
>         3741 Mb (deb)   |  3417 Mb (deb)      -
>          820 Mb (wic)   |   814 Mb (wic)      -
>        11789 Mb (cache) |   273 Mb (cache)  43.18x
>        time: 8m33s      | time: 3m09s        2.71x
>
>           original           cherries + schroot + rebase
>        ------------ complete ------------- ===============
>        52507 Mb (max)   | 28606 Mb (max)     1.84x   2.23x
>        43311 Mb (rest)  | 19413 Mb (rest)    2.23x   3.33x
>         3741 Mb (deb)   |  3417 Mb (deb)      -
>         9159 Mb (wic)   |  9155 Mb (wic)      -
>        11799 Mb (cache) |   283 Mb (cache)  41.69x
>        time: 20m13s     | time: 11m44s       1.72x
>
> Considering that the local .deb cache growing with the time because new updates
> will be added, and comparing the performance gains between the basic-os and the
> complete image, we can say that on the long run also the complete case will
> reach the 2x of performance at least in time building.

Results has been publish and the 1st round rebase branch has set as default

https://github.com/robang74/isar/blob/rebnext/doc/build-optim.md

Best regards, R-

  reply	other threads:[~2023-01-09  9:59 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-28  9:02 Moessbauer, Felix
2022-12-28  9:21 ` Baurzhan Ismagulov
2022-12-28  9:45   ` Moessbauer, Felix
2022-12-28 10:23     ` Uladzimir Bely
2022-12-28 11:04       ` Moessbauer, Felix
2022-12-29 23:15         ` Roberto A. Foglietta
2022-12-30  4:38           ` Uladzimir Bely
2022-12-30  7:08             ` Roberto A. Foglietta
2022-12-30  6:05           ` Moessbauer, Felix
2022-12-30  8:27             ` Roberto A. Foglietta
2022-12-30 10:04               ` Moessbauer, Felix
2022-12-30 13:11               ` Moessbauer, Felix
2022-12-30 13:33                 ` Roberto A. Foglietta
2022-12-30 13:47                   ` Roberto A. Foglietta
2022-12-31  8:59                     ` Roberto A. Foglietta
2022-12-31 21:03                       ` Roberto A. Foglietta
2023-01-09  8:12                       ` Roberto A. Foglietta
2023-01-09  9:58                         ` Roberto A. Foglietta [this message]
2023-01-19 18:08                           ` Roberto A. Foglietta
2023-01-25  4:48                             ` Roberto A. Foglietta
2023-02-10 16:05                               ` Roberto A. Foglietta
2023-02-14 10:01                                 ` Roberto A. Foglietta
2023-02-14 16:46                                   ` Roberto A. Foglietta
2022-12-30 12:29           ` Roberto A. Foglietta
2022-12-28  9:22 ` Florian Bezdeka
2023-01-02 16:15 ` Henning Schild
2023-01-05  6:31 ` Uladzimir Bely
2023-01-05 17:10   ` Roberto A. Foglietta

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=CAJGKYO5N2UdMi-mc3OPWscg6zBiCfhavHvF0DPCjLwtd6baJtw@mail.gmail.com \
    --to=roberto.foglietta@gmail.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=florian.bezdeka@siemens.com \
    --cc=henning.schild@siemens.com \
    --cc=ibr@radix50.net \
    --cc=isar-users@googlegroups.com \
    --cc=ubely@ilbers.de \
    /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