From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 08/27] standalone-generate-dump-flight-runvars: memoise ap-fetch Date: Wed, 16 Sep 2015 14:35:11 +0100 Message-ID: <1442410530-9665-9-git-send-email-ian.jackson@eu.citrix.com> References: <1442410530-9665-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZcCsQ-0000oG-6M for xen-devel@lists.xenproject.org; Wed, 16 Sep 2015 13:35:58 +0000 In-Reply-To: <1442410530-9665-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This makes it _much_ faster. Also you can say AP_FETCH_MEMO_KEEP=1 to make it reuse old information, which is useful for making comparisons. For a further speed improvement, use `eatmydata'. This is not the default because it risks corruption of `standalone.db' which is used for other purposes too. Add a comment about possibly improving this. Signed-off-by: Ian Jackson --- standalone-generate-dump-flight-runvars | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/standalone-generate-dump-flight-runvars b/standalone-generate-dump-flight-runvars index 4405720..ed94792 100755 --- a/standalone-generate-dump-flight-runvars +++ b/standalone-generate-dump-flight-runvars @@ -36,6 +36,17 @@ if [ $# = 0 ]; then set `./mg-list-all-branches` fi +if [ "x$AP_FETCH_MEMO_KEEP" = x ]; then + rm -rf tmp/apmemo + mkdir tmp/apmemo +fi +export AP_FETCH_PFX='./memoise tmp/apmemo' + +# In the future it might be nice for this script to arrange to use a +# separate standalone.db, in tmp/ probably, for each different branch. +# That would avoid a lot of needless write contention over the single +# db, and make it possible to use `eatmydata' if it is installed. + perbranch () { log=tmp/make-flight.$branch.log flight=check_${branch//[-._]/_} -- 1.7.10.4