sstate status
Hi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the SSTATE_DIR between my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:
--------- snip ---------
| Processing rpm...
| Processing zypper...
| error: Failed dependencies:
| elfutils >= 0.148 is needed by rpm-5.1.10-r7.i586
| libaugeas0 >= 0.7.3 is needed by zypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586
| ERROR: Task failed: ('function do_rootfs failed', '/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log.do_rootfs.6874')--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507
Cheers,
Paul
Hi,
Quoted 23 lines · Paul Eggleton
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils >= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0 >= 0.7.3 is needed by zypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586
| ERROR: Task failed: ('functiondo_rootfsfailed', '/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log.do_rootfs.6874') --------- snip ---------A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
Quoted 7 lines
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507
Kevin/Paul:
I notice a number of patches in your branches which shouldn't be needed if we use the two patches at the head of:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2
Could you please test using those two changes, or let me know if those changes cause problems.
Cheers,
Richard
Quoted 41 lines
From: Richard Purdie
Sent: Saturday, December 04, 2010 6:12 AMHi,
Quoted 7 lines · Paul Eggleton
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:Quoted 9 lines
--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils >= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0 >= 0.7.3 is needed by zypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586 | ERROR: Task failed: ('function
do_rootfsfailed','
/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log. do_rootfs.6874')Quoted 7 lines
--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
Quoted 7 lines
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507Kevin/Paul:
Quoted 8 lines
I notice a number of patches in your branches which shouldn't be needed if we use the two patches at the head of:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2
Could you please test using those two changes, or let me know if those changes cause problems.
Sure. However my remote machine in office is down unexpectedly. I'll verify it later when going to office next week.
BTW, on my branch there're also some bug fixes out of environmental variables issue, which could you take a look whether they're correct?
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=7a6fc816766ea925591a0cf6ae17383a953ae061, siggen.py: set 'runtaskdeps' correctly
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=0a4c46dc2c122ef5c1057380e79b75e302583b4a, siggen.py: fix python error when comparing sstate generated from different srcpath
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=7d6dd0b5717b565f478c88d53cf5e53e139f1141, siggen.py: fix the wrong usage on BB_TASKHASH_WHITELIST
Thanks
Kevin
Richard Purdie
AppliedQuoted 7 lines · Kevin
Sure. However my remote machine in office is down unexpectedly. I'll verify it later when going to office next week.
BTW, on my branch there're also some bug fixes out of environmental variables issue, which could you take a look whether they're correct?
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=7a6fc816766ea925591a0cf6ae17383a953ae061,
siggen.py: set 'runtaskdeps' correctly
I've merged this one, thanks.
Quoted 1 line
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=0a4c46dc2c122ef5c1057380e79b75e302583b4a,
siggen.py: fix python error when comparing sstate generated from different srcpath
I understand the need for this but I don't like the implementation :)
We can't use OEROOT here as its not a standard variable and is deprecated. I was initially thinking POKYBASE but that isn't right either in bitbake. Hmm.
Chris, any suggestions? I'm actually struggling a bit to come up with a variable that represents a "head" of the metadata :/. Perhaps filename would be enough in this case?
I'd also suggest we remove this path when we save the siginfo file, not when we load it and do the comparison.
Quoted 1 line
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=7d6dd0b5717b565f478c88d53cf5e53e139f1141,
siggen.py: fix the wrong usage onBB_TASKHASH_WHITELIST
Why the initial:
if self.twl and not self.twl.search(dataCache.pkg_fn[fn]):
?
I suspect it should just be:
dep_fn = re.search("(?P<fn>.*)\..*", dep).group('fn') if self.twl.search(dataCache.pkg_fn[dep_fn]):
#bb.note("Skipping %s" % dep)
continue?
For native/cross tasks, I still expect then to have dependencies and be rebuilt if something changes, I just don't expect target packages to change when native/cross ones do.
Cheers,
Richard
Quoted 7 lines
From: Richard Purdie [mailto:[email protected]]
Sent: Monday, December 06, 2010 9:30 AMQuoted 3 lines · Kevin
Sure. However my remote machine in office is down unexpectedly. I'll verify it later when going to office next week.
Quoted 8 lines
Quoted 4 lines
BTW, on my branch there're also some bug fixes out of environmental variables issue, which could you take a look whether they're correct?
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=7a6fc816766
ea925591a0cf6ae17383a953ae061,siggen.py: set 'runtaskdeps' correctlyI've merged this one, thanks.
Thanks
Quoted 11 lines
Quoted 2 lines
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=0a4c46dc2c1
22ef5c1057380e79b75e302583b4a,siggen.py: fix python error when comparing sstate generated from different srcpathI understand the need for this but I don't like the implementation :)
We can't use OEROOT here as its not a standard variable and is deprecated. I was initially thinking POKYBASE but that isn't right either in bitbake. Hmm.
Could you elaborate why POKYBASE can't be used too? Because LAYERDIR is a one-time expansion action? If we're sure that POKYBASE is expanded before base signature generation, then it could work.
Quoted 7 lines
Chris, any suggestions? I'm actually struggling a bit to come up with a variable that represents a "head" of the metadata :/. Perhaps filename would be enough in this case?
I'd also suggest we remove this path when we save the siginfo file, not when we load it and do the comparison.
Yes, that's a better approach. I'll go that approach.
Quoted 16 lines
Quoted 2 lines
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=7d6dd0b5717
b565f478c88d53cf5e53e139f1141,siggen.py: fix the wrong usage onBB_TASKHASH_WHITELISTWhy the initial:
if self.twl and not
self.twl.search(dataCache.pkg_fn[fn]):?
I suspect it should just be:
dep_fn=re.search("(?P<fn>.*)\..*", dep).group('fn') ifself.twl.search(dataCache.pkg_fn[dep_fn]):
Quoted 9 lines
#bb.note("Skipping %s" % dep) continue?
For native/cross tasks, I still expect then to have dependencies and be rebuilt if something changes, I just don't expect target packages to change when native/cross ones do.
That's my intention too. Above logic is to filter out native/cross dependencies. If we do that filter for native/cross tasks too, that means all dependencies would be wiped out which is not what we want since they all fall into the match group. That's why I add the initial condition to restrict the filtering on on target packages. :-)
Thanks
Kevin
Quoted 8 lines · Kevin
Quoted 8 lines
From: Richard Purdie [mailto:[email protected]]
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=0a4c46dc2c1
22ef5c1057380e79b75e302583b4a,siggen.py: fix python error when comparing sstate generated from different srcpathI understand the need for this but I don't like the implementation :)
Quoted 7 lines
Quoted 3 lines
We can't use OEROOT here as its not a standard variable and is deprecated. I was initially thinking POKYBASE but that isn't right either in bitbake. Hmm.
Could you elaborate why POKYBASE can't be used too? Because LAYERDIR is a one-time expansion action? If we're sure that POKYBASE is expanded before base signature generation, then it could work.
POKYBASE is poky specific and not a bitbake variable. Using it in generic bitbake code is therefore a layer violation.
Quoted 8 lines
Quoted 6 lines
Chris, any suggestions? I'm actually struggling a bit to come up with a variable that represents a "head" of the metadata :/. Perhaps filename would be enough in this case?
I'd also suggest we remove this path when we save the siginfo file, not when we load it and do the comparison.
Yes, that's a better approach. I'll go that approach.
Thanks, I'll wait for an updated patch.
Quoted 5 lines
That's my intention too. Above logic is to filter out native/cross dependencies. If we do that filter for native/cross tasks too, that means all dependencies would be wiped out which is not what we want since they all fall into the match group. That's why I add the initial condition to restrict the filtering on on target packages. :-)
Ok, this makes sense. I merged it after adding in some comments to the code.
I've asked Paul to pull together a branch with all the changes in for sstate and see how we stand.
Cheers,
Richard
Quoted 17 lines
From: Richard Purdie [mailto:[email protected]]
Sent: Tuesday, December 07, 2010 11:03 PMQuoted 3 lines · Kevin
Quoted 3 lines
From: Richard Purdie [mailto:[email protected]]
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=tk/sstate&id=0a4c46dc
2c1
Quoted 9 lines
Quoted 8 lines
22ef5c1057380e79b75e302583b4a,siggen.py: fix python error when comparing sstate generated from different srcpathI understand the need for this but I don't like the implementation :)
We can't use OEROOT here as its not a standard variable and is deprecated. I was initially thinking POKYBASE but that isn't right either in bitbake. Hmm.
Quoted 6 lines
Quoted 3 lines
Could you elaborate why POKYBASE can't be used too? Because LAYERDIR is a one-time expansion action? If we're sure that POKYBASE is expanded before base signature generation, then it could work.
POKYBASE is poky specific and not a bitbake variable. Using it in generic bitbake code is therefore a layer violation.
Got it.
Quoted 18 lines
Quoted 9 lines
Quoted 7 lines
Chris, any suggestions? I'm actually struggling a bit to come up with a variable that represents a "head" of the metadata :/. Perhaps filename would be enough in this case?
I'd also suggest we remove this path when we save the siginfo file, not when we load it and do the comparison.
Yes, that's a better approach. I'll go that approach.
Thanks, I'll wait for an updated patch.
Quoted 5 lines
That's my intention too. Above logic is to filter out native/cross dependencies. If we do that filter for native/cross tasks too, that means all dependencies would be wiped out which is not what we want since they all fall into the match group. That's why I add the initial condition to restrict the filtering on on target packages. :-)
Quoted 7 lines
Ok, this makes sense. I merged it after adding in some comments to the code.
I've asked Paul to pull together a branch with all the changes in for sstate and see how we stand.
OK, I'll wait for that new branch to have another try.
Thanks
Kevin
Quoted 7 lines · On Friday 03 December 2010 22:11:45 Richard Purdie wrote:
I notice a number of patches in your branches which shouldn't be needed if we use the two patches at the head of:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2
Could you please test using those two changes, or let me know if those changes cause problems.
I just tested with your branch; it definitely obviates the need to exclude large amounts of variables, however BB_TASKHASH is still being included in the hash and this causes many mismatches.
Cheers,
Paul
Hi Paul,
Quoted 4 lines · Paul Eggleton
Quoted 3 lines · On Friday 03 December 2010 22:11:45 Richard Purdie wrote:
I notice a number of patches in your branches which shouldn't be needed if we use the two patches at the head of:
Quoted 8 lines
Quoted 4 lines
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2
Could you please test using those two changes, or let me know if those changes cause problems.
I just tested with your branch; it definitely obviates the need to exclude large amounts of variables, however
BB_TASKHASHis still being included in the hash and this causes many mismatches.
Agreed, I'll take that patch on its own, I just want to move carefully to the end result.
Can you rebase your sstate branch onto master, pull in the above changes not already in master and lets see where we are?
Cheers,
Richard
Quoted 5 lines · On Tuesday 07 December 2010 12:46:36 Richard Purdie wrote:
Agreed, I'll take that patch on its own, I just want to move carefully to the end result.
Can you rebase your sstate branch onto master, pull in the above changes not already in master and lets see where we are?
Done - pushed to contrib paule/sstate. I have omitted Kevin's bitbake-diffsigs srcpath fix which is still being worked on.
Cheers,
Paul
Quoted 4 lines
From: Paul Eggleton
Sent: Wednesday, December 08, 2010 12:37 AMOn Tuesday 07 December 2010 12:46:36 Richard Purdie wrote:
Quoted 9 lines
Quoted 5 lines
Agreed, I'll take that patch on its own, I just want to move carefully to the end result.
Can you rebase your sstate branch onto master, pull in the above changes not already in master and lets see where we are?
Done - pushed to contrib paule/sstate. I have omitted Kevin's bitbake-diffsigs srcpath fix which is still being worked on.
The weird behavior I saw yesterday is still there: lots of recipes (such as gzip-native) are rebuilt when I build poky-image-minimal, which however finally ends up to override my sstate cache with same checksums.
If I end the build when it finished setscene stage, and then simply build tasks in the runqueue such as gzip-native, git-native, . It just succeeds by reusing sstate package.
Quite strange... Still look into it now.
Thanks
Kevin
Quoted 8 lines · Kevin
The weird behavior I saw yesterday is still there: lots of recipes (such as gzip-native) are rebuilt when I build poky-image-minimal, which however finally ends up to override my sstate cache with same checksums.
If I end the build when it finished setscene stage, and then simply build tasks in the runqueue such as gzip-native, git-native, . It just succeeds by reusing sstate package.
Quite strange... Still look into it now.
Oops, it appears that I pushed the wrong branch to paule/sstate yesterday. I've re-pushed a new one which actually includes the variable whitelisting changes.
Sorry about that!
Cheers,
Paul
Quoted 8 lines
From: Paul Eggleton [mailto:[email protected]]
Sent: Wednesday, December 08, 2010 7:32 PMQuoted 4 lines · Kevin
The weird behavior I saw yesterday is still there: lots of recipes (such as gzip-native) are rebuilt when I build poky-image-minimal, which however finally ends up to override my sstate cache with same checksums.
Quoted 8 lines
Quoted 1 line
If I end the build when it finished setscene stage, and then simply build tasks in the
runqueue
Quoted 3 lines
such as gzip-native, git-native, . It just succeeds by reusing sstate package.
Quite strange... Still look into it now.
Oops, it appears that I pushed the wrong branch to paule/sstate yesterday. I've re-pushed a new one which actually includes the variable whitelisting changes.
Do we still need those variable whitelisting changes? Based on original branch you pushed (basically RP's branch rebased on master imo), I think it basically works at least for a single recipe build though above weird issue exists for image build.
Of course we need keep some bitbake specific variables in whitelist, such as DATE, TIME and several others you added in last commit.
On the other hand, did you observe my issue on this new push? I want to understand its root cause, which is really funny.
Quoted 3 lines
Sorry about that!
No problem. :-)
Thanks
Kevin
Quoted 11 lines · Paul Eggleton
Hi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils>= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0>= 0.7.3 is needed by zypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586 | ERROR: Task failed: ('function do_rootfs failed', '/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log.do_rootfs.6874')
Quoted 8 lines
--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507
I gave this a simple try and it failed miserably. Working from a copy of Paul's branch in poky-contrib, here's what I did:
* On machine A (x86 Fedora 11)
% bitbake poky-image-minimal
* On machine B (x86 Fedora 13)
-- Copy sstate-cache from machine A to /tmp/sstate-cache (rsync with
all perms & timestamps preserved)
-- Using the identical conf/local.conf file from machine A, except
I set up SSTATE_MIRRORS like this
SSTATE_MIRRORS ?= "\
file://.* file:///tmp/sstate-cache/"% bitbake poky-image-minimal
Fell apart pretty badly. Look at the output
http://www.mlbassoc.com/poky/poky_with_sstate.out
Also, it seemed to be rebuilding a lot of packages. IMO, there's no reason it should have to rebuild _any_
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 50 lines · Gary Thomas
Quoted 26 lines · Paul Eggleton
Hi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils>= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0>= 0.7.3 is needed byzypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586
| ERROR: Task failed: ('functiondo_rootfsfailed', '/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log.do_rootfs.6874')--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
Quoted 7 lines
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507I gave this a simple try and it failed miserably. Working from a copy of Paul's branch in poky-contrib, here's what I did:
* On machine A (x86 Fedora 11)
% bitbake poky-image-minimal* On machine B (x86 Fedora 13)
-- Copy sstate-cache from machine A to/tmp/sstate-cache(rsync with all perms & timestamps preserved)
-- Using the identicalconf/local.conffile from machine A, except I set upSSTATE_MIRRORSlike thisSSTATE_MIRRORS?= "\
file://.* file:///tmp/sstate-cache/"
% bitbake poky-image-minimal
Quoted 6 lines
Fell apart pretty badly. Look at the output
http://www.mlbassoc.com/poky/poky_with_sstate.outAlso, it seemed to be rebuilding a lot of packages. IMO, there's no reason it should have to rebuild _any_
One thing that seems to be significant is the base build directory path. In the case above, they did not match, i.e.
* On machine A, BUILDDIR=/tmp/sstate_testing
* On machine B, BUILDDIR=/home/local/my_sstate_test
I tried it this way as it matches my [customer's] expected usage.
I've rerun the experiment again where I used identical paths on both machines and the results were vastly improved. It still takes a horrible length of time (64 minutes on a fast 4 processor box) and rebuilds way to many packages for just replaying what's already been done though (IMO). Results are at
http://www.mlbassoc.com/poky/poky_with_sstate_same_paths.out
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 63 lines
From: Gary Thomas
Sent: Saturday, December 04, 2010 8:48 PMQuoted 10 lines · Gary Thomas
Quoted 9 lines · Paul Eggleton
Hi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:Quoted 9 lines
Quoted 9 lines
--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils>= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0>= 0.7.3 is needed byzypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586 | ERROR: Task failed: ('function
do_rootfsfailed','
/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log. do_rootfs.6874')Quoted 31 lines
Quoted 8 lines
--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
Quoted 7 lines
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507I gave this a simple try and it failed miserably. Working from a copy of Paul's branch in poky-contrib, here's what I did:
* On machine A (x86 Fedora 11)
% bitbake poky-image-minimal* On machine B (x86 Fedora 13)
-- Copy sstate-cache from machine A to/tmp/sstate-cache(rsync with all perms & timestamps preserved)
-- Using the identicalconf/local.conffile from machine A, except I set upSSTATE_MIRRORSlike thisSSTATE_MIRRORS?= "\
file://.* file:///tmp/sstate-cache/"
% bitbake poky-image-minimalQuoted 6 lines
Fell apart pretty badly. Look at the output
http://www.mlbassoc.com/poky/poky_with_sstate.outAlso, it seemed to be rebuilding a lot of packages. IMO, there's no reason it should have to rebuild _any_
Quoted 5 lines
One thing that seems to be significant is the base build directory path. In the case above, they did not match, i.e.
* On machine A, BUILDDIR=/tmp/sstate_testing
* On machine B, BUILDDIR=/home/local/my_sstate_test
I tried it this way as it matches my [customer's] expected usage.
I think in usual case the directory paths would mismatch. So let's stick to that configuration to expose more issues. In my previous debug, I have made it in a good shape but would now turn to RP's branch to try more experiments.
It would be good if you also try that one:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2
Quoted 8 lines
I've rerun the experiment again where I used identical paths on both machines and the results were vastly improved. It still takes a horrible length of time (64 minutes on a fast 4 processor box) and rebuilds way to many packages for just replaying what's already been done though (IMO). Results are at
http://www.mlbassoc.com/poky/poky_with_sstate_same_paths.out
In my run ~25min are consumed just for sstate check/installation on a NHM 4-core box. then several minutes for rootfs generation if two builds totally match. the slow sstate phase comes from same reason as a slow build - the 'exec' overhead. I use 'sato' as the target.
In your case, however there're still some packages rebuilt, such as gzip-native, unifdef-native, eglibc-initial, ncurses, etc. and also gcc related packages are rebuilt which just consumes time. Has your source tree changed between the two builds?
Thanks
Kevin
Quoted 85 lines · Kevin
Quoted 63 lines
From: Gary Thomas
Sent: Saturday, December 04, 2010 8:48 PMQuoted 10 lines · Gary Thomas
Quoted 9 lines · Paul Eggleton
Hi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:Quoted 9 lines
Quoted 9 lines
--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils>= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0>= 0.7.3 is needed byzypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586 | ERROR: Task failed: ('function
do_rootfsfailed','
/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log. do_rootfs.6874')Quoted 31 lines
Quoted 8 lines
--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
Quoted 7 lines
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507I gave this a simple try and it failed miserably. Working from a copy of Paul's branch in poky-contrib, here's what I did:
* On machine A (x86 Fedora 11)
% bitbake poky-image-minimal* On machine B (x86 Fedora 13)
-- Copy sstate-cache from machine A to/tmp/sstate-cache(rsync with all perms& timestamps preserved)
-- Using the identicalconf/local.conffile from machine A, except I set upSSTATE_MIRRORSlike thisSSTATE_MIRRORS?= "\
file://.* file:///tmp/sstate-cache/"
% bitbake poky-image-minimalQuoted 6 lines
Fell apart pretty badly. Look at the output
http://www.mlbassoc.com/poky/poky_with_sstate.outAlso, it seemed to be rebuilding a lot of packages. IMO, there's no reason it should have to rebuild _any_
Quoted 5 lines
One thing that seems to be significant is the base build directory path. In the case above, they did not match, i.e.
* On machine A, BUILDDIR=/tmp/sstate_testing
* On machine B, BUILDDIR=/home/local/my_sstate_test
I tried it this way as it matches my [customer's] expected usage.I think in usual case the directory paths would mismatch. So let's stick to that configuration to expose more issues. In my previous debug, I have made it in a good shape but would now turn to RP's branch to try more experiments.
It would be good if you also try that one:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2Quoted 8 lines
I've rerun the experiment again where I used identical paths on both machines and the results were vastly improved. It still takes a horrible length of time (64 minutes on a fast 4 processor box) and rebuilds way to many packages for just replaying what's already been done though (IMO). Results are at
http://www.mlbassoc.com/poky/poky_with_sstate_same_paths.out
Quoted 8 lines
In my run ~25min are consumed just for sstate check/installation on a NHM 4-core box. then several minutes for rootfs generation if two builds totally match. the slow sstate phase comes from same reason as a slow build - the 'exec' overhead. I use 'sato' as the target.
In your case, however there're still some packages rebuilt, such as gzip-native, unifdef-native, eglibc-initial, ncurses, etc. and also gcc related packages are rebuilt which just consumes time. Has your source tree changed between the two builds?
Do, identical source trees for all three runs.
I'll try it again later today with Richard's tree.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 91 lines · Gary Thomas
Quoted 90 lines · Kevin
Quoted 63 lines
From: Gary Thomas
Sent: Saturday, December 04, 2010 8:48 PMQuoted 10 lines · Gary Thomas
Quoted 9 lines · Paul Eggleton
Hi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:Quoted 9 lines
Quoted 9 lines
--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils>= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0>= 0.7.3 is needed byzypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586 | ERROR: Task failed: ('function
do_rootfsfailed','
/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log. do_rootfs.6874')Quoted 31 lines
Quoted 8 lines
--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
Quoted 7 lines
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507I gave this a simple try and it failed miserably. Working from a copy of Paul's branch in poky-contrib, here's what I did:
* On machine A (x86 Fedora 11)
% bitbake poky-image-minimal* On machine B (x86 Fedora 13)
-- Copy sstate-cache from machine A to/tmp/sstate-cache(rsync with all perms& timestamps preserved)
-- Using the identicalconf/local.conffile from machine A, except I set upSSTATE_MIRRORSlike thisSSTATE_MIRRORS?= "\
file://.* file:///tmp/sstate-cache/"
% bitbake poky-image-minimalQuoted 6 lines
Fell apart pretty badly. Look at the output
http://www.mlbassoc.com/poky/poky_with_sstate.outAlso, it seemed to be rebuilding a lot of packages. IMO, there's no reason it should have to rebuild _any_
Quoted 5 lines
One thing that seems to be significant is the base build directory path. In the case above, they did not match, i.e.
* On machine A, BUILDDIR=/tmp/sstate_testing
* On machine B, BUILDDIR=/home/local/my_sstate_test
I tried it this way as it matches my [customer's] expected usage.I think in usual case the directory paths would mismatch. So let's stick to that configuration to expose more issues. In my previous debug, I have made it in a good shape but would now turn to RP's branch to try more experiments.
It would be good if you also try that one:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2Quoted 8 lines
I've rerun the experiment again where I used identical paths on both machines and the results were vastly improved. It still takes a horrible length of time (64 minutes on a fast 4 processor box) and rebuilds way to many packages for just replaying what's already been done though (IMO). Results are at
http://www.mlbassoc.com/poky/poky_with_sstate_same_paths.outIn my run ~25min are consumed just for sstate check/installation on a NHM 4-core box. then several minutes for rootfs generation if two builds totally match. the slow sstate phase comes from same reason as a slow build - the 'exec' overhead. I use 'sato' as the target.
Quoted 8 lines
Quoted 3 lines
In your case, however there're still some packages rebuilt, such as gzip-native, unifdef-native, eglibc-initial, ncurses, etc. and also gcc related packages are rebuilt which just consumes time. Has your source tree changed between the two builds?
No, identical source trees for all three runs.
I'll try it again later today with Richard's tree.
I've now rerun this with Richard's tweak2 changes, building in completely different tree paths. While it did work, I don't see the point as it took even longer the second time (using the sstate cache) and generated just as much work :-( Something is still not working as desired.
Original 'bitbake poky-image-minimal' into /tmp/sstate_testing
time - 111 minutes
space - 22.9 GB (in tmp)
Rerun, using the sstate-cache from the first run
time - 114 minutes
space - 21.7 GB
I think this last line from the rerun test is telling:
NOTE: Tasks Summary: Attempted 1621 tasks of which 282 didn't need to be rerun and 0 failed.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 114 lines
From: Gary Thomas [mailto:[email protected]]
Sent: Monday, December 06, 2010 7:16 PMQuoted 15 lines · Gary Thomas
Quoted 14 lines · Kevin
Quoted 14 lines
From: Gary Thomas
Sent: Saturday, December 04, 2010 8:48 PMQuoted 10 lines · Gary Thomas
Quoted 9 lines · Paul Eggleton
Hi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils>= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0>= 0.7.3 is needed byzypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586 | ERROR: Task failed: ('function
do_rootfsfailed','
/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log.Quoted 66 lines
Quoted 66 lines
Quoted 39 lines
do_rootfs.6874')
Quoted 31 lines
Quoted 8 lines
--------- snip ---------
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
Quoted 7 lines
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507I gave this a simple try and it failed miserably. Working from a copy of Paul's branch in poky-contrib, here's what I did:
* On machine A (x86 Fedora 11)
% bitbake poky-image-minimal* On machine B (x86 Fedora 13)
-- Copy sstate-cache from machine A to/tmp/sstate-cache(rsync with all perms& timestamps preserved)
-- Using the identicalconf/local.conffile from machine A, except I set upSSTATE_MIRRORSlike thisSSTATE_MIRRORS?= "\
file://.* file:///tmp/sstate-cache/"
% bitbake poky-image-minimalQuoted 6 lines
Fell apart pretty badly. Look at the output
http://www.mlbassoc.com/poky/poky_with_sstate.outAlso, it seemed to be rebuilding a lot of packages. IMO, there's no reason it should have to rebuild _any_
Quoted 5 lines
One thing that seems to be significant is the base build directory path. In the case above, they did not match, i.e.
* On machine A, BUILDDIR=/tmp/sstate_testing
* On machine B, BUILDDIR=/home/local/my_sstate_test
I tried it this way as it matches my [customer's] expected usage.I think in usual case the directory paths would mismatch. So let's stick to that configuration to expose more issues. In my previous debug, I have made it in a good shape but would now turn to RP's branch to try more experiments.
It would be good if you also try that one:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=rpurdie/tweaks2Quoted 8 lines
I've rerun the experiment again where I used identical paths on both machines and the results were vastly improved. It still takes a horrible length of time (64 minutes on a fast 4 processor box) and rebuilds way to many packages for just replaying what's already been done though (IMO). Results are at
http://www.mlbassoc.com/poky/poky_with_sstate_same_paths.outIn my run ~25min are consumed just for sstate check/installation on a NHM 4-core box. then several minutes for rootfs generation if two builds totally match. the slow sstate phase comes from same reason as a slow build - the 'exec' overhead. I use 'sato' as the target.
Quoted 8 lines
Quoted 3 lines
In your case, however there're still some packages rebuilt, such as gzip-native, unifdef-native, eglibc-initial, ncurses, etc. and also gcc related packages are rebuilt which just consumes time. Has your source tree changed between the two builds?
No, identical source trees for all three runs.
I'll try it again later today with Richard's tree.
I've now rerun this with Richard's tweak2 changes, building in completely different tree paths. While it did work, I don't see the point as it took even longer the second time (using the sstate cache) and generated just as much work :-( Something is still not working as desired.
Original 'bitbake poky-image-minimal' into
/tmp/sstate_testing
time - 111 minutes
space - 22.9 GB (in tmp)
Quoted 7 lines
Rerun, using the sstate-cache from the first run
time - 114 minutes
space - 21.7 GBI think this last line from the rerun test is telling:
NOTE: Tasks Summary: Attempted 1621 tasks of which 282 didn't need to be rerun and
0 failed.
I have " Attempted 1621 tasks of which 953 didn't need to be rerun and 0 failed." It should come from the fact that I use same source directory this time. I have one fix for difference source tree in my previous branch, which is still under discussion with RP and not in RP's branch yet. So sorry for inconvenience. I should raise the info earlier.
Although that, I took a quick look of my build. The thing is a bit weird. It's similar to your previous result with Paul's branch, that many recipes are rebuilt though they're claimed to be accelerable, such as gzip-native, unifdef-native, etc. The result is that new sstate packages are generated to simply override old one. They DO have same checksum because only one version exists with new timestamp.
I didn't look into recent commits yet. It looks that the checksum calculated at setscene stage is different than the one finally written into sstate package.
Thanks
Kevin
Quoted 23 lines
From: Paul Eggleton [mailto:[email protected]]
Sent: Saturday, December 04, 2010 12:35 AMHi all,
I've been doing some tests with sstate, and I've managed to get to a stage where I can share the
SSTATE_DIRbetween my two machines (one running Fedora 14 and the other Kubuntu 10.10) and almost get a successful build from a clean TMPDIR. My last test got to poky-image-minimal.do_rootfs and then failed due to some kind of package dependency issue:--------- snip ---------
| Processing rpm... | Processing zypper... | error: Failed dependencies: | elfutils >= 0.148 is needed by rpm-5.1.10-r7.i586 | libaugeas0 >= 0.7.3 is needed byzypper-1.4.7+git0+9eb0e248e06c8d20ad054be2439149d9ede37531-r1.i586 | ERROR: Task failed: ('function
do_rootfsfailed', '/home/pokystuff/tmp/work/qemux86-poky-linux/poky-image-minimal-1.0-r0/temp/log. do_rootfs.6874')
--------- snip ---------
Quoted 7 lines
A "bitbake -c clean augeas elfutils" and then "bitbake poky-image-minimal" again went through OK (and built the aforementioned recipes from sstate) , so I'm not sure what went wrong here.
My current state of work is in the paule/sstate contrib branch, which is based on Kevin's tk/sstate branch. Kevin, I think the sooner we can move this towards master the better, then we can get some wider testing.
Thanks for your fixes. I made some mistakes when occasionally rebase and smash my commits with master and it's good that you caught them. I agree that we need make it into master as early as possible. I saw Richard has pushed some different enhancements. Let's give it some tests then.
Thanks
Kevin
Quoted 4 lines
FYI Joshua has made bug #507 into a tracking bug for current sstate issues:
http://bugzilla.pokylinux.org/show_bug.cgi?id=507