* [PATCH 1/2] sstatesig: Optimise get_taskhash for hashequiv
@ 2019-12-15 9:07 Richard Purdie
2019-12-15 9:07 ` [PATCH 2/2] scripts/oe-build-perf-test: Use python3 from the environment Richard Purdie
2019-12-15 9:32 ` ✗ patchtest: failure for "sstatesig: Optimise get_taskha..." and 1 more Patchwork
0 siblings, 2 replies; 3+ messages in thread
From: Richard Purdie @ 2019-12-15 9:07 UTC (permalink / raw)
To: openembedded-core
With hashequiv the get_taskhash function is called much more regularly
and contains expensive operations. This these don't change based upon
hash in a given build, improve the caching within the function to
reduce overhead.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/lib/oe/sstatesig.py | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index c566ce5a0cb..8d009bfdc6e 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -142,6 +142,13 @@ class SignatureGeneratorOEBasicHashMixIn(object):
def get_taskhash(self, tid, deps, dataCache):
h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache)
+ if tid in self.lockedhashes:
+ if self.lockedhashes[tid]:
+ return self.lockedhashes[tid]
+ else:
+ return h
+
+ h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache)
(mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid)
@@ -178,17 +185,19 @@ class SignatureGeneratorOEBasicHashMixIn(object):
% (recipename, task, h, h_locked, var))
return h_locked
+
+ self.lockedhashes[tid] = False
#bb.warn("%s %s %s" % (recipename, task, h))
return h
def get_unihash(self, tid):
- if tid in self.lockedhashes:
+ if tid in self.lockedhashes and self.lockedhashes[tid]:
return self.lockedhashes[tid]
return super().get_unihash(tid)
def dump_sigtask(self, fn, task, stampbase, runtime):
tid = fn + ":" + task
- if tid in self.lockedhashes:
+ if tid in self.lockedhashes and self.lockedhashes[tid]:
return
super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime)
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] scripts/oe-build-perf-test: Use python3 from the environment
2019-12-15 9:07 [PATCH 1/2] sstatesig: Optimise get_taskhash for hashequiv Richard Purdie
@ 2019-12-15 9:07 ` Richard Purdie
2019-12-15 9:32 ` ✗ patchtest: failure for "sstatesig: Optimise get_taskha..." and 1 more Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2019-12-15 9:07 UTC (permalink / raw)
To: openembedded-core
On test machines we have python3 available at alternative locations. Use
these rather from the evnrionment rather than a hardcoded path.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
scripts/oe-build-perf-test | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 0b13f24888a..00e00b4ce93 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Build performance test script
#
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* ✗ patchtest: failure for "sstatesig: Optimise get_taskha..." and 1 more
2019-12-15 9:07 [PATCH 1/2] sstatesig: Optimise get_taskhash for hashequiv Richard Purdie
2019-12-15 9:07 ` [PATCH 2/2] scripts/oe-build-perf-test: Use python3 from the environment Richard Purdie
@ 2019-12-15 9:32 ` Patchwork
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2019-12-15 9:32 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
== Series Details ==
Series: "sstatesig: Optimise get_taskha..." and 1 more
Revision: 1
URL : https://patchwork.openembedded.org/series/21625/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 81ee68f39a)
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-15 9:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-15 9:07 [PATCH 1/2] sstatesig: Optimise get_taskhash for hashequiv Richard Purdie
2019-12-15 9:07 ` [PATCH 2/2] scripts/oe-build-perf-test: Use python3 from the environment Richard Purdie
2019-12-15 9:32 ` ✗ patchtest: failure for "sstatesig: Optimise get_taskha..." and 1 more Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox