sonic-buildimage/sonic-slave-buster
Konstantin Vasin 2245ea4830
[Build] use eatmydata to reduce build time of sonic slave images (#15857)
Why I did it
We install many deb packages when building sonic slave images.
To guarantee that the filesystem data is always consistent and safe,
dpkg performs fsync(2)s on its database and files unpacked from packages.
We don't need to use fsync for sonic slave images.
So we can reduce build time using eatmydata.

How I did it
Install deb package eatmydata in sonic-slave-buster and sonic-slave-bullseye docker images.
Pass apt-get install, apt install, apt-get upgrade, and dpkg -i with arguments directly to eatmydata.

How to verify it
Compare the build time of sonic-slave images with and without eatmydata.
For some NVME SSD I improved it by 30-40%.
You get no performance boost if your fs is mounted with options like nobarrier.
2023-09-23 01:57:34 -07:00
..
Dockerfile.j2 [Build] use eatmydata to reduce build time of sonic slave images (#15857) 2023-09-23 01:57:34 -07:00
Dockerfile.user.j2 Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
no-check-valid-until [sonic-slave-buster]: build sonic-slave-buster docker 2020-04-16 10:23:20 +00:00
sonic-jenkins-id_rsa.pub [sonic-slave-buster]: build sonic-slave-buster docker 2020-04-16 10:23:20 +00:00