Skip to contentSkip to conversation

Public project sstate/hash equivalence mirror now live

DISCUSSION Richard Purdie 4 participants 6 messages Sep 12, 2021 – Sep 14, 2021

lore
Share & tools
lore
#0 lore raw

We made the autobuilder sstate public a while ago but it wasn't useful after we switched to hash equivalence by default. I'm pleased to be able to report that we now have a read-only public server for the hash equivalence. We did have to fix a small API omission and a couple of sstate related bugs but I'm pleased to be able to report it is now operational and usable. An example config would be:

SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH"
BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687"

I've included an example image build below where it took 11 minutes for a core-image-minimal image build. Obviously this is only of benefit if you're building configurations that match the project autobuilder although hash equivalence could be useful alone in reducing some build times.

I have updated the local.conf sample file in poky to match the new release. We're not widely highlighting that information as yet as it remains to be seen how well it scales and what the hosting impacts for it will look like but it is there to experiment with to a wider audience such as this list.

The builds will sit for a long time whilst it queries hash equivalency and I appreciate the UI feedback could be better there but one step at a time!

Cheers,

Richard

$ time bitbake core-image-minimal
Loading cache: 100% |                                                                                                                                                       | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################| Time: 0:00:03
Parsing of 871 .bb files complete (0 cached, 871 parsed). 1519 targets, 49 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION           = "1.51.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.3+snapshot-89e48765083f15bf79839a778d08a68f8aece51d"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""

meta
meta-poky
meta-yocto-bsp
meta-selftest = "master:89e48765083f15bf79839a778d08a68f8aece51d"

Initialising tasks: 100% |###################################################################################################################################################| Time: 0:03:40 Checking sstate mirror object availability: 100% |###########################################################################################################################| Time: 0:00:28 Sstate summary: Wanted 1525 Local 0 Network 1515 Missed 10 Current 0 (99% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 3913 tasks of which 3603 didn't need to be rerun and all succeeded.

real 11m2.578s
user 0m42.927s
sys 0m9.963s

#1 lore raw
Quoted 6 lines · Richard Purdie

We made the autobuilder sstate public a while ago but it wasn't useful after we switched to hash equivalence by default. I'm pleased to be able to report that we now have a read-only public server for the hash equivalence. We did have to fix a small API omission and a couple of sstate related bugs but I'm pleased to be able to report it is now operational and usable. An example config would be:

Quoted 7 lines

SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH"
BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687"

I've included an example image build below where it took 11 minutes for a core-image-minimal image build. Obviously this is only of benefit if you're building configurations that match the project autobuilder although hash equivalence could be useful alone in reducing some build times.

What branches that support hash equivalence will be available other than Master?

Quoted 5 lines

I have updated the local.conf sample file in poky to match the new release. We're not widely highlighting that information as yet as it remains to be seen how well it scales and what the hosting impacts for it will look like but it is there to experiment with to a wider audience such as this list.

The should improve the out-of-the-box experience.

thanks,

Quoted 44 lines

The builds will sit for a long time whilst it queries hash equivalency and I appreciate the UI feedback could be better there but one step at a time!

Cheers,

Richard

$ time bitbake core-image-minimal
Loading cache: 100% |                                                                                                                                                       | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################| Time: 0:00:03
Parsing of 871 .bb files complete (0 cached, 871 parsed). 1519 targets, 49 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION           = "1.51.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.3+snapshot-89e48765083f15bf79839a778d08a68f8aece51d"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""

meta
meta-poky
meta-yocto-bsp
meta-selftest = "master:89e48765083f15bf79839a778d08a68f8aece51d"

Initialising tasks: 100% |###################################################################################################################################################| Time: 0:03:40 Checking sstate mirror object availability: 100% |###########################################################################################################################| Time: 0:00:28 Sstate summary: Wanted 1525 Local 0 Network 1515 Missed 10 Current 0 (99% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 3913 tasks of which 3603 didn't need to be rerun and all succeeded.

real 11m2.578s
user 0m42.927s
sys 0m9.963s

#2 lore raw
Quoted 11 lines · On Sun, 2021-09-12 at 07:55 -0700, akuster808 wrote:
Quoted 9 lines · Richard Purdie

We made the autobuilder sstate public a while ago but it wasn't useful after we switched to hash equivalence by default. I'm pleased to be able to report that we now have a read-only public server for the hash equivalence. We did have to fix a small API omission and a couple of sstate related bugs but I'm pleased to be able to report it is now operational and usable. An example config would be:

SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH"
BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687"

Quoted 7 lines
Quoted 4 lines

I've included an example image build below where it took 11 minutes for a core-image-minimal image build. Obviously this is only of benefit if you're building configurations that match the project autobuilder although hash equivalence could be useful alone in reducing some build times.

What branches that support hash equivalence will be available other than Master?

The question doesn't make sense as hash equivalence doesn't have a "branch". We're sharing any hash equivalence data generated from builds on the autobuilder.

Quoted 6 lines
Quoted 4 lines

I have updated the local.conf sample file in poky to match the new release. We're not widely highlighting that information as yet as it remains to be seen how well it scales and what the hosting impacts for it will look like but it is there to experiment with to a wider audience such as this list.

The should improve the out-of-the-box experience.

Ultimately that is the hope.

Cheers,

Richard

#3 lore raw
Quoted 26 lines · Richard Purdie
Quoted 3 lines · On Sun, 2021-09-12 at 07:55 -0700, akuster808 wrote:
Quoted 1 line · Richard Purdie

We made the autobuilder sstate public a while ago but it wasn't useful

after we

Quoted 1 line
Quoted 1 line

switched to hash equivalence by default. I'm pleased to be able to

report that

Quoted 1 line
Quoted 1 line

we now have a read-only public server for the hash equivalence. We did

have to

Quoted 1 line
Quoted 1 line

fix a small API omission and a couple of sstate related bugs but I'm

pleased to

Quoted 1 line
Quoted 1 line

be able to report it is now operational and usable. An example config

would be:

Quoted 2 lines
Quoted 2 lines

SSTATE_MIRRORS ?= "file://.*

http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH"

Quoted 3 lines
Quoted 3 lines

BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687"

I've included an example image build below where it took 11 minutes

for a

Quoted 1 line
Quoted 1 line

core-image-minimal image build. Obviously this is only of benefit if

you're

Quoted 1 line
Quoted 1 line

building configurations that match the project autobuilder although

hash

Quoted 2 lines
Quoted 1 line

equivalence could be useful alone in reducing some build times.

Quoted 8 lines
Quoted 2 lines

What branches that support hash equivalence will be available other than Master?

The question doesn't make sense as hash equivalence doesn't have a "branch".
We're sharing any hash equivalence data generated from builds on the autobuilder.

We should (?) backport the BB_HASHSERVE_UPSTREAM patch so that the instructions to enable it make sense on older branches though.

Quoted 17 lines
Quoted 1 line
Quoted 1 line

I have updated the local.conf sample file in poky to match the new

release.

Quoted 1 line
Quoted 1 line

We're not widely highlighting that information as yet as it remains to

be seen

Quoted 1 line
Quoted 1 line

how well it scales and what the hosting impacts for it will look like

but it is

Quoted 3 lines
Quoted 1 line

there to experiment with to a wider audience such as this list.

The should improve the out-of-the-box experience.

Ultimately that is the hope.

Cheers,

Richard

#4 lore raw
Quoted 36 lines · Joshua Watt

On Sun, Sep 12, 2021, 10:58 AM Richard Purdie <[email protected] <mailto:[email protected]>> wrote:

On Sun, 2021-09-12 at 07:55 -0700, akuster808 wrote:
>
> On 9/12/21 4:46 AM, Richard Purdie wrote:
> > We made the autobuilder sstate public a while ago but it wasn't
useful after we
> > switched to hash equivalence by default. I'm pleased to be able
to report that
> > we now have a read-only public server for the hash equivalence.
We did have to
> > fix a small API omission and a couple of sstate related bugs
but I'm pleased to
> > be able to report it is now operational and usable. An example
config would be:
> >
> > SSTATE_MIRRORS ?= "file://.*
http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH
<http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH>"
> > BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687
<http://typhoon.yocto.io:8687>"
> >
> > I've included an example image build below where it took 11
minutes for a
> > core-image-minimal image build. Obviously this is only of
benefit if you're
> > building configurations that match the project autobuilder
although hash
> > equivalence could be useful alone in reducing some build times. >
> What branches that support hash equivalence will be available
other than
> Master?

Quoted 7 lines

The question doesn't make sense as hash equivalence doesn't have a "branch".
We're sharing any hash equivalence data generated from builds on the autobuilder.

We should (?) backport the BB_HASHSERVE_UPSTREAM patch so that the instructions to enable it make sense on older branches though.

Yes, please - I'd really like to see that in dunfell and hardknott too

Quoted 23 lines

> > I have updated the local.conf sample file in poky to match the
new release.
> > We're not widely highlighting that information as yet as it
remains to be seen
> > how well it scales and what the hosting impacts for it will
look like but it is
> > there to experiment with to a wider audience such as this list. >
> The should improve the out-of-the-box experience.

Ultimately that is the hope.

Cheers,

Richard

#5 lore raw
Quoted 46 lines · Konrad Weihmann
Quoted 44 lines · Joshua Watt

On Sun, Sep 12, 2021, 10:58 AM Richard Purdie <[email protected] <mailto:[email protected]>> wrote:

On Sun, 2021-09-12 at 07:55 -0700, akuster808 wrote:
>
> On 9/12/21 4:46 AM, Richard Purdie wrote:
> > We made the autobuilder sstate public a while ago but it wasn't
useful after we
> > switched to hash equivalence by default. I'm pleased to be able
to report that
> > we now have a read-only public server for the hash equivalence.
We did have to
> > fix a small API omission and a couple of sstate related bugs
but I'm pleased to
> > be able to report it is now operational and usable. An example
config would be:
> >
> > SSTATE_MIRRORS ?= "file://.*
http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH
<http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH>"
> > BB_HASHSERVE_UPSTREAM = "typhoon.yocto.io:8687
<http://typhoon.yocto.io:8687>"
> >
> > I've included an example image build below where it took 11
minutes for a
> > core-image-minimal image build. Obviously this is only of
benefit if you're
> > building configurations that match the project autobuilder
although hash
> > equivalence could be useful alone in reducing some build times. >
> What branches that support hash equivalence will be available
other than
> Master?

The question doesn't make sense as hash equivalence doesn't have a "branch".
We're sharing any hash equivalence data generated from builds on the autobuilder.

Quoted 4 lines
Quoted 2 lines

We should (?) backport the BB_HASHSERVE_UPSTREAM patch so that the instructions to enable it make sense on older branches though.

Yes, please - I'd really like to see that in dunfell and hardknott too

Readonly hash equivalence is only in hardknott and master, it isn't in dunfell. The commit in question:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=96b548a79d87120655da3ac5501b8ad4726cf1a4

This means the backport of the recent addition only really makes sense in the context of hardknott.

Cheers,

Richard