From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH 0/2] run_tests: support concurrent test execution Date: Mon, 2 Jan 2017 18:07:56 +0100 Message-ID: <38d74124-eb01-c381-8dd9-2a6334c71fa3@redhat.com> References: <1483266886-25050-1-git-send-email-peterx@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Andrew Jones , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= To: Peter Xu , qemu-devel@nongnu.org, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:37246 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755617AbdABRH7 (ORCPT ); Mon, 2 Jan 2017 12:07:59 -0500 In-Reply-To: <1483266886-25050-1-git-send-email-peterx@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 01/01/2017 11:34, Peter Xu wrote: > run_tests.sh is getting slower. Maybe it's time to let it run faster. > An obvious issue is that, we were running the tests sequentially in > the past. > > This series provides another new "-j" parameter. "-j 8" means we run > the tests on 8 task queues. That'll fasten the script a lot. A very > quick test of mine shows 3x speed boost with 8 task queues. > > Most of the changes are in scripts/tash.bash of patch 2, which > implemented the main logic for task managements. Please see commit > message for more information. > > I did a quick "make standalone" test to make sure this series won't > break it. However I am not sure whether it'll break other thing that I > don't know... Would it work if run_tests.sh wrote a Makefile for all the tests (with phony targets only), and then simply ran "make -f Makefile.tmp -jN"? Thanks, Paolo